Problem 852. Index of neighbor pixel with steepest gradient
Solution Stats
Problem Comments
-
5 Comments
I'v developed the code using padarray and ordfilt2, which satisfies the test suite on my system, but seems like cody doesn't support padarray, is this so??
Hi Dishant, I thought the IPT is available, too, but apparently Cody does not support toolboxes at this time. see box on the right hand side: http://www.mathworks.de/matlabcentral/about/cody/
More difficult thant expected...
Pay attention. The problem is asking for the index and not the value of the steepest gradient. And gradients on diagonals directions must be divided by sqrt(2).
Test cases have been added and solutions have been rescored.
Solution Comments
Show commentsProblem Recent Solvers30
Suggested Problems
-
Find common elements in matrix rows
2712 Solvers
-
6708 Solvers
-
Project Euler: Problem 10, Sum of Primes
2086 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
13521 Solvers
-
Van Eck's Sequence's nth member
327 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!