Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 2017-01-20 11:28:02 -0600

Nbb gravatar image

opencv convertto need to manually scale down inputs ?

if i am converting a cv_32s to cv_8u do i need to scale down the values or will opencv do that for me. what is the equation to scale everything ?

new = (current - min) / (max - min) * 255 ?