标签:
图像数据归一化
depth为源图像,数据分布在[0 63],归一化到[0 255]
xmin = min(min(depth));
xmax = max(max(depth));
ymin = 0;
ymax = 255;
depth1 = (ymax-ymin)*(depth-ones(m,n) * xmin)/(xmax-xmin) + ones(m,n)*ymin;
figure;
imshow(uint8(depth1));
标签:
原文地址:http://www.cnblogs.com/adong7639/p/4330768.html