<pre><br><br>vtkImageData * histDataArray;<br>// OUCH!<br>histDataArray->SetDimensions(i_Dim,j_Dim,k_Dim);<br>histDataArray = threeCompArray->GetOutput();<br><br>histDataArray needs to be initialized....by vtkImageData::New();
<br><br>or you can do this:<br><br>vtkImageData * histDataArray;<br>// Set reference first<br>histDataArray = threeCompArray->GetOutput();
if (histDataArray)<br> histDataArray->SetDimensions(i_Dim,j_Dim,k_Dim);<br><br>Hope that helps.<br><br>
Anja<br><br></pre>