[vtkusers] Help -> reader could not find requested method: SetDataAspectRatio

Vidya Raghavan vidya_raghavan at hotmail.com
Thu Jul 22 11:08:21 EDT 2004


Hi,

I'm getting the above error when I run some code. The error is found here:

vtkVolume16Reader reader;
    eval reader SetDataDimensions $RESOLUTION $RESOLUTION
    eval reader SetFilePrefix $STUDY

# Error!!
->>    eval reader SetDataAspectRatio $PIXEL_SIZE $PIXEL_SIZE $SPACING


    eval reader SetDataOrigin $origin $origin [expr $START_SLICE * $SPACING]
    eval reader SetImageRange $START_SLICE $END_SLICE
    reader SetHeaderSize $HEADER_SIZE
    reader SetDataMask 0x7fff;
    eval reader $SWAP
    [reader GetOutput] GlobalReleaseDataFlagOn;


I have assigned PIXEL_SIZE and SPACING as 1 and 1.0 respectively.

Any clue as to what may be wrong?

Thanks,

Vidya

_________________________________________________________________
Marriage?  http://www.bharatmatrimony.com/cgi-bin/bmclicks1.cgi?74 Join 
BharatMatrimony.com for free.




More information about the vtkusers mailing list