I would like to plot gradient magnitudes of an color image in matlab. Precisely saying i want the gradient in my x-axis and the log of probability density on my y axis. i would request if someone can help me out. Thanks
                +2 
                A: 
                
                
              These are the steps you'll need to figure out (I'm not going to write code for you, because I haven't got Matlab at home, and because I'm lazy):
- Convert your image to grayscale.
- Determine a suitable finite-difference approximation to the gradient operator.
- Apply the finite-difference kernel using conv2.
- Take the absof the result.
- Use histto calculate a histogram.
- Plot the result, converting as appropriate with log, orsemilogy.
                  Oli Charlesworth
                   2010-10-16 09:34:16
                
              thanks a lot.. i got it
                  
                   2010-10-18 11:34:30