[Insight-users] Itk filter problem with vtkEdge paintbrush

Michael Xanadu xanadu.michael at googlemail.com
Wed Nov 11 07:00:08 EST 2009


Hi,

I want to convert a vtkImageData, delivered by vtkKWEPaintbrushWidget
respectively it's vtkKWEPaintbrushRepresentation2D, to an itk::Image:


vtkImageData *output = vtkImageData::New();
m_paintbrushRepresentation2D->GetPaintbrushDrawing()->GetPaintbrushData()->GetPaintbrushDataAsImageData(output);

typedef itk::VTKImageToImageFilter<Short3DType> VtkToItkType;
VtkToItkType::Pointer filter = VtkToItkType::New();
filter->SetInput(output);

filter->Update();


The problem is, that the applications crashes if I call filter->Update() and
following message is shown: "There is no source code available for the
current location." 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's currently no image!? I guess that's the reason why the filter
can't process the data. Does anybody know a solution?

Regards, Michael
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20091111/25ab6bbd/attachment.htm>


More information about the Insight-users mailing list