Skip to main content

Interpolation2d

Other

Slice image interpolation mode for the 2D slice views. Available values: - Nearest: Nearest-neighbor interpolation (blocky, no smoothing). - Linear: Linear interpolation (smooth). - Cubic: Cubic interpolation (smoothest).

Import

import ScriptingApi as api

# Access the class
# Interpolation2d is available via api.Interpolation2d

Enumeration Values

Enumeration Mode from Interpolation2d

ValueDescription
Interpolation2d.NearestNearest option
Interpolation2d.LinearLinear option
Interpolation2d.CubicCubic option

Usage Example

import ScriptingApi as api

# Access enumeration values
value = api.Interpolation2d.Nearest

See Also