[Insight-users] Pixel difference between two images

Cory Quammen cquammen at cs.unc.edu
Fri Sep 30 11:27:24 EDT 2011


You should uncomment the first line below and comment out the second, like this

>       TransformType::Pointer transform = TransformType::New() ;
> //       TransformType transform ;
>
>        metric->SetTransform( transform ) ;
>        metric->SetFixedImage( FixedImage ) ;
>        metric->SetMovingImage( MovingImage ) ;

Then you need to set up a list of parameters and pass it to GetValue();

          TransformType::ParametersType params;
>        std::cout<<endl<< metric->GetValue(params) << endl ;
>
>        return ;
> }

Cory

>
>
> 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.
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>



-- 
Cory Quammen
Research Associate
Department of Computer Science
The University of North Carolina at Chapel Hill


More information about the Insight-users mailing list