Trouble getting im2double to show image

5 ビュー (過去 30 日間)
Anthony Koning
Anthony Koning 2022 年 10 月 16 日
回答済み: KSSV 2022 年 10 月 16 日
Hi, I'm currently trying to figure out how to display an image after changing it's class type in Matlab. My code is:
im = imread('Pic.png');
imshow('Pic.png');
title ('pic')
im2 = im2double(im);
imshow ('im2')
title ('DoublePic')
but running it just gives an error message for imshow('im2'), can someone explain why this is happening? Thanks

採用された回答

KSSV
KSSV 2022 年 10 月 16 日
imshow ('im2')
In the above line im2 is considered as a string, this is not correct. It should be:
imshow (im2)

その他の回答 (0 件)

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by