X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImageReader.txx;h=2eba11c81bc628f107d7f738c0a6d750fba7ef8f;hb=543b72e23ad001ac2a7743b9beacf48e2d0054ac;hp=4bf6616f5f8d7d29cd570ccfb66a3e7b7ff01f41;hpb=3a065704c5a062414593171bcb34d113e67ae973;p=clitk.git diff --git a/common/vvImageReader.txx b/common/vvImageReader.txx index 4bf6616..2eba11c 100644 --- a/common/vvImageReader.txx +++ b/common/vvImageReader.txx @@ -200,10 +200,10 @@ void vvImageReader::UpdateWithDimAndInputPixelType() } } - if (VImageDimension == 4) +/* if (VImageDimension == 4) mType == VECTORPIXELIMAGEWITHTIME; else - mType == VECTORPIXELIMAGE; + mType == VECTORPIXELIMAGE;*/ try { mImage = vvImageFromITK(output, mType == VECTORPIXELIMAGEWITHTIME); @@ -257,6 +257,9 @@ void vvImageReader::UpdateWithDimAndInputPixelType() } } } + + if (mType == DICOM && !mPatientCoordinateSystem) + mImage->InitializeTransform(); } //----------------------------------------------------------------------------