Mercurial > hg > orthanc-stone
comparison Framework/Toolbox/ShearWarpProjectiveTransform.cpp @ 340:f5d5814a41a0 am-2
rendering BitmapStack
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 20 Oct 2018 18:26:05 +0200 |
parents | 5412adf19980 |
children | b70e9be013e4 |
comparison
equal
deleted
inserted
replaced
339:5a7915b23138 | 340:f5d5814a41a0 |
---|---|
474 // (3.c) Shear the source slice into a temporary image | 474 // (3.c) Shear the source slice into a temporary image |
475 ImageBuffer3D::SliceReader reader(source, VolumeProjection_Axial, z); | 475 ImageBuffer3D::SliceReader reader(source, VolumeProjection_Axial, z); |
476 ApplyAffineTransform(*intermediate, reader.GetAccessor(), | 476 ApplyAffineTransform(*intermediate, reader.GetAccessor(), |
477 a11, 0, b1, | 477 a11, 0, b1, |
478 0, a22, b2, | 478 0, a22, b2, |
479 shearInterpolation); | 479 shearInterpolation, true); |
480 } | 480 } |
481 | 481 |
482 | 482 |
483 for (unsigned int y = 0; y < intermediateHeight; y++) | 483 for (unsigned int y = 0; y < intermediateHeight; y++) |
484 { | 484 { |
580 | 580 |
581 LinearAlgebra::FillMatrix(warp, 3, 3, v); | 581 LinearAlgebra::FillMatrix(warp, 3, 3, v); |
582 } | 582 } |
583 | 583 |
584 // (5.b) Apply the projective transform to the image | 584 // (5.b) Apply the projective transform to the image |
585 ApplyProjectiveTransform(target, *intermediate, warp, warpInterpolation); | 585 ApplyProjectiveTransform(target, *intermediate, warp, warpInterpolation, true); |
586 } | 586 } |
587 | 587 |
588 | 588 |
589 template <Orthanc::PixelFormat SourceFormat, | 589 template <Orthanc::PixelFormat SourceFormat, |
590 Orthanc::PixelFormat TargetFormat> | 590 Orthanc::PixelFormat TargetFormat> |