[vtkusers] Please help to make 3D image...
이 명훈
kasmi01 at hotmail.com
Tue Nov 2 22:09:28 EST 2004
Hi.
I'd like to make 3D image use to vtkImageData.. but failed...
Array buffer has all data as 'DataSizeX * DataSizeY * DataSizeZ'
This coding display only one section image for DataSize = 1
Not 3D image, but 2D image in DataSize == 1
please Help this problem...
vtkImageData *multiVol = vtkImageData::New();
multiVol->SetDimensions(DataSizeX, DataSizeY, DataSizeZ);
multiVol->SetSpacing(1, 1, 10);
multiVol->SetOrigin(0, 0, 0);
multiVol->SetScalarType(VTK_UNSIGNED_CHAR);
multiVol->GetPointData()->SetScalars(array);
vtkImageMapToColors *mapColor = vtkImageMapToColors::New();
mapColor->SetInput(multiVol);
mapColor->SetLookupTable(lutScaleColor);
vtkImageActor *imageActor = vtkImageActor::New();
imageActor->SetInput(mapColor->GetOutput());
And one question... ^^;;
ContourFilter::SetValue(int i, float value)
what means variable 'i' and 'value'
Thank you....
_________________________________________________________________
싸게 싸게 MSN공동구매
http://www.waawaa.com/cobuy/cobuy_default.asp?siteid=10160
More information about the vtkusers
mailing list