c++ - How to convert CImg float image type to unchar image(0-255) type -


i using cimg library , implementing non maximum suppression harris corner detector. because calculation of numbers determinants requires float type image, declared images float type. when exracting local maximum on harris response float image, found hard set threshold because don't know values of pixels on float image are, , got strange points extracted weren't ones wanted. example printed out values of points, found pixel values 6e+9 or 1.8e+5, , don't know mean. there way convert float image unchar image can set integer threshold local maximum extraction? in advance!

you have normalize image values, :

cimg<unsigned char> img_normalized = img.get_normalize(0,255); 

then work on values of 'img_normalized' instead.


Comments

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -