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_datacreates a 2D Mat borrowing theArray2data without copying - Output:
Mat::new_rows_cols_with_data_mutwrites directly into a pre-allocatedArray2without 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_opencvfeature).
Type Aliases§
- Raster
Block Slice2 - Type alias for a 2D raster block slice.