I am trying to figure out a way to find out the vein pattern in the hand.. Please could someone suggest ways to do the same.? I know first i would need to find the ROI in the image and perform further processing .. Can gabor filter be used as one of the steps ?


  • $\begingroup$ See related question on SO: stackoverflow.com/questions/8694534/iphone-camera-application $\endgroup$
    – Paul R
    Jan 19, 2012 at 15:35
  • $\begingroup$ my question is what is the programming languge for those code becuse i try to apply that on MATLAB but it dos'nt work and if there any equivelant code in MATLAB. thanks zainab $\endgroup$
    – user4798
    Jun 12, 2013 at 9:59

1 Answer 1


Ridge filtering seems like a possible processing. I have not tried to clean up the non-veins ridges; perhaps there would not be need for that step in more constrained acquisition conditions.

In Mathematica:

img = ColorConvert[Import["https://i.stack.imgur.com/5og5Z.jpg"], "Grayscale"];
r = RidgeFilter[ColorNegate@img, 3];
Binarize[ImageAdjust@r, .03] // Thinning

enter image description here

  • $\begingroup$ is there an implementation of ridge filtering in MATLAB? $\endgroup$
    – vini
    Jan 18, 2012 at 16:24
  • $\begingroup$ There does not seem to be any implementation shipping with matlab. However, Google reveals user contributions to the matlab central exchange. According to the Mathematica documentation (reference.wolfram.com/mathematica/ref/RidgeFilter.html), ones needs to compute "the main principal curvature orthogonal to a ridge as given by the main negative eigenvalue of the Hessian matrix." $\endgroup$ Jan 18, 2012 at 16:54
  • $\begingroup$ I find this concept a little hard to grasp ! $\endgroup$
    – vini
    Jan 18, 2012 at 17:30
  • $\begingroup$ One reference would be "Front-End Vision and Multi-Scale Image Analysis", by Bart M. Haar Romeny $\endgroup$ Jan 18, 2012 at 17:47
  • $\begingroup$ will search and let u knw :) $\endgroup$
    – vini
    Jan 18, 2012 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.