X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkHisImageIO.cxx;h=fde95dbe8d7ef5d353d4888e69e0a9491d623211;hb=0d42b6962669e20d31f6f7b566eefb2aecefa050;hp=e8b878cdb752aa7e62eb00fafa314aa538fd17d9;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git 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)); } //// //--------------------------------------------------------------------