comparison Framework/Toolbox/DicomInstanceParameters.cpp @ 1206:c93a6218f0cd

Fixed photometric interpretation in texture creation
author Benjamin Golinvaux <bgo@osimis.io>
date Tue, 03 Dec 2019 09:51:00 +0100
parents 7681f3943748
children 17a92c39c633 2d8ab34c8c91
comparison
equal deleted inserted replaced
1202:9added0d371e 1206:c93a6218f0cd
418 if (data_.hasDefaultWindowing_) 418 if (data_.hasDefaultWindowing_)
419 { 419 {
420 texture->SetCustomWindowing(data_.defaultWindowingCenter_, 420 texture->SetCustomWindowing(data_.defaultWindowingCenter_,
421 data_.defaultWindowingWidth_); 421 data_.defaultWindowingWidth_);
422 } 422 }
423 423
424
425 if (data_.imageInformation_.GetPhotometricInterpretation()
426 == Orthanc::PhotometricInterpretation_Monochrome1)
427 {
428 texture->SetInverted(true);
429 }
430 else if (data_.imageInformation_.GetPhotometricInterpretation()
431 == Orthanc::PhotometricInterpretation_Monochrome2)
432 {
433 texture->SetInverted(false);
434 }
435
424 return texture.release(); 436 return texture.release();
425 } 437 }
426 } 438 }
427 439
428 440