Skip to content

Commit

Permalink
COMP: Allow build lib.cxx files w/ ITK_FUTURE_LEGACY_REMOVE (issue #85)
Browse files Browse the repository at this point in the history
Replaced calls to "Get" member functions by the corresponding "GetModifiable" member functions.

Follow-up to commit aa4bb65, January 11 2019, COMP: Allow building with ITK_FUTURE_LEGACY_REMOVE=ON, fixing issue #85

Related to elastix issue #85: "Build with ITK_FUTURE_LEGACY_REMOVE=ON", from Dzenan Zukic.
  • Loading branch information
N-Dekker committed Aug 23, 2020
1 parent e712cf5 commit 074f550
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions Core/Main/elastixlib.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,12 @@ ELASTIX::RegisterImages(
/** Get the transform, the fixedImage and the movingImage
* in order to put it in the (possibly) next registration.
*/
transform = elastixMain->GetFinalTransform();
fixedImageContainer = elastixMain->GetFixedImageContainer();
movingImageContainer = elastixMain->GetMovingImageContainer();
fixedMaskContainer = elastixMain->GetFixedMaskContainer();
movingMaskContainer = elastixMain->GetMovingMaskContainer();
resultImageContainer = elastixMain->GetResultImageContainer();
transform = elastixMain->GetModifiableFinalTransform();
fixedImageContainer = elastixMain->GetModifiableFixedImageContainer();
movingImageContainer = elastixMain->GetModifiableMovingImageContainer();
fixedMaskContainer = elastixMain->GetModifiableFixedMaskContainer();
movingMaskContainer = elastixMain->GetModifiableMovingMaskContainer();
resultImageContainer = elastixMain->GetModifiableResultImageContainer();
fixedImageOriginalDirection = elastixMain->GetOriginalFixedImageDirectionFlat();

/** Stop timer and print it. */
Expand Down
2 changes: 1 addition & 1 deletion Core/Main/transformixlib.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ TRANSFORMIX::TransformImage(
}

/** Get the result image */
resultImageContainer = transformix->GetResultImageContainer();
resultImageContainer = transformix->GetModifiableResultImageContainer();

/** Stop timer and print it. */
totaltimer.Stop();
Expand Down

0 comments on commit 074f550

Please sign in to comment.