简体   繁体   中英

How to normalize an image to a range of values

In a publication, I read that an image should be normalized from [0 to M]. I searched google for a normalization method and I get this link , which is the closest to my needs. But still I do not know how to normalize an image to a range of values?

Please let me know how to normalize an image to a range of values and is there any opencv method that does that normalization operation?

Update :

concerning the norm_type, i found a comparisons between L1 and L2 here .should i just pick any one of them or there is a specific norm_Type suitable for image normalization

What you want is cv::normalize . Also, its Java equivalent can be found here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM