From: srit Date: Wed, 8 Sep 2010 12:50:43 +0000 (+0000) Subject: Hard code iamge information for Synergy since it's the only known source of his image... X-Git-Tag: v1.2.0~407 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=9dff95177ee7e83239c6a62fd786b8d11fd06d5e;p=clitk.git Hard code iamge information for Synergy since it's the only known source of his image (so far). --- diff --git a/common/clitkHisImageIO.cxx b/common/clitkHisImageIO.cxx index e8b878c..fde95db 100755 --- a/common/clitkHisImageIO.cxx +++ b/common/clitkHisImageIO.cxx @@ -90,6 +90,12 @@ void clitk::HisImageIO::ReadImageInformation() SetDimensions(1, brx-ulx+1); if (nrframes>1) SetDimensions(2, nrframes); + + SetSpacing(0, 409.6/GetDimensions(0)); + SetSpacing(1, 409.6/GetDimensions(1)); + + SetOrigin(0, -0.5*(GetDimensions(0)-1)*GetSpacing(0)); + SetOrigin(1, -0.5*(GetDimensions(1)-1)*GetSpacing(1)); } //// //--------------------------------------------------------------------