Table of Contents
Lab non-local mean with same pixel luminance neighborhood
Description
Filter Lab stack image using a selective gaussian blur. It compute a ponderated mean of in the neighborhood pixel. For each neighborhood pixel 'q' of computed pixel 'p', the associated weight 'q' is computed with a gaussian function and the luminance difference between luminance 'p' and luminance 'q'. If difference is zero, weight is 1. If difference is bigger weight tend towards zero. Only chrominance slices are filtered ( slices a and b ).
Usage
- To use this filter, you must first (step 1) convert your RGB image to Lab space color with this plugin : Converting RGB to Lab
- Then, use this filter (step 2)
- Finally, convert back the Lab space color image to RGB (step 3) with this plugin : Converting Lab to RGB
NB:
- This plugin works well after this other one : Line Lab selective median filtering
Example
Plugin download
lab_nonlocal_mean_with_same_pixel_luminance_neighborhood_v1_01.jar
It use no additionnal libraries.
Plugin installation
Copy the .jar file to your plugins directory and restart “ImageJ”.
You can use the script by menu “ImageJ / Plugins / Image/ Color / Lab non-local mean with same pixel luminance neighborhood (v1.00)”.
Source files
Author
Vincent Vansuyt.
Contact me for any questions or suggestions : vincent dot vansuyt at edf dot fr (preferred language : french)
License
GPL distribution (see licence ).
Changelog
Version v1.00 : first version
Version v1.01 :
- adding timing
- code improvement (40% faster)
Know bugs
None