directional filter for detecting edges on a circle and rectangle

4 ビュー (過去 30 日間)
matar maoz
matar maoz 2011 年 2 月 19 日
Hello
I drew a circle on my screen and I'm taking a picture of it with my webcam for shape recognition.
the next step is to perform quantization on the shape, and afterwards define it by mathematical manipulation.
Because there is lighting in my room, the texture of my photograph is not uniform. I can see the circle's outlines with my eyes, but MATLAB can't perform the quantization correctly.
Does anybody know a filter that I can perform a conv2() with it and my picture to detect those edges?
Matar Maoz

採用された回答

matar maoz
matar maoz 2011 年 2 月 22 日
the edge() function only reveals a part of my circle, for example.
When using the webcam, there is a need to reconstruct the image taken, because the boundaries of every object in the image are not equal in terms of intensity. The result is partial edge detection for every object.
To overcome my problem I used histeq() before the edge() function By doing so, i managed to discover the boundaries of my circle entirely.

その他の回答 (2 件)

Andrew Newell
Andrew Newell 2011 年 2 月 19 日
Do you have the Image Processing Toolbox? If so, you could detect edges using the edge function.
  1 件のコメント
matar maoz
matar maoz 2011 年 2 月 22 日
Thank you.
I have posted an organized answer.

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


Spandan Tiwari
Spandan Tiwari 2013 年 8 月 4 日
Look at the function IMFINDCIRCLES in Image Processing Toolbox (R2012a onwards) for detecting circles in your image.

Community Treasure Hunt

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

Start Hunting!

Translated by