jacobian_image: Image of the Determinant of the Jacobian

View source: R/jacobian.R

jacobian_imageR Documentation

Image of the Determinant of the Jacobian

Description

Image of the Determinant of the Jacobian

Usage

jacobian_image(
  fixed,
  transformlist = NULL,
  moving = NULL,
  typeofTransform = "SyN",
  ...
)

log_jacobian_image(
  fixed,
  transformlist = NULL,
  moving = NULL,
  typeofTransform = "SyN",
  ...
)

geom_jacobian_image(
  fixed,
  transformlist = NULL,
  moving = NULL,
  typeofTransform = "SyN",
  ...
)

log_geom_jacobian_image(
  fixed,
  transformlist = NULL,
  moving = NULL,
  typeofTransform = "SyN",
  ...
)

Arguments

fixed

Fixed image in a registration

transformlist

List of transformation of moving image to fixed image. Only one of transformlist or moving should be specified.

moving

Image to transform into fixed space, if not done previously. Only one of transformlist or moving should be specified.

typeofTransform

If registration not done previously, then transform to use for transformation. Should be non-linear.

...

additional arguments to pass to registration

Value

An image of the determinant of the Jacobian, the transform list, and the fixed image.

Examples

library(extrantsr)
library(ANTsR)
library(methods)
fi<-antsImageRead( getANTsRData("r16") ,2)
mi<-antsImageRead( getANTsRData("r64") ,2)
fi<-resampleImage(fi,c(128,128),1,0)
mi<-resampleImage(mi,c(128,128),1,0)
jac = jacobian_image(fixed = fi, moving = mi, verbose = FALSE)
## Not run: 
mytx<-antsRegistration(fixed=fi , moving=mi, typeofTransform = c("SyN") )
jac<-createJacobianDeterminantImage(fi,mytx$fwdtransforms[[1]],1)

## End(Not run)

muschellij2/extrantsr documentation built on June 3, 2024, 7:04 p.m.