Skip to content

Commit

Permalink
ENH: Add more verbose output.
Browse files Browse the repository at this point in the history
  • Loading branch information
ntustison committed Mar 3, 2023
1 parent 5e59d06 commit 14996a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/fitBsplineDisplacementField.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
#' @param enforceStationaryBoundary ensure no displacements on the image boundary.
#' Default = TRUE.
#' @param estimateInverse estimate the inverse displacement field. Default = FALSE.
#' @param rasterizePoints Use nearest neighbor rasterization of points for estimating update
#' @param rasterizePoints Use nearest neighbor rasterization of points for estimating the
#' field (potential speed-up).
#' @return ANTsR image.
#'
Expand Down
4 changes: 4 additions & 0 deletions R/landmarkTransforms.R
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,10 @@ fitTimeVaryingTransformToPointSets <- function(

updateDerivativeFieldAtTimePointArray <- as.array( updateDerivativeFieldAtTimePoint )
maxNorm <- sqrt( max( base::colSums( updateDerivativeFieldAtTimePointArray ^ 2, dims = 1 ) ) )
if( verbose )
{
cat(" integration point ", t, ": maxNorm = ", maxNorm, "\n", sep = "")
}
updateDerivativeFieldAtTimePointArray <- updateDerivativeFieldAtTimePointArray / maxNorm
if( domainImage@dimension == 2 )
{
Expand Down
2 changes: 1 addition & 1 deletion man/fitBsplineDisplacementField.Rd

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

0 comments on commit 14996a7

Please sign in to comment.