[Insight-developers] GaussianImageSource

Luis Ibanez luis.ibanez@kitware.com
Tue, 19 Feb 2002 17:57:31 -0500


Hi Damion,

I'm using itk::GaussianImageSource to simplify the examples
of Registration. For most of them, the majority of the code
is dedicated to create two images with Gaussians inside.

---

We are looking into options for passing parameters  in the
Registration Framework between the Optimizers, Transforms
and Metrics. Maybe the way in which your are passing parameters
to the GaussianImageSource could be a good option for this.

SetVectorMacro() is passing a pointer (to an array) and an integer.
(with the size of the array).  For the users of the code, the size of
the array is fixed.

However your class mix two style for passing parameters:

1) SetVectorMacro(); (using a *type, and an int)
2) SetMacro()   with an itk::Array

Spacing,Origin and Size are using (1)
Mean and Sigma are using (2)

It looks like both methods (1) or (2) could have been used...
for any of the parameters.


What are the advantages/disadvantages that you found on
each method ?



Thanks

   Luis


BTW: A minor change in style was made to your class: "TArrayType"
was being used to define a type, as opposed to just "ArrayType".