SpatialTransformerLayer2D: Spatial transformer layer (2-D)

SpatialTransformerLayer2DR Documentation

Spatial transformer layer (2-D)

Description

Spatial transformer layer (2-D)

Value

resampled batch images.

Arguments

inputs

list of size 2 where the first element are the images. The second element are the weights.

resampledSize

size of the resampled output images.

Details

$initialize instantiates a new class.

$call main body.

$compute_output_shape computes the output shape.

Author(s)

Tustison NJ

Examples

resampledSize = c(30L, 30L)
model = SpatialTransformerLayer2D$new(resampledSize)
model$initialize(resampledSize)
testthat::expect_error(model$initialize(5))
model$compute_output_shape(input_shape = c(25, 25))

ANTsX/ANTsRNet documentation built on April 23, 2024, 1:24 p.m.