Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Hi guys, I have a problem while doing fingerprint authentication program, plz help

조회 수: 1 (최근 30일)
siet ece
siet ece 2018년 5월 22일
마감: MATLAB Answer Bot 2021년 8월 20일
hi guys, Hi guys, I have a problem while doing fingerprint authentication program, plz help.... Initially I have a folder of 100images, by for loop am reading those images 1 by 1 and converting to a 40bit length binary sequence and stored in a array by concatenating all, so that am getting a single sequence of 100x40=4000bit sequence, but actually I want a 2column, 100row table(column1=image name) and (column2=40bit fingerprint sequence),plz help me with a solution. Thanks in advance
  댓글 수: 3
Jan
Jan 2018년 5월 22일
Please edit the question and append (a relevant part of) the current code. Then it is much easier to suggest how to modify it. I we write some code from scratch, it is unlikely, that it satisfies your needs.
siet ece
siet ece 2018년 5월 25일
I will explain with simple example, i have 10 fingerprint images in my pc, i converted it in to binary sequence by using my algorithm, al i want now is to collect the results of those 10 images as a table of two columns (image name, binary sequence of the image).

답변 (1개)

Ameer Hamza
Ameer Hamza 2018년 5월 25일
Instead of concatenating the binary sequences, you can first save them in a cell array. Here is a general template of how to do that
files = dir('*.jpg'); % get names of all image files
nameAndBinSequence = cell(numel(files), 2); % cell array with two columns
for i=1:numel(files)
nameAndBinSequence{i, 1} = files(i).name;
% load the image and calculate 40 bit sequence
nameAndBinSequence{i, 2} = calculatedBinarySequence
end
you can also convert the cell array to a table using
cell2table(x);

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by