jacobian_image: Image of the Determinant of the Jacobian

Description Usage Arguments Value Examples

View source: R/jacobian.R

Description

Image of the Determinant of the Jacobian

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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)

neuroconductor/extrantsr documentation built on Sept. 28, 2020, 11:31 a.m.