layer_resample_tensor_to_target_tensor_2d: Resampling a spatial tensor to a target tensor (2-D).

View source: R/resampleTensorUtilities.R

layer_resample_tensor_to_target_tensor_2dR Documentation

Resampling a spatial tensor to a target tensor (2-D).

Description

Resamples a spatial tensor based on a target tensor and interpolation type.

Usage

layer_resample_tensor_to_target_tensor_2d(
  object,
  interpolationType = c("nearestNeighbor", "nearest", "linear", "bilinear", "cubic",
    "bicubic"),
  name = NULL,
  trainable = FALSE
)

Arguments

object

Object to compose layer with. This is either a keras::keras_model_sequential to add the layer to, or another Layer which this layer will call.

interpolationType

type of interpolation for resampling. Can be nearestNeighbor, nearest, linear, bilinear, cubic, or bicubic.

name

The name of the layer

trainable

Whether the layer weights will be updated during training.

Value

a keras layer tensor

Author(s)

Tustison NJ


ANTsX/ANTsRNet documentation built on Nov. 21, 2024, 4:07 a.m.