radioviz.tools.interpolation_utils

Shared interpolation labels for tools.

This module provides a centralized collection of interpolation method labels that are commonly used across various visualization and image processing tools within the RadioViz application. By maintaining these labels in a shared module, consistency is ensured throughout the user interface.

The supported interpolation methods range from simple nearest-neighbor approximation to higher-order bicubic and quintic polynomial interpolation, providing users with a spectrum of quality versus performance trade-offs.

Module Attributes

INTERPOLATION_LABELS

list[str]: Predefined interpolation method labels available for tool selection.

radioviz.tools.interpolation_utils.INTERPOLATION_LABELS: list[str] = ['Nearest-neighbor', 'Bi-linear', 'Bi-quadratic', 'Bi-cubic', 'Bi-quartic', 'Bi-quintic']

list[str]: Predefined interpolation method labels available for tool selection.

This list contains standardized labels representing common image resampling and interpolation techniques used in visualization tools:

  • Nearest-neighbor: Fastest method, preserves original pixel values but may produce aliasing

  • Bi-linear: Smooths transitions between pixels, moderate quality and speed

  • Bi-quadratic: Uses quadratic polynomials for smoother results

  • Bi-cubic: Higher quality interpolation using cubic polynomials (default in many applications)

  • Bi-quartic: Uses quartic polynomials for even smoother interpolation

  • Bi-quintic: Highest quality polynomial interpolation, slowest performance

These labels are typically used in combo boxes and dropdown menus within the tool user interfaces to allow users to select their preferred interpolation method for image transformations.