Expand description
§Image Max & Min Pooling with SIMD Acceleration
A high-performance Rust library for maximum and minimum pooling operations on images, leveraging SIMD instructions (AVX2/NEON) and parallel processing for accelerated performance.
§Features
- SIMD Optimization: Utilizes AVX2 (x86-64) or NEON (ARM) intrinsics
- Dual Pooling Operations: Supports both maximum and minimum pooling
- Parallel Execution: Multi-threaded processing via Rayon
- Dynamic CPU Detection: Runtime checks for AVX2 support
§Quick Start
use image_max_polling::{max_pooling_simd, min_pooling_simd};
let data = vec![1, 2, 3, 4, 5, 6, 7, 8, 9];
let width = 3;
let factor = 3;
// Maximum pooling - extracts brightest features
let (_, _, max_result) = max_pooling_simd(&data, width, factor);
// Minimum pooling - extracts darkest features
let (_, _, min_result) = min_pooling_simd(&data, width, factor);Functions§
- max_
pooling_ simd - 使用 SIMD 指令优化的最大池化函数
- min_
pooling_ simd - 使用 SIMD 指令优化的最小池化函数
- supports_
avx2