<br>Hi Motes, <br><br>I have not been able to replicate the problem that you report.<br><br><br>When printing the array of parameters from a the registration<br>that uses an Affine transform I only get 6 digits of precision.<br>
<br>Please do the following<br><br> double pre = std::cout.precision();<br> std::cout << "PRECISION = " << pre << std::endl;<br> std::cout << "PARAMETERS = " << registration->GetLastTransformParameters() << std::endl;<br>
<br><br>and post back to the mailing list the value that you get for<br>"PRECISION". It if it larger than six, it means that some code<br>is altering the precision of the cout stream before you get to<br>print the values of the Transform.<br>
<br>You can reset the precision value by doing:<br><br> std::cout.precision( 6 );<br><br>before you call <br><br> std::cout << "PARAMETERS = " << registration->GetLastTransformParameters() << std::endl;<br>
<br><br><br> Regards,<br><br><br> Luis<br><br><br>----------------------------------------------------<br><div class="gmail_quote">On Tue, Apr 20, 2010 at 10:27 AM, motes motes <span dir="ltr"><<a href="mailto:mort.motes@gmail.com">mort.motes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I use Ubuntu 9.10 (Intel Core 2 Duo 8400 , 6GB RAM) and itk 3.16.0.<br>
<br>
I did not do anything with std::cout before printing.<br>
<div><div></div><div class="h5"><br>
<br>
On Tue, Apr 20, 2010 at 3:56 PM, Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>> wrote:<br>
><br>
> Hi Motes,<br>
><br>
> What is your platform ?<br>
> (hardware, OS, compiler, ITK version)<br>
><br>
> Did you configure the "precision" and "width"<br>
> parameters of std::cout before you printed<br>
> out the transform parameters array ?<br>
><br>
><br>
> Thanks<br>
><br>
><br>
> Luis<br>
><br>
><br>
> ---------------------------------------------<br>
> On Tue, Apr 20, 2010 at 9:32 AM, motes motes <<a href="mailto:mort.motes@gmail.com">mort.motes@gmail.com</a>> wrote:<br>
>><br>
>> I run an affine transform registration method on some 3D volumes of<br>
>> lungs. When the registration is finished I print the final parameters<br>
>> and get something like this:<br>
>><br>
>> std::cout <<<br>
>> this->GetRegistrationMethod()->GetLastTransformParameters() <<<br>
>> std::endl;<br>
>><br>
>><br>
>><br>
>> [0.951667582727522831653743651259, 0.0728499208745208848281293967375,<br>
>> 0.0310351798340151377453288716879, -0.0561726243236064515240713035382,<br>
>> 0.961160170937920277367538801627, -0.146546731618589859413859244341,<br>
>> 0.0123860197386243559708463024549, 0.0651848989513143378671244931866,<br>
>> 1.18828264295300267683330730506, 3.12243433628694821990734453721,<br>
>> -6.24760280608263318669060026878, 21.9959449816921157605520420475]<br>
>><br>
>> there seems to be something wrong with the precision, is it meant to<br>
>> be that large for the affine transform parameters?<br>
>> _____________________________________<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>
>> Kitware offers ITK Training Courses, for more information visit:<br>
>> <a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.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>