function [ output_args ] = guoyingying( yuantu )
%郭莹莹
% Detailed explanation goes here
rice=imread('rice.jpg');
figure;
subplot(1,3,1);
imshow(rice);
title('原图');
I=double(rice); %转换为双精度类型
J=I*0.43+60;
rice1=uint8(J); %转换为uint8
subplot(1,3,2);
imshow(rice1);
title('双精度图');
J=I*1.5-60;
rice2=uint8(J); %转换为uint8
subplot(1,3,3);
imshow(rice2);
title('单精度图');
MATLAB单双精度的转换
最新推荐文章于 2024-02-13 15:35:51 发布