Info
この質問は閉じられています。 編集または回答するには再度開いてください。
how can i compare the colors and then perform action OR is there any other way to do the comparison and then perform desired action
1 回表示 (過去 30 日間)
古いコメントを表示
ia=imread('redline.tif');
image=im2bw(ia);
%imshow(j);
[row,column]=size(image);
grid = zeros(rows,column);
for i=1:rows
for j=1:column
if(image(i,j)==1)
grid(i,j)=1;
end
end
end
display(grid);
3 件のコメント
Geoff Hayes
2015 年 12 月 18 日
Mukul - what are you trying to compare the colours to? Are you looking for those pixels that are white (==1)?
Walter Roberson
2015 年 12 月 18 日
Please do not use "image" as a variable name, as that interferes with using image() as a basic MATLAB function, and confuses other people who read the code.
回答 (1 件)
この質問は閉じられています。
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!