Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Hi. You have selected right function for color transformation but lost bias value. For example if you want to make transformation from [min,max] to [0,255] you should call:

src.convertTo( dis, CV_8U, 255.0 / (max - min), min * 255.0 / (max - min) );

Hi. You have selected right function for color transformation but lost bias value. For example if you want to make transformation from [min,max] to [0,255] you should call:

src.convertTo( dis, CV_8U, 255.0 / (max - min), min * 255.0 / (max (min - min) max) );