Detect the left edge and right edge separateley

2 次查看(过去 30 天)
I want to detect the left edge and right edge of an object image. How can I do that ?
  3 个评论
Walter Roberson
Walter Roberson 2011-12-4
http://www.mathworks.com/matlabcentral/answers/7924-where-can-i-upload-images-and-files-for-use-on-matlab-answers
Suhas Deshpande
Suhas Deshpande 2011-12-4
It can be any image like a standing man, pillar etc or any other avoidable obstacle for a car.
I managed to get the binarized image from the color image.

请先登录,再进行评论。

回答(1 个)

Image Analyst
Image Analyst 2011-12-4
How are right and left defined? By the image coordinates? If so, just check the x (column) coordinate. Or is it defined by some orientation of the object which has a front and back, right and left, no matter which angle it is oriented in your image? Posting an image somewhere would surely help.
  2 个评论
Suhas Deshpande
Suhas Deshpande 2011-12-4
I have an object (e.g. a man standing, or a pillar) in the image. I want to detect the left edge of the object as visible in the image.
So the left edge in a binary image would be of the form [0 1] and right edge would be [1 0] or vice versa. I can get the binary image from color efficiently.
I want to develop a logic for a car to move left or right in case of obstruction. car will move left if left edge is nearer to the line of motion (or colliding point).
Image Analyst
Image Analyst 2011-12-5
Do you already have the binary image? Let's say you do and it's an oval blob angled 40 degrees from the vertical, like this: http://www.cfht.hawaii.edu/Reference/Bulletin/Bull31/Images/figure4a.gif. Now, where would you put the dividing line between right edge and left edge? Another example. Let's say you have an amoeba-shaped objects, like a splat like this one: http://www.clker.com/clipart-brown-splat-high-res.html What is the right side and left side of that? Do you just want to find the centroid and find perimeter coordinates that are to the left or right of that perimeter x coordinate?

请先登录,再进行评论。

产品

Community Treasure Hunt

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

Start Hunting!

Translated by