Transform boundary image to 2d plan coordinates

조회 수: 1 (최근 30일)
matteo
matteo 2014년 11월 18일
댓글: matteo 2014년 11월 21일
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?

채택된 답변

Image Analyst
Image Analyst 2014년 11월 18일
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
Image Analyst
Image Analyst 2014년 11월 21일
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 2014년 11월 21일
Thanks again for your help, you've really saved mylife so far.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by