[vtkusers] Assigning vtkImageAppendComponents output to vtkImageData array
Anja Ende
anja.ende at googlemail.com
Mon Sep 18 10:52:39 EDT 2006
vtkImageData * histDataArray;
// OUCH!
histDataArray->SetDimensions(i_Dim,j_Dim,k_Dim);
histDataArray = threeCompArray->GetOutput();
histDataArray needs to be initialized....by vtkImageData::New();
or you can do this:
vtkImageData * histDataArray;
// Set reference first
histDataArray = threeCompArray->GetOutput();
if (histDataArray)
histDataArray->SetDimensions(i_Dim,j_Dim,k_Dim);
Hope that helps.
Anja
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060918/8019fefd/attachment.htm>
More information about the vtkusers
mailing list