Hi,<br><br>I want to convert a vtkImageData, delivered by vtkKWEPaintbrushWidget respectively it&#39;s vtkKWEPaintbrushRepresentation2D, to an itk::Image:<br><br><br>vtkImageData *output = vtkImageData::New();<br>m_paintbrushRepresentation2D-&gt;GetPaintbrushDrawing()-&gt;GetPaintbrushData()-&gt;GetPaintbrushDataAsImageData(output);<br>

<br>typedef itk::VTKImageToImageFilter&lt;Short3DType&gt; VtkToItkType;<br>VtkToItkType::Pointer filter = VtkToItkType::New();<br>filter-&gt;SetInput(output);<br><br>filter-&gt;Update();<br><br><br>The problem is, that the applications crashes if I call filter-&gt;Update() and following message is shown: &quot;There is no source code available for the current location.&quot; It seems that something is wrong with the output data of the paintbrush. Whether the paintbrush delivers an correct image I can look at with a vtkImageViewer (all looks fine), the indent of that image says, that there&#39;s currently no image!? I guess that&#39;s the reason why the filter can&#39;t process the data. Does anybody know a solution?<br>
<br>Regards, Michael<br><br>