[Insight-users] Pixel difference between two images
soheilghafurian
soheilghafurian at yahoo.com
Fri Sep 30 11:18:02 EDT 2011
Thanks a lot Cory. That makes sense, but still I can't get it working. Here
is my code and the error. Could you tell me what I'm doing wrong?
void fitness( Tiff2dImageType::Pointer FixedImage ,
C_DRRCr::TDOutputImageType::Pointer MovingImage )
{
typedef itk::MeanSquaresImageToImageMetric < Tiff2dImageType ,
C_DRRCr::TDOutputImageType > MetricType ;
MetricType::Pointer metric = MetricType::New() ;
typedef itk::IdentityTransform < double , 2 > TransformType ;
// TransformType::Pointer transform = TransformType::New() ;
TransformType transform ;
metric->SetTransform( transform ) ;
metric->SetFixedImage( FixedImage ) ;
metric->SetMovingImage( MovingImage ) ;
std::cout<<endl<< metric->GetValue() << endl ;
return ;
}
and the error is:
error C2248:
'itk::IdentityTransform<TScalarType,NDimensions>::IdentityTransform' :
cannot access protected member declared in class
'itk::IdentityTransform<TScalarType,NDimensions>'
--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/Pixel-difference-between-two-images-tp6832343p6848179.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
More information about the Insight-users
mailing list