comparison Framework/Toolbox/DicomInstanceParameters.cpp @ 1221:e2435a524029

merge
author Alain Mazy <alain@mazy.be>
date Sat, 07 Dec 2019 17:47:35 +0100
parents c93a6218f0cd
children 17a92c39c633 2d8ab34c8c91
comparison
equal deleted inserted replaced
1220:9ee6b28f53e8 1221:e2435a524029
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