[Insight-users] Class doesn't pass the data

soheilghafurian soheilghafurian at yahoo.com
Fri Jul 22 11:51:43 EDT 2011


when I write the same think this way it works. Does anyone have any idea, why
it doesn't work the first way? Is it related to itk smart pointers?

Header:

class C_GetDicomDifference
{
	typedef itk::SubtractImageFilter < DicomImageType , DicomImageType ,
DicomImageType > DifferenceFilterType ;

	DifferenceFilterType::Pointer DifferenceFilter ; 
	

public:
	C_GetDicomDifference ( DicomImageType::Pointer , DicomImageType::Pointer )
;

	DicomImageType::Pointer Difference;
};

source:

#include "GetDicomDifference.h"

C_GetDicomDifference::C_GetDicomDifference ( DicomImageType::Pointer Dicom1, 
											DicomImageType::Pointer Dicom2 ) 
{
	DifferenceFilter = DifferenceFilterType::New() ;
	DifferenceFilter->SetInput1 ( Dicom1 ) ;
	DifferenceFilter->SetInput2 ( Dicom2 ) ;

	Difference = DifferenceFilter->GetOutput()  ;
}

--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Class-doesn-t-pass-the-data-tp6610869p6610949.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.


More information about the Insight-users mailing list