Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyLayerCropTracker.cpp @ 436:04711a2e12cd am-vsol-upgrade
fix crop + export photometric interpretation correctly
author | am@osimis.io |
---|---|
date | Thu, 06 Dec 2018 11:53:37 +0100 |
parents | b85f635f1eb5 |
children | a750f11892ec |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyLayerCropTracker.cpp Tue Dec 04 11:52:43 2018 +0100 +++ b/Framework/Radiography/RadiographyLayerCropTracker.cpp Thu Dec 06 11:53:37 2018 +0100 @@ -58,7 +58,7 @@ sourceCropWidth_(tracker.cropWidth_), sourceCropHeight_(tracker.cropHeight_) { - tracker.accessor_.GetLayer().GetGeometry().GetCrop(targetCropX_, targetCropY_, + tracker.accessor_.GetLayer().GetCrop(targetCropX_, targetCropY_, targetCropWidth_, targetCropHeight_); } }; @@ -77,7 +77,7 @@ { if (accessor_.IsValid()) { - accessor_.GetLayer().GetGeometry().GetCrop(cropX_, cropY_, cropWidth_, cropHeight_); + accessor_.GetLayer().GetCrop(cropX_, cropY_, cropWidth_, cropHeight_); } }