[Insight-users] Possible bug in GaussianSpatialObject

Ali - saveez at hotmail.com
Mon Jun 16 16:19:20 EDT 2008


Hi Julien,

It seems there is this bug in GaussianSpatialObject which causes to mess 
up the whole spatial object image when the translation transform is 
applied. Here is an example:

    itkGaussianSpatialObject2 gaus = new itkGaussianSpatialObject2();
    gaus.SetMaximum(255);
    gaus.SetRadius(7);
    itkVectorD2 offset = new itkVectorD2();
    offset.SetElement(0, 0.0);
    offset.SetElement(1, 0.0);
    gaus.GetIndexToObjectTransform().SetTranslation(offset);

(The above code is in java, but can be used as a pseudo code). Notice 
that whether the offset is zero or not, setting the translation value 
messes up the gaussian object. Here are the results:

Without calling translation: http://i26.tinypic.com/2j4u7pd.jpg
With calling translation: http://i31.tinypic.com/iwrd5y.jpg

All I wanted to do was to have a gaussian object at the centre of the 
image. Is there a better way of doing this?


-Ali




_________________________________________________________________

All new Live Search at Live.com

http://clk.atdmt.com/UKM/go/msnnkmgl0010000006ukm/direct/01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080616/a69cc4a2/attachment.htm>


More information about the Insight-users mailing list