Closed boomsya closed 4 years ago
omg, I have found solution:
cut_image := cvCreateImage(CvSize(subRect.width, subRect.height), img0^.depth, img0^.nChannels);
cvGetSubRect(img0, cut_image, subRect);
image2 := cvCreateImage(cvGetSize(cut_image), img0^.depth, img0^.nChannels);
cvCopy(cut_image, image2);
Squares := findSquares4(cut_image, storage);
...
cvReleaseImage(cut_image);
cvReleaseImage(image2);
Close?
hi, I try to learn work with OpenCV and need some help with demo
cv_GetSubRect
demo have source code:but if I call after that (function
findSquares4
from demoSquares
) line:.....
timg := cvCloneImage(cut_image);
I have exception :(