powered by
Searches over the sphere to find a good initialization for further registration refinement, if needed. This is a arapper for the ANTs function antsAffineInitializer.
affineInitializer(fixedImage, movingImage, searchFactor = 20, radianFraction = 0.1, usePrincipalAxis = FALSE, localSearchIterations = 10, mask, txfn)
the fixed reference image
the moving image to be mapped to the fixed space
degree of increments on the sphere to search
between zero and one, defines the arc to search over
boolean to initialize by principal axis
gradient descent iterations
optional mask to restrict registration
filename for the transformation
transformationMatrix
# NOT RUN { fi <- antsImageRead(getANTsRData("r16")) mi <- antsImageRead(getANTsRData("r64")) tx <- affineInitializer( fi, mi ) # }
Run the code above in your browser using DataLab