<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hi Julien,<br><br>It seems there is this bug in GaussianSpatialObject which causes to mess <br>up the whole spatial object image when the translation transform is <br>applied. Here is an example:<br><br> itkGaussianSpatialObject2 gaus = new itkGaussianSpatialObject2();<br> gaus.SetMaximum(255);<br> gaus.SetRadius(7);<br> itkVectorD2 offset = new itkVectorD2();<br> offset.SetElement(0, 0.0);<br> offset.SetElement(1, 0.0);<br> gaus.GetIndexToObjectTransform().SetTranslation(offset);<br><br>(The above code is in java, but can be used as a pseudo code). Notice <br>that whether the offset is zero or not, setting the translation value <br>messes up the gaussian object. Here are the results:<br><br>Without calling translation: http://i26.tinypic.com/2j4u7pd.jpg<br>With calling translation: http://i31.tinypic.com/iwrd5y.jpg<br><br>All I wanted to do was to have a gaussian object at the centre of the <br>image. Is there a better way of doing this?<br><br><br>-Ali<br><br><br><br><br /><hr />Miss your Messenger buddies when on-the-go? <a href='http://clk.atdmt.com/UKM/go/msnnkmgl0010000001ukm/direct/01/' target='_new'>Get Messenger on your Mobile!</a></body>
</html>