Transform boundary image to 2d plan coordinates

1 view (last 30 days)
Hi, I need to transform some images (that represent different objects boundary line) to a curve on matlab. The images are like this
what I need to do is to "place" this curve and the area inside it in a 2d space in order to make an if cicle: if I am inside this area I have some requirements, if I am outside I have different requirements (an example would be a gps use: if I am inside an area defined by this curve and so inside some longitude and latitude limits I have three restaurants, if I am outside I have no restaurant). Can somebody help?

Accepted Answer

Image Analyst
Image Analyst on 18 Nov 2014
What is an "if cicle"? If you have the x,y coordinates of the boundary/perimeter/curve, then you can use inpolygon() to determine if a point is inside or not. I don't know what else to say since I don't know what it means "to place this curve and the area inside it in a 2D space" nor do I know what an "if cicle" is. Isn't the curve ALREADY in a 2D space? It's in a plane isn't it?
  10 Comments
Image Analyst
Image Analyst on 21 Nov 2014
OK. Good luck. Thanks for Accepting the answer. I don't really know how to do your latest task but I think Roger Stafford probably does. I suggest you post it as a brand new question. And detail exactly what "define this 3d cone" means, mathematically.
matteo
matteo on 21 Nov 2014
Thanks again for your help, you've really saved mylife so far.

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!