MATLAB: Hello, Could any one help me differentiate between these two pictures of currencies discriminationfeaturesimage processingImage Processing Toolbox I want a way of getting a feature that could differentiate between different currencies like the these two currencies. << >> Best Answer 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. Related SolutionsMATLAB: Volume fraction for 2-d image Just thresholdbinaryImage = grayImage > someThreshold;areaFraction = sum(binaryImage(:)) / numel(binaryImage);Do it for each image. You might want to mask it by the circle. Let me know if you need to know how to mask. MATLAB: Threshold ranges to BW image Try this:binaryImage1 = grayImage >= 105 & grayImage <= 168;binaryImage2 = grayImage >= 170 & grayImage <= 200;binaryImage3 = grayImage >= 120 & grayImage <= 140;areaFraction1 = sum(binaryImage1(:)) / numel(grayImage);areaFraction2 = sum(binaryImage2(:)) / numel(grayImage);areaFraction3 = sum(binaryImage3(:)) / numel(grayImage); Related QuestionObtain the mean all pixels above & below a threshold.Converting from grayscale to binary image gives errorBinarize image with thresholdHow to find pixel counts from an Histogram for 2D uint16 imagesHello,how can i convert a gray level image to a binary image
Best Answer