[vtkusers] get the corresponding part of vtkimagedata

Jérôme jerome.velut at gmail.com
Sat May 8 12:39:30 EDT 2010


Then I think I misunderstood your concept of dimensions. ExtractVOI takes
a VOI as parameter through xmin, xmax, ymin, ymax, zmin, zmax. These
values will be the output extent, in voxel unit. If your boundaries
are expressed
in real world coordinates, then you just have to translate the VOI according to
input image spacing and origin.

Jerome



2010/5/8 Ali Habib <ali.mahmoud.habib at gmail.com>:
> vtkExtractVOI take the xmin and xmax ,..,zmin,zmax
> of the slices
> not the dimensions
> any other solution please , because I tried it but failed
> Best regards
>
> On Sat, May 8, 2010 at 12:32 PM, Jérôme <jerome.velut at gmail.com> wrote:
>>
>> Hi,
>> Take a look at vtkExtractVOI.
>>
>> HTH
>> Jerome
>>
>> 2010/5/8 Ali Habib <ali.mahmoud.habib at gmail.com>:
>> > Dear all,
>> > by using vtk I displayed vtkimagedata and I use the mouse to select
>> > rectangle part to apply vtkmarchingcube filter  , how to get or cut the
>> > part
>> > of vtkimagedata by knowing xmin, xmax, ymin, ymax, zmin, zmax boundry of
>> > the
>> > disered region
>> >
>> > for exampple
>> > the vtkimage data dimension 213,213,36
>> > and the boundry of the selection:
>> > xmin = 309, xmax = 432, ymin= 161 , ymax = 239 , zmin= -99 , zmax = 50
>> >
>> > any suggestion please
>> > Best regards
>> > _______________________________________________
>> > Powered by www.kitware.com
>> >
>> > Visit other Kitware open-source projects at
>> > http://www.kitware.com/opensource/opensource.html
>> >
>> > Please keep messages on-topic and check the VTK FAQ at:
>> > http://www.vtk.org/Wiki/VTK_FAQ
>> >
>> > Follow this link to subscribe/unsubscribe:
>> > http://www.vtk.org/mailman/listinfo/vtkusers
>> >
>> >
>
>



More information about the vtkusers mailing list