[vtkusers] Eror: Not a base type

Ravi Samala raviksamala at yahoo.com
Thu Oct 6 10:37:16 EDT 2005


hello VTKUsers,

I have been trying to get rid of this error for a
complete day, pls help with this.

I used VTKImageSlice to get a slice from a 3D volume
which was read using vtkVolume16Reader.

//to read the 2D slices and generate a 3D volume
vtkVolume16Reader *v16Img = vtkVolume16Reader::New();
v16Img->SetDataDimensions (sizex,sizey);
v16Img->SetImageRange (atoi(argv[3]),atoi(argv[4]));	
v16Img->SetHeaderSize(HeadS);
v16Img->SetFilePrefix (argv[2]);	
v16Img->SetDataSpacing (0.1, 0.1, 0.5);
v16Img->SetDataOrigin(0, 0, 0);

//to extract a slice from the 3D volume
vtkImageReslice* imgReslice =  vtkImageReslice::New();
imgReslice->SetResliceAxesDirectionCosines(0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0);
imgReslice->SetOutputDimensionality(2);
imgReslice->SetResliceAxesOrigin(0,0,0);
imgReslice->SetInput(v16Img->GetOutput());

My next objective was to pass the slice to a filter
called PMFilter using...

my_image* PMDiffusedImage =
calculatePMDiffusionEq(imgReslice->GetOutput());

For this I am getting an error message as follows:

---------------------------------------------------
 type `my_image' is not a base type for type
`vtkImageData'
*** Error code 1
---------------------------------------------------

any help will be greatly appreciated.

Thank you,
Ravi.



		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com



More information about the vtkusers mailing list