Rewrite old openCV code

asked 2018-11-15 13:56:43 -0600

Sartogersofortotropher gravatar image

updated 2018-11-15 14:06:46 -0600

old code

I change IplImage to Mat, but have some problem. I don`t know how change next code:

cvGetImageROI -> ?

cvSetImageROI - > ?

IPL_DEPTH_8U - > ?

cvSet - > ?

[m_img is IplImage]

FillBitmapInfo(bmi, bmp_w, bmp_h, Bpp(), m_img->origin); What is origin in cv::Mat?

m_img->nSize -> ?

cvShowImage - > ?

cvCreateImage - > ?

cvSaveImage - > ?

cvIplROI - > ?

cvConvertImage - > ?

edit retag flag offensive close merge delete

Comments

what, if you drop that idea entirely, and rather try with a modern sample instead ?

the author of your repo there wrote code, that was already outdated / deprecated 6 years ago, and never responded to any issues, all of it red flags, no ?

berak gravatar imageberak ( 2018-11-16 00:33:10 -0600 )edit