From: asaf on
Hi,

Thank you all for your interest in this problem and for the smart replays…
I tried ImageAnalyst idea and it works just fine.

Thanks a lot
Asaf
From: Matt J on
"asaf " <asafdidi(a)yahoo.com> wrote in message <hsmpmd$quo$1(a)fred.mathworks.com>...
> Hi,
>
> Thank you all for your interest in this problem and for the smart replays&#8230;
> I tried ImageAnalyst idea and it works just fine.
========

Bear in mind though that ImageAnalyst proposed this idea as a quick and dirty solution. You wouldn't use this solution when computational efficiency is critical because median filtering the entire image leads to a lot of unnecessary extra median computations and doesn't take advantage the sparsity of the bad pixels.
From: ImageAnalyst on
Matt's points are true. It is just a quick and dirty way and there
are more accurate ways. It won't necessarily work accurately for
window locations where there are several bad pixels in the window.