comparison Framework/Radiography/RadiographyLayer.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 4eb96c6b4e96
children a750f11892ec
comparison
equal deleted inserted replaced
435:e641d3978856 436:04711a2e12cd
45 } 45 }
46 46
47 void RadiographyLayer::Geometry::GetCrop(unsigned int &x, unsigned int &y, unsigned int &width, unsigned int &height) const 47 void RadiographyLayer::Geometry::GetCrop(unsigned int &x, unsigned int &y, unsigned int &width, unsigned int &height) const
48 { 48 {
49 if (!hasCrop_) 49 if (!hasCrop_)
50 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); // you should probably use Radiography::GetCrop() or at least call HasCrop() before 50 throw Orthanc::OrthancException(Orthanc::ErrorCode_BadSequenceOfCalls); // you should probably use RadiographyLayer::GetCrop() or at least call HasCrop() before
51 51
52 x = cropX_; 52 x = cropX_;
53 y = cropY_; 53 y = cropY_;
54 width = cropWidth_; 54 width = cropWidth_;
55 height = cropHeight_; 55 height = cropHeight_;