I want to understand how mat2gray works? I mean back end work and formula etc. then I want to scale the image using it so that it follows the format, 0 for max value and 255 for min value.
Anyone, please suggest me a formula to convert uint16 depth image in the range 0 to 255.but 0 for max value of depth and 255 for min value of depth
Thanks