When I run this code: >> I = imread(‘D:\Works\matlab\SecCode.php.png’,’png’); >> imshow(I); It always shows
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ahhh, I see now. The problem is you have an indexed image and need to get the colormap argument from
imreadas well. Try this:A description of the different types of images in MATLAB can be found here. Here’s a brief summary:
logicalarray where each pixel has the value 0 or 1.