How do I effectively search through a matrix that represents pixels of an image?
2 ビュー (過去 30 日間)
古いコメントを表示
I have an image that is read into a matrix using imread(). I would like to find these "corners" in the image.
For example,
255 255 255
255 0 0 255
255 0 0 255
The bold 0 would be a black top left corner which is surrounded by red(255).
Currently, I am doing a search that goes through each element in the matrix from top to bottom.
for i = 1:100
for j = 1:100
...
end
end
Is the any more efficient way to do this search? Could anyone tell me the name of the search
Thanks
2 件のコメント
KSSV
2018 年 1 月 23 日
YOu can convert the image into gray and see...how your values be..and then search..?
回答 (1 件)
参考
カテゴリ
Help Center および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!