[Insight-users] Smart pointer to filter output
Lodron, Gerald
Gerald.Lodron at joanneum.at
Tue Nov 17 10:26:42 EST 2009
Hello
How can I make a smart pointer to my filter output, here my code:
Class parameters (TargetImageType is a template parameter):
typedef typename itk::VTKImageToImageFilter<TargetImageType> TargetConnectorType;
typename TargetImageType::Pointer m_TargetImage;
typename TargetConnectorType::Pointer m_TargetConnector;
Function:
void setSourceImage(vtkImageData* image)
{
m_TargetConnector= SourceConnectorType::New();
m_TargetConnector->SetInput(image);
m_TargetImage= m_TargetConnector->GetOutput(); //does not work
}
More information about the Insight-users
mailing list