Graphite/node-graph/nodes/raster/src
Youssef Ahmed Hassan Elzedy 9cb856eee4
Feature: Add median filter option to blur node (#3196)
* Add median filter option to blur node:

- Add median parameter to blur function for noise reduction
- Implement median_filter_algorithm with efficient quickselect
- Support gamma space calculations for median filtering
- Preserve edges while removing noise, complementing existing blur options

Feature in Issue: #912

* Optimize median filter algorithm by reusing buffers and improving pixel neighborhood collection

* Add median filter option to blur node:

- Add median parameter to blur function for noise reduction
- Implement median_filter_algorithm with efficient quickselect
- Support gamma space calculations for median filtering
- Preserve edges while removing noise, complementing existing blur options

Feature in Issue: #912

* Optimize median filter algorithm by reusing buffers and improving pixel neighborhood collection

* Improve median filter's NaN handling by using total_cmp for safe comparisons

* Add median filter node for noise reduction

- Create dedicated median_filter node separate from blur functionality
- Implement median_filter_algorithm with efficient quickselect
- Support gamma space calculations for consistency
- Use safe NaN handling with f32::total_cmp to prevent panics
- Optimize performance with memory reuse and O(n) median selection

* Refactor median filter to remove gamma handling and simplify algorithm

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
Co-authored-by: Dennis Kobert <dennis@kobert.dev>
2026-01-06 14:22:11 +01:00
..
adjust.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
adjustments.rs Improve tooltip docs with Markdown styling and refined math node explanations (#3488) 2025-12-20 01:05:15 -08:00
blending_nodes.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
cubic_spline.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
curve.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
dehaze.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
filter.rs Feature: Add median filter option to blur node (#3196) 2026-01-06 14:22:11 +01:00
fullscreen_vertex.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
generate_curves.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
gradient_map.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
image_color_palette.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
lib.rs Restructure node crates (#3384) 2025-11-18 10:21:54 +00:00
std_nodes.rs Replace text-only tooltips with custom richly styled tooltips (#3436) 2025-11-30 13:32:58 -08:00