From 8d39459d7f6cd3037101d88246791331ef2e30da Mon Sep 17 00:00:00 2001 From: Nick Tustison Date: Fri, 13 Dec 2024 11:48:44 -0800 Subject: [PATCH] ENH: Add explicit identity linear transform. --- R/labelImageRegistration.R | 8 ++++---- man/labelImageRegistration.Rd | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/R/labelImageRegistration.R b/R/labelImageRegistration.R index 4a70fe65..584e9428 100644 --- a/R/labelImageRegistration.R +++ b/R/labelImageRegistration.R @@ -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' @@ -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." ) @@ -165,7 +165,7 @@ labelImageRegistration <- function( fixedLabelImages, movingLabelImages, ############################## linearXfrm <- NULL - if( ! is.null( typeOfLinearTransform ) ) + if( typeOfLinearTransform != "identity" ) { if( verbose ) { diff --git a/man/labelImageRegistration.Rd b/man/labelImageRegistration.Rd index 11aaf3c7..cfa1bef7 100644 --- a/man/labelImageRegistration.Rd +++ b/man/labelImageRegistration.Rd @@ -37,8 +37,8 @@ in the space of the fixed image.} in the space of the moving image.} \item{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'}.} \item{typeOfDeformableTransform}{Only works with deformable-only transforms, specifically the family of \code{antsRegistrationSyN*[so]} or