mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
Rework some image handling; add public binarization API
I want to offer the ability for an application to view a binarized
version of a scanned print. This lead onto a few changes:
1. Store minutiae and binarized data inside fp_img
2. Move resize code to the capture path, it previously happened much
later.
3. Add fp_img_binarize() to return a new image in binarized form.
4. Add a BINARIZED_FORM flag to prevent an image being binarized again.
In future, it would be nice to be able to binarize without detecting
minutiae, but this involves some work on the NBIS interaction.
This commit is contained in:
@@ -43,6 +43,7 @@ identified are necessarily the best available for the purpose.
|
||||
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <fp_internal.h>
|
||||
|
||||
/*************************************************************************/
|
||||
/* OUTPUT FILE EXTENSIONS */
|
||||
@@ -130,26 +131,8 @@ typedef struct rotgrids{
|
||||
#define DISAPPEARING 0
|
||||
#define APPEARING 1
|
||||
|
||||
typedef struct minutia{
|
||||
int x;
|
||||
int y;
|
||||
int ex;
|
||||
int ey;
|
||||
int direction;
|
||||
double reliability;
|
||||
int type;
|
||||
int appearing;
|
||||
int feature_id;
|
||||
int *nbrs;
|
||||
int *ridge_counts;
|
||||
int num_nbrs;
|
||||
} MINUTIA;
|
||||
|
||||
typedef struct minutiae{
|
||||
int alloc;
|
||||
int num;
|
||||
MINUTIA **list;
|
||||
} MINUTIAE;
|
||||
typedef struct fp_minutia MINUTIA;
|
||||
typedef struct fp_minutiae MINUTIAE;
|
||||
|
||||
typedef struct feature_pattern{
|
||||
int type;
|
||||
|
||||
Reference in New Issue
Block a user