Hello, Could any one help me differentiate between these two pictures of currencies?

1 view (last 30 days)
I want a way of getting a feature that could differentiate between different currencies like the these two currencies.
<<
>>

Accepted Answer

Image Analyst
Image Analyst on 27 Jun 2014
How about just convert to grayscale, threshold, and look at the area fraction of white pixels? It will probably be very different for the two notes.
  3 Comments
Image Analyst
Image Analyst on 27 Jun 2014
grayImage = rgb2gray(rgbImage);
threshold = grayThresh(grayImage);
binaryImage = im2bw(grayImage, threshold);
areaFraction = sum(binaryImage) / numel(binaryImage);

Sign in to comment.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!