Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Gradient method comparison for an image in matlab

Subject: Gradient method comparison for an image in matlab

From: Padmavathy Subramanian

Date: 30 Jun, 2011 16:41:09

Message: 1 of 1

Hi,

Given an with a particular matrix A, I'm not sure which gradient method is the best to use on it, to derive the mean curvature flow of the image. Currently I tried using 2 methods, 'derivative5' and 'gaussgradient' and this is what I got :

A =

     2 5 3 1 8
     3 5 0 -1 4
     2 2 3 4 5
     0 1 5 -6 9
     2 2 2 4 0
     
 A_xdev5 =

    1.1080 -0.0425 -0.5446 0.5080 -0.2433
    1.2673 -0.0989 -0.5890 0.5672 -0.3487
    1.0199 0.2827 -0.2513 0.5325 -0.3388
    0.8160 0.5615 -0.1606 0.3370 -0.2034
    0.5681 0.3947 -0.0611 -0.0684 -0.3423


A_ydev5 =

    0.8591 1.0328 0.6816 0.6235 0.7582
   -0.1589 -0.1642 0.1030 0.2219 0.1303
   -0.6636 -0.5412 -0.0895 -0.0601 0.0012
   -0.2872 -0.3804 -0.3082 -0.4968 -0.7599
   -0.2815 -0.6467 -0.6719 -0.6814 -1.0555
   

A_xgaus =

    2.5566 0.5012 -3.6944 4.3313 6.0126
    1.6625 -1.9074 -4.3498 3.4374 4.2465
    0.2870 0.8849 0.1817 2.1552 2.5856
    0.7126 3.5470 -4.4550 2.8064 10.1494
    0.0963 0.4752 0.9163 -1.2051 -1.7507


A_ygaus =

    0.7866 -0.1985 -2.2722 -2.0389 -3.3539
   -0.2916 -2.0966 0.0011 1.7774 -2.0835
   -2.7423 -2.6026 2.6236 -2.5262 3.4449
   -0.0055 -0.1038 -0.6878 -0.5488 -3.9571
    1.6707 0.6028 -1.0547 5.8124 -6.1788


Kindly advise which gradient method is the best to use, to compute the mean curvature flow ?
Any help / guidance is much appreciated! Thankyou

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us