How to display only one image in the following code?
Show older comments
In the following code, the output is displayed as 3 images horizontally. What is the reason and how to display only one image? I=imread('Input.bmp'); figure, imshow(I); count=0; [row,column]=size(I) for i=1: row for j=1:column if I(i,j) > 50 & I(i,j) < 70 count=count+1; I1(i,j) = 255; else I1(i,j) = 0; end end end figure, imshow(I1(:,:,1))
Accepted Answer
More Answers (0)
Categories
Find more on Display Image in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!