Question

I have to create an image to hold double value (that is -0.0001 or 0.005). I've used

IplImage* temp = cvCreateImage(size, IPL_DEPTH_32F, 1)

but it doesn't work well. Have you some good ideas?

Was it helpful?

Solution

It works as it should, though you cannot visualize 32F image, you have to convert it to the 8U. See this page. BTW, the const is called CV_32F now.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top