Now we can get the log file, and after a preliminary step to remove meaningless parts of data, we now have this log file containing only our gray values of FP image.
We will run this script:
img = fileread('img2.log');
arr = textscan(img, '%d ');
arr_tmp = arr{1,1};
arr_tmp = cast(arr_tmp,'uint8');
arr_reshape = reshape(arr_tmp, 160, 160);
transpose = arr_reshape.';
imshow(transpose, [0 255])
My MATLAB code seems to be stupid. Hahah. Because I have seldom used MATLAB before.
Now, on MATLAB, we will get this image:
(1)
You can right-click to the image to see details about it. When i put this image to mindtct, I got this error:
http://convertimage.net/online-photo-effects/black-and-white-photo-fx.asp?i=20180330-030324-dsmck
It works fine.
However, when we take image from MATLAB, we might get a image including unexpected boundary like (1). For me, I use Snipping Tool available on Windows to remove white barriers. The output image will be like this:
If the size is not 160x160, you can use a number of tools (I use Pain 3D on Windows 10) to resize it. You, in addition, should double-check the bit depth after resizing to ensure that the depth is 8.
Now I can process the image normally and get minutiaes.
Không có nhận xét nào:
Đăng nhận xét