I had an fingerprint image, i want to make the fingerprint in the image white and the background black how to do that ?

5 views (last 30 days)
I mean FingerPrint masking as mentioned in the image.

Accepted Answer

Akira Agata
Akira Agata on 26 Oct 2017
Using bwconvhull function, you can create fingerprint masking image. Here is an example.
% Read image
I = imread('1_1.jpg');
% Binarize
Igray = rgb2gray(I);
BW = imbinarize(Igray);
% Create mask
BWmask = bwconvhull(~BW);
% Show the result
imshowpair(I,BWmask,'montage')

More Answers (0)

Community Treasure Hunt

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

Start Hunting!