Is there a reason why OpenCV does not support (CV_32U) 32 bit depth unsigned integer Mat?

asked 2015-07-14 04:57:47 -0600

updated 2015-07-14 05:00:54 -0600

For optimization purposes, I'm avoiding the usage of floating numbers, while maintaining a good enough precision. Thus, I want to use 32 bit depth unsigned integer along with Mat data structure. However, from the basic_structures.html documentation, I didn't find CV_32U. Is there a reason why OpenCV does not support it for Mat data structure?

A complete list of matrix types contains the following values:

CV_8U - 8-bit unsigned integers ( 0..255 )
CV_8S - 8-bit signed integers ( -128..127 )
CV_16U - 16-bit unsigned integers ( 0..65535 )
CV_16S - 16-bit signed integers ( -32768..32767 )
CV_32S - 32-bit signed integers ( -2147483648..2147483647 )
CV_32F - 32-bit floating-point numbers ( -FLT_MAX..FLT_MAX, INF, NAN )
CV_64F - 64-bit floating-point numbers ( -DBL_MAX..DBL_MAX, INF, NAN )
edit retag flag offensive close merge delete

Comments

Good question... Must be a reason, but I can't figure it out. It would be very useful to have CV_32U available.

kebs gravatar imagekebs ( 2016-05-26 05:04:42 -0600 )edit