Module filters

Source
Expand description

Image processing filters and OpenCV integration. Image processing filters and OpenCV integration.

This module provides the Filters trait for morphological operations and blur filters, backed by OpenCV when the use_opencv feature is enabled.

§Zero-Copy OpenCV Path

When the use_opencv feature is enabled, all filter operations use a zero-copy approach:

  • Input: Mat::new_rows_cols_with_data creates a 2D Mat borrowing the Array2 data without copying
  • Output: Mat::new_rows_cols_with_data_mut writes directly into a pre-allocated Array2 without copying

This eliminates 2 memory copies per operation (input + output), saving significant bandwidth for large raster blocks.

Traits§

Filters
Trait for image processing filters (requires use_opencv feature).

Type Aliases§

RasterBlockSlice2
Type alias for a 2D raster block slice.