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

image processing

I mean FingerPrint masking as mentioned in the image.

Best Answer

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')
Related Question