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

正文內(nèi)容

數(shù)字圖像處理實(shí)驗(yàn)三中值濾波和均值濾波實(shí)驗(yàn)報告(專業(yè)版)

2025-09-15 01:35上一頁面

下一頁面
  

【正文】 SetScrollInfo(SB_HORZ,amp。 memcpy(lpBits,bits,nByteWidth*nHeight)。 case SB_THUMBPOSITION: case SB_THUMBTRACK: VScrollPosition=nPos。 case SB_THUMBPOSITION: case SB_THUMBTRACK: HScrollPosition=nPos。 = BI_RGB。 lpBits = 0。 afx_msg void OnVScroll(UINT nSBCode,UINT nPos,CScrollBar *pScrollBar)。pragma onceclass CImageWnd:public CWnd{public: int HCurrentPosition。 n 9。 Point1(x,nHeight+1) = Point1(x,nHeight)。} void CHistDemoADlg::MedianFilter(int nWidth,int nHeight,BYTE *lpInput,BYTE *lpOutput) { int x,y。 //lpPoints1[y][0] = lpPoints[y1][0]。 //在直方圖均衡化的區(qū)域顯示結(jié)果 delete lpOutput。 s[y]+=r[y]。 } } (nWidth,nHeight,lpBits)。 HistogramEq1(nWidth,nHeight,lpBits,lpOutput)。x++) //每一列 { p=x*3+y*nByteWidth。//新建文件選擇對話框 if (()==IDOK) { FileName=()。y++) { for(x=0。 =0。 BITMAPINFOHEADER bmi。 } //位深度為8 unsigned int PaletteSize=1pInfobiBitCount。 int x = (() cxIcon + 1) / 2。 // 設(shè)置小圖標(biāo) // TODO: 在此添加額外的初始化代碼 (0,LSource,WS_CHILD|WS_VISIBLE,CRect(40,40,360,280),this,10000)。CHistDemoADlg::OnBnClickedMedianfilter)END_MESSAGE_MAP()// CHistDemoADlg 消息處理程序BOOL CHistDemoADlg::OnInitDialog(){ CDialogEx::OnInitDialog()。}。 // DDX/DDV 支持// 實(shí)現(xiàn)protected: HICON m_hIcon。五、實(shí)驗(yàn)結(jié)果截圖實(shí)驗(yàn)均值濾波采用的是3X3的方塊,取周圍的像素點(diǎn)取得其均值代替原像素點(diǎn)。 // 標(biāo)準(zhǔn)構(gòu)造函數(shù) int nWidth。 DECLARE_MESSAGE_MAP()public: void LoadBitmap(void)。 // DDX/DDV 支持// 實(shí)現(xiàn)protected: DECLARE_MESSAGE_MAP()}。 ASSERT(IDM_ABOUTBOX 0xF000)。 ()。HCURSOR CHistDemoADlg::OnQueryDragIcon(){ return static_castHCURSOR(m_hIcon)。//lpBits指向有效信息部分 RGBQUAD *pPalette=(RGBQUAD *)lpBits。*256。 int nBWidth=pInfobiWidth。 else Palette=0。 //為lpBitmap分配空間 (lpBitmap,nLen)。 for(y=0。 int x,y,p。 //顏色值數(shù)組,統(tǒng)計對應(yīng)顏色值像素點(diǎn)的個數(shù) ZeroMemory(r,1024)。x++){ Point(x,y)=s[Point(x,y)]*255/nWidth/nHeight。 GetPoints(nWidth,nHeight,lpInput,lpPoints)。 Point1(x,nHeight+1) = Point1(x,nHeight)。ynHeight+1。xnWidth。 } Point(x,y) = window[4]。 //滑動最大位置(垂直) int VScrollPosition。 afx_msg void OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)。 //當(dāng)前對象作為參數(shù) if(lpBits) { int x,y。 = 0。 //水平方向滑動距離 if(HCurrentPosition != HScrollPosition) //HCurrentPosition和HScrollPosition不相等就滑動 { ScrollWindow(HCurrentPositionHScrollPosition,0)。 if (VCurrentPosition!=VScrollPosition) { ScrollWindow(0,(VCurrentPositionVScrollPosition))。 HCurrentPosition = 0。 SetScrollInfo(SB_VERT,amp。 = sizeof(SCROLLINFO)。 nHeight = cy。 break。 break。 = sizeof(BITMAPINFOHEADER)。 HCurrentPosition = 0。 ~CImageWnd(void)。 (nWidth,nHeight,lpOutput)。 j++){ if(k 9) window[k++] = Point1(j,i)。y++){ //最左邊和最右邊一列的拷貝 Point1(0,y) = Point(0,y1)。xnWidth。 //lpPoints1[y][x] = lpPoints[y1][x1]。 exit(非0)非正常終止程序 PostQuitMessage(0)。x++){ r[Point(x,y)]++。x++) //每一列 { p=x*3+y*nByteWidth。 lpBits[p]=lpPoints[p1]。 if (nByteWidth%4) nByteWidth+=4(nByteWidth%4)。 if (lpBackup) delete lpBackup。bmi,sizeof(BITMAPINFOHEADER))。 =nWidth。 */ lpBits+=sizeof(RGBQUAD)*PaletteSize。 //使字節(jié)寬度為4的整數(shù)倍 nHeight=pInfobiHeight。 // 使圖標(biāo)在工作區(qū)矩形中居中 int cxIcon = GetSystemMetrics(SM_CXICON)。 if (!()) { pSysMenuAppendMenu(MF_SEPARATOR)。}BEGIN_MESSAGE_MAP(CHistDemoADlg, CDialogEx) ON_WM_SYSCOMMAND() ON_WM_PAINT() ON_WM_QUERYDRAGICON() ON_BN_CLICKED(IDC_OPEN, amp。 void MeanFilter(int nWidth,int nHeight,BYTE *lpInput,BYTE *lpOutput)。 BYTE *lpBits。數(shù)字圖像處理實(shí)驗(yàn)三均值濾波、中值濾波的計算機(jī)實(shí)現(xiàn)12281166 崔雪瑩 計科1202班一、實(shí)驗(yàn)?zāi)康模?)熟悉均值濾波、中值濾波處理的理論基礎(chǔ);2)掌握均值濾波、中值濾波的計算機(jī)實(shí)現(xiàn)方法;3)學(xué)習(xí)VC++ 6。 BYTE *lpBitmap。 void HistogramEq1(int nWidth,int nHeight,BYTE *lpInput,BYTE *lpOutput)。}void CHistDemoADlg::DoDataExchange(CDataExchange* pDX){ CDialogEx::DoDataExchange(pDX)。 ASSERT(bNameValid)。 // 用
點(diǎn)擊復(fù)制文檔內(nèi)容
電大資料相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1