Selecting data points in 3D space

Hi, I am plotting data points in 3d space. what i wish to do is allow a user to select a volume of interest. is there a function that allows to do this? I know that in 2d there are functions such as imrect() and inpolygon() that allow the user to draw a rectangle and then see which points are inside. is there a 3d equivalent to these functions?

1 件のコメント

KRush
KRush 2016 年 5 月 25 日
For those who are seeking answers of the similar problems, using viewmtx to map 3d position [x y z] to 2d space is an option. Then you can solve the problem as in 2d coordinates.

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

回答 (1 件)

Jürgen
Jürgen 2012 年 12 月 14 日

0 投票

Hi, in file exchange there is a file to extract a Volume of Interest, do no if that can help? regards,J

3 件のコメント

Itzik Ben Shabat
Itzik Ben Shabat 2012 年 12 月 14 日
thanks. found it. ill give it a try and see how it works. from the documentation it seems like this is the 3d equivalent of inpolygon. do you know if there is a 3d equivalent to imrect() (in order to draw the cube volume of interest to be the input to the file you mentioned from file exchange).
Jürgen
Jürgen 2012 年 12 月 14 日
I looked for the 3d version of inmrect when I saw your question but could not directly find something,
Sean de Wolski
Sean de Wolski 2012 年 12 月 14 日
imrect() works in 3d but only along x/y

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

カテゴリ

ヘルプ センター および File ExchangeImage Processing Toolbox についてさらに検索

質問済み:

2012 年 12 月 14 日

コメント済み:

2016 年 5 月 25 日

Community Treasure Hunt

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

Start Hunting!

Translated by