public class flandmark extends flandmark
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_BW
enum EError_T
|
static int |
ERROR_BW_MARGIN
enum EError_T
|
static int |
ERROR_DATA_IMAGES
enum EError_T
|
static int |
ERROR_DATA_LBP
enum EError_T
|
static int |
ERROR_DATA_MAPTABLE
enum EError_T
|
static int |
ERROR_DATA_OPTIONS_PSIG
enum EError_T
|
static int |
ERROR_DATA_OPTIONS_S
enum EError_T
|
static int |
ERROR_M
enum EError_T
|
static int |
ERROR_W
enum EError_T
|
static int |
NO_ERR
enum EError_T
|
static int |
UNKNOWN_ERROR
enum EError_T
|
Constructor and Description |
---|
flandmark() |
Modifier and Type | Method and Description |
---|---|
static void |
flandmark_argmax(double[] smax,
FLANDMARK_Options options,
int[] mapTable,
FLANDMARK_PSI_SPARSE Psi_sparse,
double[] q,
double[] g) |
static void |
flandmark_argmax(DoubleBuffer smax,
FLANDMARK_Options options,
IntBuffer mapTable,
FLANDMARK_PSI_SPARSE Psi_sparse,
DoubleBuffer q,
DoubleBuffer g) |
static void |
flandmark_argmax(DoublePointer smax,
FLANDMARK_Options options,
IntPointer mapTable,
FLANDMARK_PSI_SPARSE Psi_sparse,
DoublePointer q,
DoublePointer g) |
static void |
flandmark_argmax(DoublePointer smax,
FLANDMARK_Options options,
IntPointer mapTable,
FLANDMARK_PSI_SPARSE Psi_sparse,
PointerPointer q,
PointerPointer g)
Function argmax
|
static int |
flandmark_check_model(FLANDMARK_Model model,
FLANDMARK_Model tst)
Function flandmark_checkModel
This function checks if both given FLANDMARK_Model data structres are equal
|
static int |
flandmark_detect_base(byte[] face_image,
FLANDMARK_Model model,
double[] landmarks) |
static int |
flandmark_detect_base(ByteBuffer face_image,
FLANDMARK_Model model,
DoubleBuffer landmarks) |
static int |
flandmark_detect_base(BytePointer face_image,
FLANDMARK_Model model,
DoublePointer landmarks)
Function flandmark_detect_base
Estimates positions of facial landmarks in the normalized image frame.
|
static int |
flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img,
int[] bbox,
FLANDMARK_Model model,
double[] landmarks) |
static int |
flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img,
int[] bbox,
FLANDMARK_Model model,
double[] landmarks,
int[] bw_margin) |
static int |
flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img,
IntBuffer bbox,
FLANDMARK_Model model,
DoubleBuffer landmarks) |
static int |
flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img,
IntBuffer bbox,
FLANDMARK_Model model,
DoubleBuffer landmarks,
IntBuffer bw_margin) |
static int |
flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img,
IntPointer bbox,
FLANDMARK_Model model,
DoublePointer landmarks) |
static int |
flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img,
IntPointer bbox,
FLANDMARK_Model model,
DoublePointer landmarks,
IntPointer bw_margin)
Function flandmark_detect
Estimates positions of facial landmarks given the image and the bounding box of the detected face
|
static void |
flandmark_free(FLANDMARK_Model model)
Function flandmark_free
This function dealocates the FLANDMARK_Model data structure
|
static int |
flandmark_get_normalized_image_frame(org.bytedeco.opencv.opencv_core.IplImage input,
int[] bbox,
double[] bb,
byte[] face_img,
FLANDMARK_Model model) |
static int |
flandmark_get_normalized_image_frame(org.bytedeco.opencv.opencv_core.IplImage input,
IntBuffer bbox,
DoubleBuffer bb,
ByteBuffer face_img,
FLANDMARK_Model model) |
static int |
flandmark_get_normalized_image_frame(org.bytedeco.opencv.opencv_core.IplImage input,
IntPointer bbox,
DoublePointer bb,
BytePointer face_img,
FLANDMARK_Model model)
Function getNormalizedImageFrame
|
static void |
flandmark_get_psi_mat_sparse(FLANDMARK_PSI_SPARSE Psi,
FLANDMARK_Model model,
int lbpidx)
Computes LBP features representing it as sparse matrix (i.e.
|
static void |
flandmark_get_psi_mat(FLANDMARK_PSI Psi,
FLANDMARK_Model model,
int lbpidx) |
static int |
flandmark_imcrop(org.bytedeco.opencv.opencv_core.IplImage input,
org.bytedeco.opencv.opencv_core.IplImage output,
org.bytedeco.opencv.opencv_core.CvRect region)
Function imcrop
|
static FLANDMARK_Model |
flandmark_init(BytePointer filename)
Function flandmark_init
Given the path to the file containing the model in binary form, this function will return a pointer to this model.
|
static FLANDMARK_Model |
flandmark_init(String filename) |
static void |
flandmark_maximize_gdotprod(double[] maximum,
double[] idx,
double[] first,
double[] second,
int[] third,
int cols,
int tsize) |
static void |
flandmark_maximize_gdotprod(DoubleBuffer maximum,
DoubleBuffer idx,
DoubleBuffer first,
DoubleBuffer second,
IntBuffer third,
int cols,
int tsize) |
static void |
flandmark_maximize_gdotprod(DoublePointer maximum,
DoublePointer idx,
DoublePointer first,
DoublePointer second,
IntPointer third,
int cols,
int tsize)
Function maximizedotprod
|
static void |
flandmark_write_model(BytePointer filename,
FLANDMARK_Model model)
Function flandmark_write model
This function writes given FLANDMARK_model data structure to a file specified by its path.
|
static void |
flandmark_write_model(String filename,
FLANDMARK_Model model) |
static void |
liblbp_pyr_addvec(long[] vec,
int vec_nDim,
int[] img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_addvec(LongBuffer vec,
int vec_nDim,
IntBuffer img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_addvec(LongPointer vec,
int vec_nDim,
IntPointer img,
short img_nRows,
short img_nCols) |
static double |
liblbp_pyr_dotprod(double[] vec,
int vec_nDim,
int[] img,
short img_nRows,
short img_nCols) |
static double |
liblbp_pyr_dotprod(DoubleBuffer vec,
int vec_nDim,
IntBuffer img,
short img_nRows,
short img_nCols) |
static double |
liblbp_pyr_dotprod(DoublePointer vec,
int vec_nDim,
IntPointer img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_features_sparse(int[] vec,
int vec_nDim,
int[] img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_features_sparse(IntBuffer vec,
int vec_nDim,
IntBuffer img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_features_sparse(IntPointer vec,
int vec_nDim,
IntPointer img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_features(byte[] vec,
int vec_nDim,
int[] img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_features(ByteBuffer vec,
int vec_nDim,
IntBuffer img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_features(BytePointer vec,
int vec_nDim,
IntPointer img,
short img_nRows,
short img_nCols) |
static int |
liblbp_pyr_get_dim(short img_nRows,
short img_nCols,
short nPyramids) |
static void |
liblbp_pyr_subvec(long[] vec,
int vec_nDim,
int[] img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_subvec(LongBuffer vec,
int vec_nDim,
IntBuffer img,
short img_nRows,
short img_nCols) |
static void |
liblbp_pyr_subvec(LongPointer vec,
int vec_nDim,
IntPointer img,
short img_nRows,
short img_nCols) |
public static final int NO_ERR
public static final int ERROR_M
public static final int ERROR_BW
public static final int ERROR_BW_MARGIN
public static final int ERROR_W
public static final int ERROR_DATA_IMAGES
public static final int ERROR_DATA_MAPTABLE
public static final int ERROR_DATA_LBP
public static final int ERROR_DATA_OPTIONS_S
public static final int ERROR_DATA_OPTIONS_PSIG
public static final int UNKNOWN_ERROR
public static FLANDMARK_Model flandmark_init(@Cast(value="const char*") BytePointer filename)
filename
- [in]public static FLANDMARK_Model flandmark_init(String filename)
public static void flandmark_write_model(@Cast(value="const char*") BytePointer filename, FLANDMARK_Model model)
filename
- [in]model
- [in]public static void flandmark_write_model(String filename, FLANDMARK_Model model)
@Cast(value="EError_T") public static int flandmark_check_model(FLANDMARK_Model model, FLANDMARK_Model tst)
model
- [in]tst
- [in]public static void flandmark_free(FLANDMARK_Model model)
model
- [in]public static void flandmark_get_psi_mat(FLANDMARK_PSI Psi, FLANDMARK_Model model, int lbpidx)
Psi
- [out]model
- [in]lbpidx
- [in]public static void flandmark_get_psi_mat_sparse(FLANDMARK_PSI_SPARSE Psi, FLANDMARK_Model model, int lbpidx)
Psi
- [out]model
- [in]lbpidx
- [in]public static void flandmark_maximize_gdotprod(DoublePointer maximum, DoublePointer idx, @Const DoublePointer first, @Const DoublePointer second, @Const IntPointer third, int cols, int tsize)
[in]
- [in]
- [out]
- public static void flandmark_maximize_gdotprod(DoubleBuffer maximum, DoubleBuffer idx, @Const DoubleBuffer first, @Const DoubleBuffer second, @Const IntBuffer third, int cols, int tsize)
public static void flandmark_maximize_gdotprod(double[] maximum, double[] idx, @Const double[] first, @Const double[] second, @Const int[] third, int cols, int tsize)
public static int flandmark_get_normalized_image_frame(org.bytedeco.opencv.opencv_core.IplImage input, @Const IntPointer bbox, DoublePointer bb, @Cast(value="uint8_t*") BytePointer face_img, FLANDMARK_Model model)
public static int flandmark_get_normalized_image_frame(org.bytedeco.opencv.opencv_core.IplImage input, @Const IntBuffer bbox, DoubleBuffer bb, @Cast(value="uint8_t*") ByteBuffer face_img, FLANDMARK_Model model)
public static int flandmark_get_normalized_image_frame(org.bytedeco.opencv.opencv_core.IplImage input, @Const int[] bbox, double[] bb, @Cast(value="uint8_t*") byte[] face_img, FLANDMARK_Model model)
public static int flandmark_imcrop(org.bytedeco.opencv.opencv_core.IplImage input, org.bytedeco.opencv.opencv_core.IplImage output, @Const @ByVal org.bytedeco.opencv.opencv_core.CvRect region)
public static void flandmark_argmax(DoublePointer smax, FLANDMARK_Options options, @Const IntPointer mapTable, FLANDMARK_PSI_SPARSE Psi_sparse, @Cast(value="double**") PointerPointer q, @Cast(value="double**") PointerPointer g)
public static void flandmark_argmax(DoublePointer smax, FLANDMARK_Options options, @Const IntPointer mapTable, FLANDMARK_PSI_SPARSE Psi_sparse, @ByPtrPtr DoublePointer q, @ByPtrPtr DoublePointer g)
public static void flandmark_argmax(DoubleBuffer smax, FLANDMARK_Options options, @Const IntBuffer mapTable, FLANDMARK_PSI_SPARSE Psi_sparse, @ByPtrPtr DoubleBuffer q, @ByPtrPtr DoubleBuffer g)
public static void flandmark_argmax(double[] smax, FLANDMARK_Options options, @Const int[] mapTable, FLANDMARK_PSI_SPARSE Psi_sparse, @ByPtrPtr double[] q, @ByPtrPtr double[] g)
public static int flandmark_detect_base(@Cast(value="uint8_t*") BytePointer face_image, FLANDMARK_Model model, DoublePointer landmarks)
face_image
- [in] pointer to 1D uint8 array with normalized image frame of facemodel
- [in] Data structure holding info about modelint
- [in, out] array representing 2D array of size [2 x options.M] with estimated positions of landmarkspublic static int flandmark_detect_base(@Cast(value="uint8_t*") ByteBuffer face_image, FLANDMARK_Model model, DoubleBuffer landmarks)
public static int flandmark_detect_base(@Cast(value="uint8_t*") byte[] face_image, FLANDMARK_Model model, double[] landmarks)
public static int flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img, IntPointer bbox, FLANDMARK_Model model, DoublePointer landmarks, IntPointer bw_margin)
public static int flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img, IntPointer bbox, FLANDMARK_Model model, DoublePointer landmarks)
public static int flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img, IntBuffer bbox, FLANDMARK_Model model, DoubleBuffer landmarks, IntBuffer bw_margin)
public static int flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img, IntBuffer bbox, FLANDMARK_Model model, DoubleBuffer landmarks)
public static int flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img, int[] bbox, FLANDMARK_Model model, double[] landmarks, int[] bw_margin)
public static int flandmark_detect(org.bytedeco.opencv.opencv_core.IplImage img, int[] bbox, FLANDMARK_Model model, double[] landmarks)
public static void liblbp_pyr_features_sparse(@Cast(value="t_index*") IntPointer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntPointer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_features_sparse(@Cast(value="t_index*") IntBuffer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntBuffer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_features_sparse(@Cast(value="t_index*") int[] vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") int[] img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_features(@Cast(value="char*") BytePointer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntPointer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_features(@Cast(value="char*") ByteBuffer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntBuffer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_features(@Cast(value="char*") byte[] vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") int[] img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static double liblbp_pyr_dotprod(DoublePointer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntPointer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static double liblbp_pyr_dotprod(DoubleBuffer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntBuffer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static double liblbp_pyr_dotprod(double[] vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") int[] img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_addvec(@Cast(value="int64_t*") LongPointer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntPointer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_addvec(@Cast(value="int64_t*") LongBuffer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntBuffer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_addvec(@Cast(value="int64_t*") long[] vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") int[] img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_subvec(@Cast(value="int64_t*") LongPointer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntPointer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_subvec(@Cast(value="int64_t*") LongBuffer vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") IntBuffer img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
public static void liblbp_pyr_subvec(@Cast(value="int64_t*") long[] vec, @Cast(value="uint32_t") int vec_nDim, @Cast(value="uint32_t*") int[] img, @Cast(value="uint16_t") short img_nRows, @Cast(value="uint16_t") short img_nCols)
Copyright © 2022. All rights reserved.