[Insight-users] Using Landmarks with itkFEMRegistration

Brian B Avants avants at grasp . cis . upenn . edu
Wed, 10 Sep 2003 16:43:49 -0400 (EDT)


Ralf,

It would be possible to set the landmark variance in a landmark load
object.  You can create a landmark load object in code.  However, as
usually landmarks are numerous and typically stored in files as opposed to
code, the best approach is to create a landmark file which is read in
during the configuration.  The number of parameters in the fem
registration is numerous enough that we suggest using the configuration
file approach.  A sample landmark file is attached below.  The load # and
GN are set automatically and may be ignored.  The first number is in the
third numerical row is the dimension.  The co-ordinates in the image space
follow.

Brian

<LoadLandmark>   % curve:
-1	% Global load #
-1	% GN of element (undefined)
3       37.062       57.1667       30.2594    % Undeformed landmark
3       28.710       69.2823       32.2076    % Deformed landmark
     1.000000
<LoadLandmark>   % curve:
-1	% Global load #
-1	% GN of element (undefined)
3       37.062       57.1667       30.2594    % Undeformed landmark
3       30.825       66.7746       31.5519    % Deformed landmark
     1.000000
<LoadLandmark>   % curve:
-1	% Global load #
-1	% GN of element (undefined)
3       38.966       57.0000       39.6049    % Undeformed landmark
3       31.542       67.2576       30.8585    % Deformed landmark
     1.000000
<LoadLandmark>   % curve:            3
-1	% Global load #
-1	% GN of element (undefined)
3       40.719       57.0000       38.7370    % Undeformed landmar (template)
3       32.274       66.8653       39.9696    % Deformed landmark (subject)
     1.000000
<LoadLandmark>   % curve:            3
-1	% Global load #
-1	% GN of element (undefined)
3       42.562       57.0000       37.4918    % Undeformed landmark (template)
3       33.282       67.3599       39.0213    % Deformed landmark (subject)
     1.000000
<LoadLandmark>   % curve:            3
-1	% Global load #
-1	% GN of element (undefined)
3       44.613       57.0000       36.1368    % Undeformed landmark (template)
3       36.333       66.4034       38.1017    % Deformed landmark (subject)
     1.000000
<END>



On Wed, 10 Sep 2003, Ralf o Floca wrote:

> Hello
>
> I have questions regarding the use of landmark files with the
> itkFEMRegistration filter.
>
> 1. What type is the landmark file of? And how can a generate one?
> 2. The public function ReadConfigFile sets a landmark parameter "Landmark
> variance", but there seems to be no public function to set the parameter, if
> you don't use a parameter file for the setup. Is this correct, or is there a
> setting function, which I missed, when reading through the documentation?
>
> Thank you for any help,
> Ralf o Floca
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk . org
> http://www . itk . org/mailman/listinfo/insight-users
>