View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
ROI of Palmprint Images

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

5.0 | 4 ratings Rate this file 19 Downloads (last 30 days) File Size: 1.22 MB File ID: #46573 Version: 2.1
image thumbnail

ROI of Palmprint Images



11 May 2014 (Updated )

Matlab function to detect the Region of Interest (ROI) of Palm-print images in the CASIA Database

| Watch this File

File Information

Locating the ROI of Palmprint images is a popular problem in biometrics and image processing. This is the primary step in developing a biometric system based on palmprint image recognition.
The code provided here attempts to locate the ROI of a given palm print image (either left hand or right hand), assuming that the naming convention used by CASIA database is maintained.
Simple alternations of the code should make it usable even for images outside this database. The current code checks the file name to classify the image as either left hand or right hand.
The output ROI will be a 192x192 (uint8) segment of the input image.

The method employed is simple and aimed to provide an efficient calculation. However, further optimizations should be possible since these requirements were not looked into in this version.
Please refer the reference given below for a step-by-step approach to the ROI detection.

You can browse the entire CASIA database at:

References: David Zhang, Wai-Kin Kong, Jane You and Michael Wong, Online Palmprint Identification, published in IEEE Transactions on Pattern Analysis and Machine Intelligence (PAMI) Vol. 25, No. 9, September 2003

Sudaraka Mallawaarachchi - 23/07/2015


This file inspired Combining Left And Right Palmprint Images For More Accurate Personal Identiļ¬cation.

Required Products Image Acquisition Toolbox
Image Processing Toolbox
MATLAB release MATLAB 8.1 (R2013a)
MATLAB Search Path
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (12)
08 Oct 2016 Subhash Singh  
07 Jun 2016 Adi Cohen  
25 Apr 2016 Gaurav Singh


I have a small doubt, how do i use "bemd" function and what is it suppose to perform.

However, "DetectROI" function is very accurate and it serves the purpose.

Comment only
12 Aug 2015 Sudaraka Mallawaarachchi

Hello Sen,

Yes, I think you are correct. I will upload the corrected version asap.

The functions must still be working without an issue, just the outputs are mixed up I think...

Thank you very much for all the support :)

Comment only
08 Aug 2015 sen

sen (view profile)

Dear Sir

Thank you for your reply! I have some other questions.In line 16 I think it should be "ROIR(i).image", and line 23 should be "ROIL(i).image", line 24 should be "num2str(j)",so are in line 31,40, and 43, am I right? Thank you very much!

Comment only
06 Aug 2015 Sudaraka Mallawaarachchi

Hello Sen,

Yes, you are correct, it is my mistake, the ROI size should be 192x192, not 128x128. I'll fix that and upload again.

Thank you for the support :)

Comment only
29 Jul 2015 sen

sen (view profile)

Dear Sir
Your code is very nice.I have a question that in your code ROI size is 128 firstly( line 5 and 6 in "sample_test.m"),but at last the size is 192(line 8 and 9),why?

29 Jul 2015 sen

sen (view profile)

23 Jul 2015 Sudaraka Mallawaarachchi

I have addressed all your issues and uploaded an improved code. Please check it out.

Thank you

Comment only
29 Jun 2015 A B

A B (view profile)

please could you send me your paper at

Comment only
06 Apr 2015 Purvi Shetty

Please could you mail me your paper at

Comment only
01 Jun 2014 SEB MED

i want to do my project of master computing

Comment only
23 Jul 2015 2.0

Updated image, included reference and improved the ROI detection accuracy and added an edge detector useful for authentication

06 Aug 2015 2.1

Corrected a small issue with respect to the palm print size. Will not have an impact on the output...

Contact us