[Insight-developers] Problems with precision with MetaImageIO

Julien Jomier jjomier at cs.unc.edu
Thu Mar 9 13:06:02 EST 2006


Looks great. Feel free to check it in.

Thanks,

Julien

Kent Williams wrote:
> That would work.  Something like this patch:
> 
> *** itkMetaImageIO.h    28 Sep 2005 13:04:22 -0500    1.28
> --- itkMetaImageIO.h    09 Mar 2006 11:57:39 -0600   ***************
> *** 89,94 ****
> --- 89,100 ----
>        independent files */
>    virtual void SetDataFileName( const char * filename );
> 
> +   /** set the precision in the MetaImage member
> +    */
> +   virtual void SetDoublePrecision(unsigned int precision)
> +   {
> +     m_MetaImage->SetDoublePrecision(precision);
> +   }
>  protected:
>    MetaImageIO();
>    ~MetaImageIO();
> 
> Julien Jomier wrote:
> 
>> The SetDoublePrecision() was added in the SpatialObjectWriter for this 
>> particular reason but is not currently implemented in the 
>> itkMetaImageIO class.
>>
>> Kent, would that work if you add the function in the itkMetaImageIO 
>> class and the user has to set the ImageIO by hand when he wants to 
>> change the precision?
>> I agree with Stephen that 12 decimals can be too much for large 
>> objects (blob, mesh, ...).
>>
>> Let me know if I can do anything to help with this,
>>
>> Julien
>>
>>
> 
> _______________________________________________
> Insight-developers mailing list
> Insight-developers at itk.org
> http://www.itk.org/mailman/listinfo/insight-developers
> 



More information about the Insight-developers mailing list