[Insight-users] Using image metric with identity transform.
M.Staring at lumc.nl
M.Staring at lumc.nl
Fri Jul 4 05:48:49 EDT 2008
Hi Brano,
In case of the Identity transform the parameters don't matter, since it
has no parameters. When transforming points it will simply return the
input point, independent of parameters you set.
Therefore, you can pass any parameters to GetValue, you are not required
to do something like:
ParametersType parameters = identityTransform->GetParameters(); // this
will generate the exception
SSDmetric->GetValue( parameters );
Instead you can probably do:
ParametersType parameters( 0 );
SSDmetric->GetValue( parameters );
Regards,
Marius
> -----Original Message-----
> From: insight-users-bounces at itk.org
> [mailto:insight-users-bounces at itk.org] On Behalf Of Branislav Goga
> Sent: Friday, July 04, 2008 10:28 AM
> To: insight-users at itk.org
> Subject: [Insight-users] Using image metric with identity transform.
>
>
> Hi all,
> I tried to use itk::MeanSquareImageToImage<> with
> itk::IdentityTransform<>.
> When I will get the value, I call ::GetValue( ParametersType
> ) method, but IdentityTransform has no parameters and when I
> try to get the array from transform, I become exception
> "Subclasses should override this method".
> Is there some clean way how to use this classes together? I
> can create itk::FixedArray with zero values and set it into
> GetValue(), but it does not look very clean.
> Thanks for ideas,
>
> regards
> Brano
> --
> View this message in context:
> http://www.nabble.com/Using-image-metric-with-identity-transfo
> rm.-tp18275192p18275192.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
> No virus found in this incoming message.
> Checked by AVG.
> Version: 8.0.134 / Virus Database: 270.4.4/1531 - Release
> Date: 7/2/2008 7:02 PM
>
More information about the Insight-users
mailing list