Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/ShearWarpProjectiveTransform.cpp @ 705:f45fca2ebd10
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 20 May 2019 09:38:25 +0200 |
parents | 059e1fd05fd6 |
children | c3bbb130abc4 |
comparison
equal
deleted
inserted
replaced
704:f8242d4b1f8d | 705:f45fca2ebd10 |
---|---|
541 { | 541 { |
542 TargetTraits::SetZero(*p); | 542 TargetTraits::SetZero(*p); |
543 } | 543 } |
544 else | 544 else |
545 { | 545 { |
546 *p = static_cast<TargetTraits::PixelType> | 546 *p = static_cast<typename TargetTraits::PixelType> |
547 (*qacc / static_cast<float>(*qcount)); | 547 (*qacc / static_cast<float>(*qcount)); |
548 | 548 |
549 if (*p > maxValue) | 549 if (*p > maxValue) |
550 { | 550 { |
551 maxValue = *p; | 551 maxValue = *p; |