comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Three dimensional Polyfillv
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Three dimensional Polyfillv [message #58809] Mon, 18 February 2008 22:54 Go to next message
twhaw is currently offline  twhaw
Messages: 5
Registered: February 2008
Junior Member
Good day.

I have been following this newsgroup for a while and it is really very
helpful in solving many problems that I have encountered in IDL
programming.

Currently I am writting an IDL procedure to sample some points on the
surface of a 3D blob (from a 3D volume).This is later used to contruct
3D point distribution model (PDM) of the blob. The PDM is actually a
(3, n) array of rectangular coordinates. I would like to reconstruct
the blob by using the PDM. To do this, I need the subscripts of the
array elements contained inside the PDM. This can be done by using
Polyfillv for in the case of 2D array. Is there any similar function
for 3D volume?

Your kind assistance in this matter is highly appreciated.

Thank you in advance.
Re: Three dimensional Polyfillv [message #58829 is a reply to message #58809] Sun, 24 February 2008 18:21 Go to previous messageGo to next message
twhaw is currently offline  twhaw
Messages: 5
Registered: February 2008
Junior Member
Dear Chris,

Thanks. I guess there is no similar function or routine for 3D.
Anyway, I am evaluating the possibility of using of IDLanROI and other
functions.

Many thanks again for your kind response.

Cheers.


On Feb 23, 8:11 pm, Spon <christoph.b...@gmail.com> wrote:
> On Feb 19, 6:54 am, twhaw <wooihaw....@gmail.com> wrote:
>
>
>
>> Good day.
>
>> I have been following this newsgroup for a while and it is really very
>> helpful in solving many problems that I have encountered in IDL
>> programming.
>
>> Currently I am writting an IDL procedure to sample some points on the
>> surface of a 3D blob (from a 3D volume).This is later used to contruct
>> 3D point distribution model (PDM) of the blob. The PDM is actually a
>> (3, n) array of rectangular coordinates. I would like to reconstruct
>> the blob by using the PDM. To do this, I need the subscripts of the
>> array elements contained inside the PDM. This can be done by using
>> Polyfillv for in the case of 2D array. Is there any similar function
>> for 3D volume?
>
>> Your kind assistance in this matter is highly appreciated.
>
>> Thank you in advance.
>
> I'm guessing by the silence that the answer is 'no'. But you could
> start with SHADE_VOLUME and code up your own function, I suppose.
>
> Chris
Re: Three dimensional Polyfillv [message #58842 is a reply to message #58809] Sat, 23 February 2008 04:11 Go to previous messageGo to next message
Spon is currently offline  Spon
Messages: 178
Registered: September 2007
Senior Member
On Feb 19, 6:54 am, twhaw <wooihaw....@gmail.com> wrote:
> Good day.
>
> I have been following this newsgroup for a while and it is really very
> helpful in solving many problems that I have encountered in IDL
> programming.
>
> Currently I am writting an IDL procedure to sample some points on the
> surface of a 3D blob (from a 3D volume).This is later used to contruct
> 3D point distribution model (PDM) of the blob. The PDM is actually a
> (3, n) array of rectangular coordinates. I would like to reconstruct
> the blob by using the PDM. To do this, I need the subscripts of the
> array elements contained inside the PDM. This can be done by using
> Polyfillv for in the case of 2D array. Is there any similar function
> for 3D volume?
>
> Your kind assistance in this matter is highly appreciated.
>
> Thank you in advance.

I'm guessing by the silence that the answer is 'no'. But you could
start with SHADE_VOLUME and code up your own function, I suppose.

Chris
Re: Three dimensional Polyfillv [message #58878 is a reply to message #58829] Tue, 26 February 2008 11:35 Go to previous messageGo to next message
Mike[2] is currently offline  Mike[2]
Messages: 99
Registered: December 2005
Member
What if you took your (3,n) values and, for each slice in your data
volume, find the subset of the n points that fall on (or near enough
to be considered "on") that slice? Then you could use polyfillv on
that slice. I haven't done this with quite the data you have, but
that is the method that I use to create 3D ROIs out of multiple 2D
ROIs.

Mike
Re: Three dimensional Polyfillv [message #58908 is a reply to message #58829] Tue, 26 February 2008 04:46 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
twhaw writes:

> Thanks. I guess there is no similar function or routine for 3D.
> Anyway, I am evaluating the possibility of using of IDLanROI and other
> functions.

I'm wondering if some combination of SEARCH3D and a function
to find the inside of a surface volume (I don't know what this would
be, exactly) would work.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Three dimensional Polyfillv [message #58962 is a reply to message #58878] Tue, 26 February 2008 17:58 Go to previous message
twhaw is currently offline  twhaw
Messages: 5
Registered: February 2008
Junior Member
Dear all,

Thanks for your kind replies.

The reason why I can't use the 2D polyfillv is that the points are not
sampled as 2D slices in the rectangular coordinate system. Instead, it
is instead sampled in the spherical coordinate system (every 5 deg
longitudinally) and converted back to rectangular coordinates using
CV_COORD. I am sampling the blobs in the spherical coordinate system
so that I can get the same number of sample points regardless of the
size of the blobs (some are slightly small, some are slightly bigger).

I have checked out IDLanROI. It seems that we can defined a 3D ROI by
loading a (3, n) array. Maybe I can throw in my (3, n) array of sample
points and check whether a point in the 3D space is inside the ROI. In
this way, I might be able to get the points in the volume. But then
again, this method might be quite slow.

Many thanks again for your advices.

Cheers.


On Feb 27, 3:35 am, Mike <Michael.Mill...@gmail.com> wrote:
> What if you took your (3,n) values and, for each slice in your data
> volume, find the subset of the n points that fall on (or near enough
> to be considered "on") that slice?  Then you could use polyfillv on
> that slice.  I haven't done this with quite the data you have, but
> that is the method that I use to create 3D ROIs out of multiple 2D
> ROIs.
>
> Mike
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Problem with ENVI_CONVERT_File_COORDINATES
Next Topic: Where is GUI builder in IDL7?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:51:06 PDT 2025

Total time taken to generate the page: 0.01258 seconds