Awesome
Adaptive Median fiter (AMF) - imageJ plugin
See also in imagej.net/Adaptive_Median_Filter
Motivation
Confocal type images often exhibit isolated pixels (1×1 ~ 5×5) with extremely bright values caused by voltage instability or dead or hot camera pixels. The magnitudes of these pixels are approximately 5 to 100 times higher than the normal intensity amplitudes of the biostructure. These isolated pixels are ill-suited for the post analyse or processing. We created an adaptive median filter to remove these improper pixels. More specifically, instead of the normal median filter, which replaces each pixel with the median of the neighboring pixels in the window, we set a threshold for our developed adaptive median filter. If the pixel intensity is larger than threshold × median in the window, the pixel is replaced by the median; otherwise, the window moves to the next pixel. By using this method, we can filter the isolated pixels without blurring the images.
Also, the uncleaned slides can lead to this problem.
This plugin will handle this type of problems easily without any blurring or re-doing experiments.
It is a part of publication:
<p align='center'> <b> <a href="https://doi.org/10.1038/s41587-021-01092-2">Weisong Zhao et al. Sparse deconvolution improves the resolution of live-cell super-resolution fluorescence microscopy, Nature Biotechnology 40, 606–617 (2022).</a></b> </p>If you find this plugin useful, please cite our paper.
Installation
1. Add the Adaptive_Median_Filter-0.1.0.jar to your imageJ plugin folder as usual and it will show up in process -> Adaptive median filter
:
<p align='center'>
<img src='img/1.png' width='200'/>
</p>
The window and weight to filter the pulse pixels. Radius should be odd 3, 5 or 7
. Threshold should be 2~20
.
The Radius 5
and Threshold 2
can be a default choice.
Example
<p align='center'> <img src='img/3.png' width='600'/> </p>As the images visualized with imageJ is processed already with histogram equalization, it seems nothing serious to us (red arrows). However, as long as we want to further process the data, it will influence much to us.</br>
The saved data:
<p align='center'> <img src='img/5.png' width='600'/> </p>If you save the image sequence (one by one) in windows (or Unix system), the image preview of OS (without histogram equalization) will show this problem clearly.
<p align='center'> <img src='img/6.png' width='500'/> </p>No pulse and without blurring.
<p align='center'> <img src='img/4.png' width='500'/> </p> <details> <summary><b>Plans</b></summary>- The padarray of image edge;
- The accelerated version of AMF.