Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/ImageGeometry.cpp @ 338:b3b3fa0e3689 am-2
BitmapStack
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 19 Oct 2018 12:50:38 +0200 |
parents | 3e42fc27eb91 |
children | f5d5814a41a0 |
comparison
equal
deleted
inserted
replaced
337:c4d4213f095c | 338:b3b3fa0e3689 |
---|---|
339 default: | 339 default: |
340 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | 340 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); |
341 } | 341 } |
342 break; | 342 break; |
343 | 343 |
344 case Orthanc::PixelFormat_Float32: | |
345 switch (interpolation) | |
346 { | |
347 case ImageInterpolation_Nearest: | |
348 ApplyAffineInternal<Orthanc::PixelFormat_Float32, | |
349 ImageInterpolation_Nearest>(target, source, a); | |
350 break; | |
351 | |
352 case ImageInterpolation_Bilinear: | |
353 ApplyAffineInternal<Orthanc::PixelFormat_Float32, | |
354 ImageInterpolation_Bilinear>(target, source, a); | |
355 break; | |
356 | |
357 default: | |
358 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | |
359 } | |
360 break; | |
361 | |
344 case Orthanc::PixelFormat_RGB24: | 362 case Orthanc::PixelFormat_RGB24: |
345 switch (interpolation) | 363 switch (interpolation) |
346 { | 364 { |
347 case ImageInterpolation_Nearest: | 365 case ImageInterpolation_Nearest: |
348 ApplyAffineInternal<Orthanc::PixelFormat_RGB24, | 366 ApplyAffineInternal<Orthanc::PixelFormat_RGB24, |
537 default: | 555 default: |
538 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | 556 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); |
539 } | 557 } |
540 break; | 558 break; |
541 | 559 |
560 case Orthanc::PixelFormat_Float32: | |
561 switch (interpolation) | |
562 { | |
563 case ImageInterpolation_Nearest: | |
564 ApplyProjectiveInternal<Orthanc::PixelFormat_Float32, | |
565 ImageInterpolation_Nearest>(target, source, a, inva); | |
566 break; | |
567 | |
568 case ImageInterpolation_Bilinear: | |
569 ApplyProjectiveInternal<Orthanc::PixelFormat_Float32, | |
570 ImageInterpolation_Bilinear>(target, source, a, inva); | |
571 break; | |
572 | |
573 default: | |
574 throw Orthanc::OrthancException(Orthanc::ErrorCode_NotImplemented); | |
575 } | |
576 break; | |
577 | |
542 case Orthanc::PixelFormat_RGB24: | 578 case Orthanc::PixelFormat_RGB24: |
543 switch (interpolation) | 579 switch (interpolation) |
544 { | 580 { |
545 case ImageInterpolation_Nearest: | 581 case ImageInterpolation_Nearest: |
546 ApplyProjectiveInternal<Orthanc::PixelFormat_RGB24, | 582 ApplyProjectiveInternal<Orthanc::PixelFormat_RGB24, |