Thx a lot Bill!<br>I didnt realize that PixelType was defined as unsigned char...<br><br><br><br><div class="gmail_quote">Le 9 septembre 2009 16:39, Bill Lorensen <span dir="ltr"><<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>></span> a écrit :<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Change the typedef PixelType to short. The ImageFileReader is<br>
converting the input data to unsigned char.<br>
<br>
<br>
2009/9/9 frédéric salvador <<a href="mailto:frederic.salvador@gmail.com">frederic.salvador@gmail.com</a>>:<br>
<div><div></div><div class="h5">> Dear all,<br>
><br>
> I would like to register 3D CT images of the abdomen using the Thin Plate<br>
> Splines Registration.<br>
> My goal is to select a set of landmarks (6 or 7 for instance) both in a<br>
> FixedImage and MovingImage, compute the transform from the MovingImage to<br>
> the FixedImage, and apply this transform to the MovingImage (and finally<br>
> save the RegisteredMovingImage as a ".mha" file).<br>
><br>
> Actually, I already tried to implement such a process based on the<br>
> "InsightToolkit-3.14.0/Examples/Registration/ThinPlateSplineWarp.cxx".<br>
> The problem is that my output moving registered image presents intensities<br>
> between 0 and 255, as it had been rescaled on 8 bits, whereas both my input<br>
> images had intensities between lets say -1000 and +2000.<br>
> Where does this come from?<br>
> Is it possible to avoid this?<br>
><br>
> Thank you very much in advance for your help.<br>
><br>
> Best regards.<br>
><br>
> Frederic Salvador<br>
><br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
><br>
</div></div></blockquote></div><br>