Representating 2-D array of doubles by putting in Mat and displaying.

asked 2014-08-31 03:26:13 -0600

konstunn gravatar image

updated 2014-08-31 08:59:43 -0600

I've a got a 2-D array of double values.

I want to put them in Mat and display.

In other words, I want to represent my 2-D array of doubles in color.

Should I scale these double values somehow before I put them in Mat?

Or what? I can't manage to represent all the values vividly to see the differences between them.

edit retag flag offensive close merge delete


just as a reminder, opencv wants consecutive memory, so it won't work if your 2d array is an array of pointers

berak gravatar imageberak ( 2014-08-31 03:34:36 -0600 )edit

Yes, I remember. Thanks. But I initialize Mat in a loop explicitly using Mat::at<double>(). The actual question is about information loss when display Mat CV_64F with imshow().

konstunn gravatar imagekonstunn ( 2014-08-31 03:44:56 -0600 )edit