How to identify boundaries of shapes in an image using the change in color

19 ビュー (過去 30 日間)
Yash
Yash 2013 年 4 月 27 日
コメント済み: ankita taparia 2018 年 12 月 11 日
Hi I am new to Matlab, I have got to identify boundaries of irregular shapes in Image using the change in color, Please guide me how to get info from image into a matrix

採用された回答

Image Analyst
Image Analyst 2013 年 4 月 28 日
If you want the color edges, then the most sensible thing is to measure Delta E - the color difference - between a pixel and its neighbors. I just gave the algorithm a few days ago here: http://www.mathworks.com/matlabcentral/answers/73635#answer_83593 An edge will have a high delta E while non-edges will have low delta E. I now have a demo script of this. Let me know if you want me to post it.
  15 件のコメント
ankita taparia
ankita taparia 2018 年 12 月 11 日
Mean shift filter is not giving satisfactory result. And DEM code is giving errors which I am not able to fix. Please help.
ankita taparia
ankita taparia 2018 年 12 月 11 日
Also, I tried Sobel filter and getting decent results with it..only if i could be suggested one or two ilters like sobel(not canny) so that i could compare and proceed further.

サインインしてコメントする。

その他の回答 (2 件)

Ahmed A. Selman
Ahmed A. Selman 2013 年 4 月 27 日
There are few files in the file-exchange http://www.mathworks.com/matlabcentral/fileexchange/ so do some search there, you might find what you need.
Or, you can convert the colored image to binary one, then use the function (edge).

Yash
Yash 2013 年 5 月 2 日
Thanks for the script, I think this will definitely be helpful to me. I need to construct a geometry through this So I need to get the Coordinates of the boundaries created in the image as well as the colour code to know about the orientation. Please help me how can I convert the output that I have got to a matrix containing the required information.
Regards yash

Community Treasure Hunt

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

Start Hunting!

Translated by