freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)字圖像處理實(shí)驗(yàn)三中值濾波和均值濾波實(shí)驗(yàn)報(bào)告(存儲(chǔ)版)

  

【正文】 pBits[p]+)。x++) //每一列 { p=x*3+y*nByteWidth。 (nWidth,nHeight,lpOutput)。y++) //每一行 { for(x=0。//將彩色圖像轉(zhuǎn)化成灰度圖像}void CHistDemoADlg::HistogramEq1(int nWidth, int nHeight, BYTE *lpInput, BYTE *lpOutput){ int x,y。y++){ //統(tǒng)計(jì)對(duì)應(yīng)顏色值像素點(diǎn)的個(gè)數(shù),Point(x,y)是lpPoints(x,y) for(x=0。 } //計(jì)算顏色值的前y種顏色的總像素點(diǎn)的個(gè)數(shù)(像素點(diǎn)顏色值=y) for(y=0。//注意使用時(shí)先釋放分配的內(nèi)存,以免造成內(nèi)存泄露 //exit(0) 。 NoColor()。xnWidth。 //lpPoints1[y][nWidth+1] = lpPoints[y1][nWidth1]。ynHeight。 BYTE *lpPoints=new BYTE[nWidth*nHeight]。 } } for(y=1。 } BYTE *window = new BYTE[9]。 i++){ for(int j=x 。 ++n) if (window[n] window[min]) min = n。 BYTE *lpOutput=new BYTE[nByteWidth*nHeight]。 //當(dāng)前位置(水平) int HScrollMax。 //字節(jié)寬度 BYTE *lpBits。 afx_msg void OnPaint()。 ,注釋已經(jīng)給出,在此不再贅述。}CImageWnd::~CImageWnd(void) //析構(gòu)函數(shù),釋放空間{ if(lpBits) delete lpBits。 if(nHeight240) y = (240nHeight)/2。 = 0。 break。 break。 break。 break。 } return 0。 if(cx320 || cy240) SetScroll(cx,cy)。 SetScrollPos(SB_VERT,0)。sinfo)。 VScrollMax = cy240。 = 320。 VCurrentPosition = 0。 lpBits = new BYTE[nByteWidth*nHeight]。 } CWnd::OnVScroll(nSBCode, nPos, pScrollBar)。 break。 //將當(dāng)前滑動(dòng)位置設(shè)為HScrollPosition } CWnd::OnHScroll(nSBCode,nPos,pScrollBar)。 break。bmi,DIB_RGB_COLORS,SRCCOPY)。 = 24。 y = VScrollPosition。 VScrollMax = 0。 afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct)。 afx_msg void OnHScroll(UINT nSBCode,UINT nPos,CScrollBar *pScrollBar)。 //寬度 int nHeight。setImage(),外接提供繪制的信息,通過(guò)參數(shù)傳遞給內(nèi)部的成員變量。 //輸出lpPoints到lpOutput delete lpPoints。 for (int n = m + 1。 for(int i=y 。x++){ //最上邊和最下邊一行的拷貝 Point1(x,0) = Point1(x,1)。xnWidth。 //輸出lpPoints到lpOutput delete lpPoints。 //lpPoints1[nHeight+1][x] = lpPoints1[nHeight][x]。 Point1(nWidth+1,y) = Point(nWidth1,y1)。ynHeight+1。 (nWidth,nHeight,lpOutput)。 //輸出lpPoints到lpOutput delete lpPoints。y++) { s[y]=s[y1]。 for(y=0。 lpBits[p]=Point。 for(y=0。 BYTE *lpOutput=new BYTE[nByteWidth*nHeight]。y++) //每一行 { for(x=0。xnWidth。 //調(diào)用LoadBitmap(),加載位圖圖像 if (lpBitmap) (nWidth,nHeight,lpBits)。 CFileDialog dlg(TRUE,0,0,OFN_HIDEREADONLY,L位圖文件|*.bmp|所有文件|*.*||,this)。 lpBits2[p2+1]=pPalette[Palette].rgbGreen。ynHeight。 memset(lpBitmap,0,nLen)。 =BI_RGB。 =0。 BITMAPFILEHEADER bmh。 BYTE rgbGreen。 return。 //位圖文件的頭部信息指針pInfo pInfo=(BITMAPINFOHEADER *)(lpBitmap+sizeof(BITMAPFILEHEADER))。rect)。 }}// 如果向?qū)υ捒蛱砑幼钚』粹o,則需要下面的代碼// 來(lái)繪制該圖標(biāo)。 // 設(shè)置大圖標(biāo) SetIcon(m_hIcon, FALSE)。 if (pSysMenu != NULL) { BOOL bNameValid。CHistDemoADlg::OnBnClickedMeanfilter) ON_BN_CLICKED(IDC_MEDIANFILTER, amp。}BEGIN_MESSAGE_MAP(CAboutDlg, CDialogEx)END_MESSAGE_MAP()// CHistDemoADlg 對(duì)話框CHistDemoADlg::CHistDemoADlg(CWnd* pParent /*=NULL*/) : CDialogEx(CHistDemoADlg::IDD, pParent){ m_hIcon = AfxGetApp()LoadIcon(IDR_MAINFRAME)。 afx_msg void OnBnClickedMedianfilter()。 afx_msg void OnHist()。 protected: virtual void DoDataExchange(CDataExchange* pDX)。 int nLen。0 編程的步驟及流程;2)編寫(xiě)均值濾波、中值濾波的程序;3)編譯并改錯(cuò);4)把該程序嵌入試驗(yàn)二給出的界面中(作適當(dāng)修改);5)提交程序及文檔;6)寫(xiě)出本次實(shí)驗(yàn)的體會(huì)。四、實(shí)驗(yàn)要求:1)學(xué)習(xí)VC++確6。 int nHeight。// 對(duì)話框數(shù)據(jù) enum { IDD = IDD_HISTDEMOA_DIALOG }。 afx_msg void OnOpen()。 afx_msg void OnBnClickedMeanfilter()。CAboutDlg::CAboutDlg() : CDialogEx(CAboutDlg::IDD){}void CAboutDlg::DoDataExchange(CDataExchange* pDX){ CDialogEx::DoDataExchange(pDX)。CHistDemoADlg::OnBnClickedClose) ON_BN_CLICKED(IDC_MEANFILTER, amp。 CMenu* pSysMenu = GetSystemMenu(FALSE)。當(dāng)應(yīng)用程序主窗口不是對(duì)話框時(shí),框架將自動(dòng) // 執(zhí)行此操作 SetIcon(m_hIcon, TRUE)。 } else { CDialogEx::OnSysCommand(nID, lParam)。 GetClientRect(amp。}void CHistDemoADlg::LoadBitmap(){ //位圖文件:BITMAPFILEHEADER+BITMAPINFOHEADER+有效信息部分 BITMAPINFOHEADER *pInfo。
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1