From: nagaraj g on
Hi to all,
Please help me to find implementation of maximum gradient difference for the following concept in matlab..
Let F(x, y) be the given gray color image, g(x,y) be the laplacian image obtained by convolving laplacian mask [1 1 1;1 -8 1;1 1 1] with f(x,y), and W(x, y) be the local window centered at (x,y) of size 1×N.
The MGD value at pixel (i,j) is computed from the laplacian filtered image g as follows.
MGD(i, j) = max( f (i, j − t)) − min( f (i, j − t))
where
t∈[(-(N-1)/2,(N-1)/2]
please help me out...
From: Bruno Luong on
"nagaraj g" <nagadagin(a)rediff.com> wrote in message <htl63v$145$1(a)fred.mathworks.com>...
> Hi to all,
> Please help me to find implementation of maximum gradient difference for the following concept in matlab..
> Let F(x, y) be the given gray color image, g(x,y) be the laplacian image obtained by convolving laplacian mask [1 1 1;1 -8 1;1 1 1] with f(x,y), and W(x, y) be the local window centered at (x,y) of size 1×N.
> The MGD value at pixel (i,j) is computed from the laplacian filtered image g as follows.
> MGD(i, j) = max( f (i, j &#8722; t)) &#8722; min( f (i, j &#8722; t))
> where
> t&#8712;[(-(N-1)/2,(N-1)/2]
> please help me out...

Check out this:

http://www.mathworks.com/matlabcentral/fileexchange/24705-minmax-filter

Bruno