From 9dff95177ee7e83239c6a62fd786b8d11fd06d5e Mon Sep 17 00:00:00 2001 From: srit Date: Wed, 8 Sep 2010 12:50:43 +0000 Subject: [PATCH] Hard code iamge information for Synergy since it's the only known source of his image (so far). --- common/clitkHisImageIO.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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)); } //// //-------------------------------------------------------------------- -- 2.47.1