CGDDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); Mat I(pDoc->height,pDoc->width,CV_8UC1,*(pDoc->pDataL)); GaussianBlur( I, I, Size(5,5), 0, 0 ); //Canny( I, I, 50, 200, 3 ); this->Invalidate();
此处
pDoc->pDataL为LPBYTE;
CGDDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); Mat I(pDoc->height,pDoc->width,CV_8UC1,*(pDoc->pDataL)); GaussianBlur( I, I, Size(5,5), 0, 0 ); //Canny( I, I, 50, 200, 3 ); this->Invalidate();
此处
pDoc->pDataL为LPBYTE;