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: gradient of edge map
Replies: 1   Last Post: Jan 13, 2013 8:59 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  
Matt J

Posts: 4,997
Registered: 11/28/09
Re: gradient of edge map
Posted: Jan 13, 2013 8:59 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"simran" wrote in message <kcu4mg$hho$>...
> I have sparse matrix(edge map) of image with size 4456 x 2956 .I want to calculate gradient of this edge map. Built-in function gradient() is taking very much time. are there any alternatives?

Can't imagine why it would be unexpectedly slow, but you could use this

to implement the calculation as a matrix multiplication method

A=interpMatrix([-.5 0 5],2,4456,1,'rep');
B=interpMatrix([-.5 0 5],2,2956,1,'rep');


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.