Enum NearestMode
Options for how to sample the nearest element in Resize
when using InterpolationMode.NearestMode
.
Namespace: Unity.Sentis.Layers
Syntax
public enum NearestMode
Fields
Name | Description | Value |
---|---|---|
RoundPreferFloor | Use rounding to the nearest integer coordinate. If the fractional part equals 0.5 then round down. |
0 |
RoundPreferCeil | Use rounding to the nearest integer coordinate. If the fractional part equals 0.5 then round up. |
1 |
Floor | Use rounding down to the next integer coordinate less than or equal to the input coordinate. |
2 |
Ceil | Use rounding up to the next integer coordinate greater than or equal to the input coordinate. |
3 |