MATLAB: How to circle the pores in a fingerprint image

blobdetectionfeature detectionfingerprinthighlightImage Processing Toolboxpore extraction

I have extracted pores(the white blobs) in a fingerprint, how do I highlight them by encircling?

Best Answer

Use bwareaopen() to remove larger blobs. Then use regionprops on the remaining small blobs
binaryImage = binaryImage = bwareaopen(binaryImage, 100);
labeledImage = bwlabel(binaryImage);
measurements = regionprops(labeledImage, 'Area', 'Centroid');
allAreas = [measurements.Area];