The Art of Interface

Article 8 — Appendix A.1

Hybrid median filter source code

Category. Digital image processing (DIP) software development.

Description. Hybrid median filter C++ source code — header file.

Reference. Hybrid median filter C++ source code — implementation file.

Download hybrid median filter C++ source code (zip, 2 Kb)


//   hybridmedianfilter.h - declarations for 
//   2D hybrid median filter routines
//   The code is property of LIBROW
//   You can use it on your own
//   When utilizing credit LIBROW site


//   Image element type
typedef double element;

//   2D HYBRID MEDIAN FILTER, window size 3x3
//     image  - input image
//     result - output image, NULL for inplace processing
//     N      - width of the image
//     M      - height of the image
void hybridmedianfilter(element* image, element* result, int N, int M);