NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
be_finger_an2kview.h
Go to the documentation of this file.
1/*
2 * This software was developed at the National Institute of Standards and
3 * Technology (NIST) by employees of the Federal Government in the course
4 * of their official duties. Pursuant to title 17 Section 105 of the
5 * United States Code, this software is not subject to copyright protection
6 * and is in the public domain. NIST assumes no responsibility whatsoever for
7 * its use by other parties, and makes no guarantees, expressed or implied,
8 * about its quality, reliability, or any other characteristic.
9 */
10
11#ifndef __BE_FINGER_AN2KVIEW_H__
12#define __BE_FINGER_AN2KVIEW_H__
13
14#include <be_view_an2kview.h>
17
18/* an2k.h forward declares */
19struct field;
20typedef field FIELD;
21
22namespace BiometricEvaluation
23{
24 namespace Finger
25 {
26
43 class AN2KView : public View::AN2KView {
44 public:
56 static Finger::Position
57 convertPosition(int an2kFGP);
58
69
75 convertImpression(const unsigned char *str);
76
89 const char *str);
90
102 std::vector<AN2KMinutiaeDataRecord>
104
116
124
125 protected:
126
151 const std::string filename,
152 const RecordType typeID,
153 const uint32_t recordNumber);
154
177 const RecordType typeID,
178 const uint32_t recordNumber);
179
188 void
191
200
208
209 private:
219 void readImageRecord(
220 const RecordType typeID,
221 const uint32_t recordNumber);
222
223 Finger::PositionSet _positions;
224 std::vector<Finger::AN2KMinutiaeDataRecord>
225 _minutiaeDataRecordSet;
227 };
228 }
229}
230#endif /* __BE_FINGER_AN2KVIEW_H__ */
231
field FIELD
Representation of a Type-9 Record from an AN2K file.
A class to represent single finger view and derived information.
void setPositions(Finger::PositionSet &ps)
Add a position set to the collection of position sets.
void addMinutiaeDataRecord(Finger::AN2KMinutiaeDataRecord &mdr)
Add a minutiae data record to the AN2KMinutiaeDataRecord set.
Finger::PositionSet getPositions() const
Obtain the set of finger positions.
static Finger::PositionSet populateFGP(FIELD *field)
Read the finger positions from an AN2K record.
static Finger::Impression convertImpression(const unsigned char *str)
Convert an impression code from a string.
AN2KView(Memory::uint8Array &buf, const RecordType typeID, const uint32_t recordNumber)
Construct an AN2K finger view from a buffer.
static Finger::Position convertPosition(int an2kFGP)
Convert a compression algorithm indicator from an AN2K finger image record.
static Finger::FingerImageCode convertFingerImageCode(const char *str)
Convert an finger image code from a string.
void setImpressionType(Finger::Impression &imp)
Mutator for the impression type.
std::vector< AN2KMinutiaeDataRecord > getMinutiaeDataRecordSet() const
Obtain the set of minutiae records.
Finger::Impression getImpressionType() const
Obtain the finger impression code.
AN2KView(const std::string filename, const RecordType typeID, const uint32_t recordNumber)
Construct an AN2K finger view from a file.
A class to represent single biometric view and derived information.
RecordType
The type of AN2K record.
Position
Finger position codes.
Definition: be_finger.h:62
FingerImageCode
Joint and tip codes.
Definition: be_finger.h:140
std::vector< Position > PositionSet
Definition: be_finger.h:99
Impression
Finger, palm, and latent impression types.
Definition: be_finger.h:103
This software was developed at the National Institute of Standards and Technology (NIST) by employees...