MATLAB Answers

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?

  0 件のコメント

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

採用された回答

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 件のコメント

表示 7 件の古いコメント
matteo
matteo 2014 年 11 月 21 日
Hi, I've gone forward in my thesis:
I transformed that area in an area over a spherical surface (earth surface) now I have a point above this surface (some km above). I need to define the 3d cone that has for vertex the point and base the area. Then I have to define if some other points I'm going to enter in this model are inside or outside this "cone".
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