Skip to content

Commit 185de46

Browse files
committed
BUG: Minor logic fix.
1 parent f0f1c74 commit 185de46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/labelImageRegistration.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,8 @@ labelImageRegistration <- function( fixedLabelImages, movingLabelImages,
280280
if( ! ( grepl( "bo", subtypeOfDeformableTransform ) || grepl( "so", subtypeOfDeformableTransform ) ) )
281281
{
282282
stop( "Only 'so' or 'bo' transforms are available." )
283-
} else {
283+
}
284+
else if( grepl( "bo", subtypeOfDeformableTransform ) ) {
284285
synTransform <- "BSplineSyN"
285286
}
286287
if( grepl( ",", subtypeOfDeformableTransform ) )

0 commit comments

Comments
 (0)