[vtkusers] Problem with vtkImageAppend
Sven Olaf Lüttmann
sven at svenluettmann.de
Sat Sep 12 13:14:04 EDT 2009
Hey guys,
I'm reading DICOM images into a std::vector of vtkImageData to apply
some image processing.
Now I like to take those images stored in the vector and append them
using vtkImageAppend to get an 3D Image (Volume data).
The problem that occurred is, when I apply visualisation Techniques like
ray casting my volume is mirrored along the y-Axis. So everything is
just inverted.
As far as figured out the source must be the vtkImageAppend cause if I
use vtkDICOMImageReader for instance everything works just fine.
My Code looks like:
if(!this->imageAppend)
this->imageAppend = vtkSmartPointer<vtkImageAppend>::New();
this->imageAppend->SetAppendAxis(2);
for(int i=0; i < this->vtkImageSeriesContainer.size(); i++)
{
this->imageAppend->SetInput(i, this->vtkImageSeriesContainer.at(i));
}
this->imageAppend->Update();
Any ideas on that???
Thanks for help
Cheers
Sven
More information about the vtkusers
mailing list