MATLAB Answers

how to impliment IMAGE GRADIENT in Script?

Asked by Srinibas Bhuyan on 23 Nov 2012

hi, i wish t write a generalized code for sobel/prewitt operator for evaluation of image gradient as well as the direction of the gradient. How to save vector of the gradient according to direction.


1 Answer

Answer by Image Analyst
on 23 Nov 2012
Edited by Image Analyst
on 23 Nov 2012

There is code for that in the Image Processing Toolbox in the edge() function. However if you don't have that and want to try to write your own, then you need to learn how to program MATLAB, and a script is the most basic thing there is. Since you don't know MATLAB yet, try this link:

  1 Comment

Srinibas Bhuyan on 30 Nov 2012

Thank You.... Actually i do't have much knowledge in Image processing, so i am unable to start code. Please mention the steps to write my own code in matlab for image gradient. i'm quite familiar with Matlab.

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply today