@Namespace(value="nvinfer1") public static enum nvinfer.ResizeCoordinateTransformation extends Enum<nvinfer.ResizeCoordinateTransformation>
IResizeLayer::setCoordinateTransformation()
Enum Constant and Description |
---|
kALIGN_CORNERS
Think of each value in the tensor as a unit volume, and the coordinate is a point inside this volume.
|
kASYMMETRIC
|<--------------length--------------------->|
| 0 | 1 | 2 | 3 |
* * * *
x_origin = x_resized * (length_origin / length_resize)
|
kHALF_PIXEL
|<--------------length--------------------->|
| 0 | 1 | 2 | 3 |
* * * *
x_origin = (x_resized + 0.5) * (length_origin / length_resize) - 0.5
|
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
nvinfer.ResizeCoordinateTransformation |
intern() |
String |
toString() |
static nvinfer.ResizeCoordinateTransformation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static nvinfer.ResizeCoordinateTransformation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final nvinfer.ResizeCoordinateTransformation kALIGN_CORNERS
(*)
in the below diagram, and multiple values range has a length.
Define x_origin
as the coordinate of axis x in the input tensor, x_resized
as the coordinate of axis x in
the output tensor, length_origin
as length of the input tensor in axis x, and length_resize
as length of the
output tensor in axis x.
|<--------------length---------->|
| 0 | 1 | 2 | 3 |
* * * *
x_origin = x_resized * (length_origin - 1) / (length_resize - 1)public static final nvinfer.ResizeCoordinateTransformation kASYMMETRIC
public static final nvinfer.ResizeCoordinateTransformation kHALF_PIXEL
public static nvinfer.ResizeCoordinateTransformation[] values()
for (nvinfer.ResizeCoordinateTransformation c : nvinfer.ResizeCoordinateTransformation.values()) System.out.println(c);
public static nvinfer.ResizeCoordinateTransformation valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic nvinfer.ResizeCoordinateTransformation intern()
public String toString()
toString
in class Enum<nvinfer.ResizeCoordinateTransformation>
Copyright © 2024. All rights reserved.