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

Home » Public Forums » archive » Extracting subregions from a data cube
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Extracting subregions from a data cube [message #60942 is a reply to message #60824] Tue, 24 June 2008 01:47 Go to previous message
Chris[5] is currently offline  Chris[5]
Messages: 16
Registered: May 2008
Junior Member
On Jun 20, 12:03 pm, Chris <cnb4s...@gmail.com> wrote:
> Hi everyone,
>
> I want to extract a subregion of a data cube. The boundary of the
> region would be an isophotal surface (the value of the contour level
> would be something like three sigma above the background), and I have
> a voxel index that lies inside this boundary (to select only one of
> possibly several isophotal clumps).
>
> My knowledge of 3D image analysis is pretty sparse, but I suspect
> there may be some built in IDL routines that would get the job done.
> I've looked at ISOSURFACE, but that seems to return be boundary
> locations (instead of the interior voxels). Off the top of my head, I
> wouldn't know how to take this output and 1) select only the isophotal
> 'clump' that interests me, or 2) calculate whether a given voxel is
> inside our outside that boundary.
>
> Any ideas?

I've figured out a solution -- for the sake of the forum's
completeness, I'll answer my own question:

To create a mask for a 3D ROI which contains a seed voxel and the
neighboring region above some threshold, do something like

binary=(cube ge threshold)
groups=label_region(binary,/all_neighbors)
index=groups[seed]
return,where(groups eq index)
[Message index]
 
Read Message
Read Message
Previous Topic: a strange loop problem
Next Topic: Re: a strange loop problem

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

Current Time: Sat Oct 11 06:52:52 PDT 2025

Total time taken to generate the page: 0.32346 seconds