What's the best possible way to determine the min and max values that can be stored in a datatype? For example, CV_16U can store values between 0 through 65535 inclusive. I tried searching for OpenCV constants in the Hardware Abstraction Layer part of the code and could find none.
An int on one platform may not quite be an int on another. But a CV_16U on one platform will be a CV_16U on another platform that supports that type. Granted, there's obvious but tedious non-platform independent ways to do this by probing constants outside the scope of OpenCV, like INT_MAX and such, but I'm looking for a way to determine these limits with what OpenCV exposes.