net.sourceforge.lept4j.JbClasser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lept4j Show documentation
Show all versions of lept4j Show documentation
# Lept4J
## Description:
A Java JNA wrapper for Leptonica Image Processing library.
Lept4J is released and distributed under the Apache License, v2.0.
package net.sourceforge.lept4j;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
/**
* native declaration : jbclass.h:29
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java or JNA.
*/
public class JbClasser extends Structure {
/**
* input page image file names
* C type : Sarray*
*/
public net.sourceforge.lept4j.Sarray.ByReference safiles;
/**
* JB_RANKHAUS, JB_CORRELATION
* C type : l_int32
*/
public int method;
/**
* JB_CONN_COMPS, JB_CHARACTERS or
* C type : l_int32
*/
public int components;
/**
* max component width allowed
* C type : l_int32
*/
public int maxwidth;
/**
* max component height allowed
* C type : l_int32
*/
public int maxheight;
/**
* number of pages already processed
* C type : l_int32
*/
public int npages;
/**
* number of components already processed
* C type : l_int32
*/
public int baseindex;
/**
* number of components on each page
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nacomps;
/**
* size of square struct element for haus
* C type : l_int32
*/
public int sizehaus;
/**
* rank val of haus match, each way
* C type : l_float32
*/
public float rankhaus;
/**
* thresh value for correlation score
* C type : l_float32
*/
public float thresh;
/**
* corrects thresh value for heaver
* C type : l_float32
*/
public float weightfactor;
/**
* w * h of each template, without extra
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference naarea;
/**
* max width of original src images
* C type : l_int32
*/
public int w;
/**
* max height of original src images
* C type : l_int32
*/
public int h;
/**
* current number of classes
* C type : l_int32
*/
public int nclass;
/**
* If zero, pixaa isn't filled
* C type : l_int32
*/
public int keep_pixaa;
/**
* instances for each class; unbordered
* C type : Pixaa*
*/
public net.sourceforge.lept4j.Pixaa.ByReference pixaa;
/**
* templates for each class; bordered
* C type : Pixa*
*/
public net.sourceforge.lept4j.Pixa.ByReference pixat;
/**
* templates for each class; bordered
* C type : Pixa*
*/
public net.sourceforge.lept4j.Pixa.ByReference pixatd;
/**
* Hash table to find templates by size
* C type : L_DnaHash*
*/
public net.sourceforge.lept4j.L_DnaHash.ByReference dahash;
/**
* fg areas of undilated templates;
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nafgt;
/**
* centroids of all bordered cc
* C type : Pta*
*/
public net.sourceforge.lept4j.Pta.ByReference ptac;
/**
* centroids of all bordered template cc
* C type : Pta*
*/
public net.sourceforge.lept4j.Pta.ByReference ptact;
/**
* array of class ids for each component
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference naclass;
/**
* array of page nums for each component
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference napage;
/**
* array of UL corners at which the
* C type : Pta*
*/
public net.sourceforge.lept4j.Pta.ByReference ptaul;
/**
* similar to ptaul, but for LL corners
* C type : Pta*
*/
public net.sourceforge.lept4j.Pta.ByReference ptall;
public JbClasser() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("safiles", "method", "components", "maxwidth", "maxheight", "npages", "baseindex", "nacomps", "sizehaus", "rankhaus", "thresh", "weightfactor", "naarea", "w", "h", "nclass", "keep_pixaa", "pixaa", "pixat", "pixatd", "dahash", "nafgt", "ptac", "ptact", "naclass", "napage", "ptaul", "ptall");
}
public JbClasser(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends JbClasser implements Structure.ByReference {
};
public static class ByValue extends JbClasser implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy