From: Ravi Bhanushali on
kernel = [-1 -1 -1; -1 8 -1; -1 -1 -1];
gradientImage = conv2(grayImage, kernel);

in above suggession can i take diffrent kernal value and size...


thanks in advanced...
From: Ashish Uthama on
On Thu, 15 Apr 2010 09:27:08 -0300, Ravi Bhanushali
<ravimav2000(a)yahoo.com> wrote:

> kernel = [-1 -1 -1; -1 8 -1; -1 -1 -1];
> gradientImage = conv2(grayImage, kernel); in above suggession can i take
> diffrent kernal value and size...
>
>
> thanks in advanced...

I guess so:
http://en.wikipedia.org/wiki/Image_gradient

If you show us what your image and tell us what you are trying to do, you
might get a better answer.