Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.


asdasd
Posts:
43
Registered:
7/9/10


Re: How can i write gradient function?
Posted:
Oct 23, 2011 7:59 AM


Actually I don't want to apply gradient function by one command I want to apply it individually. It may seems like this;
for i=1:n for j=1:n
Gradient Function for every pixel individually
end
end
Thanks for your considerations.
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <bdcd94511c274edc9277102a15776c5a@gk10g2000vbb.googlegroups.com>... > On Oct 22, 4:49 pm, "elysion87 " <saki...@gmail.com> wrote: > > Hi, > > > > I want to use gradient function for an image. But I won't use Matlab's own gradient function.And i want to implement gradient function for x and y pixel of an image. Is it possible to write gradient function manually? > > > > Could you propose any sample code for this operation? > > > > Thanks. > >  > Then use conv2 with the [1 1] and [1 1]' kernels.



