[vtkusers] Data Extent confusion

Mauricio Reyes maurey at ctcinternet.cl
Mon Jan 8 06:10:45 EST 2001


Hi VTK Users!  I have a question (an a confusion too ) about the data
extent ...
I read a VOI from an original set of dimensions : 500*500*300 ..the VOI
is :

VOI : 100 to 250 , 150 to 450, and 100 to 300 this works fine to me, I
do this..

vtkBMPReader lector
lector SetFilePrefix  etc etc...
lector SetDataVOI 100 250 150 450 100 300
lector SetDataByteOrderToLittleEndian
lector SetDataSpacing 1 1 1
[lector GetOutput] ReleaseDataFlagOn

Then, I want to copy (or resample later, but at this point just make a
copy) the structured point generated by the BMPReader in this way....

vtkStructuredPoints st
    st SetDimensions 150 300 200
    str SetSpacing 1 1 1   (later I will resample changing this values)
vtkProbeFilter prfil
   prfil SetInput st
   prfil SetSource [lector GetOutput]

This doesn't work ..but if I use SetDimensions 250 450 300 it works, but
I think this is a structured point too big.... (to me this point is very
important because I run out of memory when I use this big structured
point)

..So I began to set values to SetOrigin and SetExtent...but it doesn't
work! .
for example I try this:

....
st SetDimensions 150 300 200
st SetOrigin 100 150 100
st SetExtent 100 250 150 450 100 300    (doesn't work )

I expect anyone can help me , please.
Thanks in advance..
Mauricio R.
 PS: Happy New Year!!










More information about the vtkusers mailing list