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

正文內(nèi)容

機器視覺(定位源碼)-閱讀頁

2025-07-11 15:36本頁面
  

【正文】 m_hBmpNew , sizeof(BITMAP), amp。 ImgWidth=。 VERIFY(m_hBmpOld = (HBITMAP)SelectObject(m_dcMem, m_hBmpNew))。 offsety=。 (offsetx,offsety+,16)。 = SIF_ALL。 = 。 = 0。 if(=) { offsetx= 。 (false)。 (amp。 = sizeof(SCROLLINFO)。 = 0。 = 0。 if(=) { offsety= 。 (false)。 (amp。 InvalidateRect(amp。 }}void CKMDVisionDemoDlg::OnLButtonDown(UINT nFlags, CPoint point) { CPoint pt =()。 CPoint STopLeft,SBottomRight。m_ViewWnd, pt)) { TopLeft=()。 +=().x。 =+()。 if(!((TopLeft) amp。 (BottomRight))) (10,10,180,120)。rectStaticClient, false)。m_ViewWnd, pt)) { STopLeft=()。 +=().x。 =+()。 if(!((STopLeft) amp。 (SBottomRight))) (10,10,620,460)。rectStaticClient, false)。}void CKMDVisionDemoDlg::DrawResult(float x,float y,int Width,int Height){ CDC* pDC。 CPen NewPen(PS_SOLID,2,0x0000ff)。NewPen)。 pDCLineTo((int)x,(int)y10)。 pDCLineTo((int)x10,(int)y)。 pDCLineTo((int)(x(Width8)/2),(int)(y+(Height8)/2))。 pDCLineTo((int)(x+(Width8)/2),(int)(y(Height8)/2))。 pDCLineTo((int)(x+(Width8)/2),(int)(y(Height8)/2))。 pDCLineTo((int)(x(Width8)/2),(int)(y+(Height8)/2))。 ReleaseDC(pDC)。 SetMinScores(m_Score)。 SetMinScales(m_DownZoom)。 SetMaxScales(m_UpZoom)。 SetpyramidLevels(m_PyrLevel)。 SetSearchNums(m_MatchNum)。}void CKMDVisionDemoDlg::initData(){ //alloc mem DWORD dwRawDataSize=640*480。 memset(m_pRawData,0,dwRawDataSize)。 memset(m_pDispData,0,dwRawDataSize)。 m_pBmpInfo = sizeof(BITMAPINFOHEADER)。 m_pBmpInfo = 480。 m_pBmpInfo = 1。 m_pBmpInfo = 0。 m_pBmpInfo = 0。 m_pBmpInfo = 0。 i256。 m_pBmpInfobmiColors[i].rgbGreen = (BYTE)i。 m_pBmpInfobmiColors[i].rgbReserved = 0。m_CapInfo, 0, sizeof(CapInfoStruct))。 = 640。 = 0。 = 100。 [1] = 9。 = 0。 [0] = 2。 ULONG i=0。nIndex, amp。m_hMVC1000)。 MV_Usb2Uninit(amp。 m_hMVC1000 = NULL。 } MV_Usb2SetOpMode(m_hMVC1000, 0, FALSE)。}void CKMDVisionDemoDlg::Start() { MV_Usb2StartCapture(m_hMVC1000,TRUE)。}int CKMDVisionDemoDlg::SaveRawAsBmp( CapInfoStruct *pCapInfo, LPCTSTR szFileName ){ BITMAPINFOHEADER FrameBmi。FrameBmi) )。 DWORD dwFrameSize = dwRowLength * 。 BITMAPFILEHEADER pf。 if (fp == NULL) return 1。 = sizeof(BITMAPFILEHEADER) + sizeof(BITMAPINFOHEADER) + 256 * sizeof(RGBQUAD) + dwFrameSize。 = 0。 fwrite( amp。 RGBQUAD *pPallete = (RGBQUAD*)new BYTE [256 * sizeof(RGBQUAD)]。 i256。 pPallete[i].rgbBlue = (BYTE)i。 pPallete[i].rgbReserved = (BYTE)0。FrameBmi,sizeof(BYTE), sizeof(BITMAPINFOHEADER), fp )。 fwrite( pCapInfoBuffer, sizeof(BYTE), dwFrameSize, fp )。 fclose(fp)。}int CKMDVisionDemoDlg::MakeBmpInfoHeader(CapInfoStruct *pCapInfo, BITMAPINFO *pBmpInfo){ UCHAR btScale = ( pCapInfoControl amp。 int nScaleMode。 break。 break。 break。 break。 break。 pCapInfoHeight /= nScaleMode。 pBmpInfo = 1。 pBmpInfo = 0。 pBmpInfo = 0。 pBmpInfo = 0。 pBmpInfo = pCapInfoWidth。 return 0。 Start()。 SearchKernalRect=。 //SetSearchAreas(0,0,620,460)。 RunSearchs(0)。 float Angledd=GetSearchAngles(0)。im_MatchNum。 ResultY=GetSearchResultsY(i,Null)。 (模板的中心位置為 X=%f Y=%f\n定位后的中心位置為 X=%f Y=%f(單位:像素)\n分數(shù)是%d\n角度是%f\n定位時間%f ,GetModOrgCenterX(),GetModOrgCenterY(),ResultX,ResultY,GetSearchScores(i),Angledd,MatchSpeed)。 if(ResultX!=0 amp。 ResultY!=0) DrawResult(ResultX, ResultY,GetModWidths(),GetModHeights())。 } } SetTimer(1,50,NULL)。}void CKMDVisionDemoDlg::DrawImage(){ CDC *pDC = GetDlgItem(IDC_VIEWWND)GetDC()。 CBitmap bm。 (pDC,640,480)。bm)。 ::StretchDIBits(MemDC,0,0, 640,480,0,0, 640,480, m_pDispData,m_pBmpInfo,DIB_RGB_COLORS,SRCCOPY)。MemDC)。MemDC,0,0,SRCCOPY)。 ()。}void CKMDVisionDemoDlg::ShowResult(CDC *pDC){ CPen NewPen(PS_SOLID,1,0x00ff00)。NewPen)。//m_CenterX。//m_CenterY。 pDCLineTo((int)x,(int)y8)。 pDCLineTo((int)x8,(int)y)。}// : Defines the class behaviors for the application.//include include include ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[] = __FILE__。/////////////////////////////////////////////////////////////////////////////// CKMDVisionDemoApp initializationBOOL CKMDVisionDemoApp::InitInstance(){ AfxEnableControlContainer()。 // Call this when using MFC in a shared DLLelse Enable3dControlsStatic()。 m_pMainWnd = amp。 int nResponse = ()。s message pump. return FAL
點擊復制文檔內(nèi)容
黨政相關相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1