[ITK] [ITK-users] convert transform from float to double
Ali Ghayoor
alii.ghayoor at gmail.com
Thu Apr 3 10:53:33 EDT 2014
Hi,
In the transform reader/writer classes, the template argument reflects the
"desired" output precision type for the input to the filter.
It means if you read your transforms by itkTransformFileReader (aka
itkTransforFileReaderTemplate<double>),
your transforms are read as double transforms no matter they were in single
or double precision. The same fact holds for the
itkTransformFileWriterTemplate class.
Therefore, as one way, you can read your transforms as double and write them
again to the disk as double transforms.
HTH,
Ali
From: Emma Saunders <emmasaunders123 at gmail.com>
Date: Thursday, April 3, 2014 at 9:09 AM
To: "insight-users at itk.org Users" <insight-users at itk.org>
Subject: [ITK-users] convert transform from float to double
Hi All
Does anyone know how I would go about converting a float affine and
displacement transform into double format?
Many thanks
Emma
_____________________________________ Powered by www.kitware.com Visit other
Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html Kitware offers ITK
Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php Please keep messages
on-topic and check the ITK FAQ at: http://www.itk.org/Wiki/ITK_FAQ Follow
this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140403/6ffba2d3/attachment-0002.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
More information about the Community
mailing list