comparison Core/Images/ImageProcessing.cpp @ 3683:12253ddefe5a

skeleton for new route: /instances/{id}/rendered
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 24 Feb 2020 17:19:37 +0100
parents 5f64c866108a
children 3971ec6b1f72
comparison
equal deleted inserted replaced
3682:5f64c866108a 3683:12253ddefe5a
546 { 546 {
547 ShiftScaleInternal<TargetType, SourceType, false, false>(target, source, a, b, minTargetValue); 547 ShiftScaleInternal<TargetType, SourceType, false, false>(target, source, a, b, minTargetValue);
548 } 548 }
549 } 549 }
550 550
551 void ImageProcessing::ApplyWindowing(ImageAccessor& target, 551 void ImageProcessing::ApplyWindowing_Deprecated(ImageAccessor& target,
552 const ImageAccessor& source, 552 const ImageAccessor& source,
553 float windowCenter, 553 float windowCenter,
554 float windowWidth, 554 float windowWidth,
555 float rescaleSlope, 555 float rescaleSlope,
556 float rescaleIntercept, 556 float rescaleIntercept,
557 bool invert) 557 bool invert)
558 { 558 {
559 if (target.GetWidth() != source.GetWidth() || 559 if (target.GetWidth() != source.GetWidth() ||
560 target.GetHeight() != source.GetHeight()) 560 target.GetHeight() != source.GetHeight())
561 { 561 {
562 throw OrthancException(ErrorCode_IncompatibleImageSize); 562 throw OrthancException(ErrorCode_IncompatibleImageSize);