求助:关于double类型转换
clear;close allrgb=imread('1.jpg');
figure,imshow(rgb);title('原图');
j=double(rgb);
figure,imshow(j);
转换后图象中什么东西都没了,是怎么回事?
要想把原图象改为double类型应怎样实现? 因为你的值超出了范围,
修改后如下:
%%%%%%%%%%%%%%%%
clear;
close all
rgb=imread('3603cut.jpeg');
figure,imshow(rgb);title('原图');
j1=double(rgb)/256;
figure,imshow(j1);
%%%%%%%%%%%%%%%%
页:
[1]