Skip to content

Commit

Permalink
ENH: Add explicit identity linear transform.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntustison committed Dec 13, 2024
1 parent 9e97374 commit 8d39459
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions R/labelImageRegistration.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#' @param movingMask Defines region for similarity metric calculation
#' in the space of the moving image.
#' @param typeOfLinearTransform Use label images with the centers of
#' mass to a calculate linear transform of type \code{'rigid'},
#' \code{'similarity'}, \code{'affine'}.
#' mass to a calculate linear transform of type \code{'identity'},
#' \code{'rigid'}, \code{'similarity'}, \code{'affine'}.
#' @param typeOfDeformableTransform Only works with deformable-only transforms,
#' specifically the family of \code{antsRegistrationSyN*[so]} or
#' \code{antsRegistrationSyN*[bo]} transforms. See 'typeOfTransform'
Expand Down Expand Up @@ -121,7 +121,7 @@ labelImageRegistration <- function( fixedLabelImages, movingLabelImages,
outputPrefix <- tempfile()
}

allowableLinearTransforms <- c( 'rigid', 'similarity', 'affine' )
allowableLinearTransforms <- c( 'rigid', 'similarity', 'affine', 'identity' )
if( ! typeOfLinearTransform %in% allowableLinearTransforms )
{
stop( "Unrecognized linear transform." )
Expand Down Expand Up @@ -165,7 +165,7 @@ labelImageRegistration <- function( fixedLabelImages, movingLabelImages,
##############################

linearXfrm <- NULL
if( ! is.null( typeOfLinearTransform ) )
if( typeOfLinearTransform != "identity" )
{
if( verbose )
{
Expand Down
4 changes: 2 additions & 2 deletions man/labelImageRegistration.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8d39459

Please sign in to comment.