The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: How can i write gradient function?
Replies: 5   Last Post: Oct 23, 2011 12:17 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 43
Registered: 7/9/10
Re: How can i write gradient function?
Posted: Oct 23, 2011 7:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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



Thanks for your considerations.

ImageAnalyst <> wrote in message <>...
> On Oct 22, 4:49 pm, "elysion87 " <> 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.

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.