net.sourceforge.lept4j.L_Rdid 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 com.sun.jna.ptr.FloatByReference;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;
import java.util.Arrays;
import java.util.List;
/**
* Data used for decoding a line of characters.
* native declaration : recog.h:166
* 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 L_Rdid extends Structure {
/**
* clone of pix to be decoded
* C type : Pix*
*/
public net.sourceforge.lept4j.Pix.ByReference pixs;
/**
* count array for each averaged template
* C type : l_int32**
*/
public PointerByReference counta;
/**
* best y-shift array per average template
* C type : l_int32**
*/
public PointerByReference delya;
/**
* number of averaged templates
* C type : l_int32
*/
public int narray;
/**
* size of count array (width of pixs)
* C type : l_int32
*/
public int size;
/**
* setwidths for each template
* C type : l_int32*
*/
public IntByReference setwidth;
/**
* pixel count in pixs by column
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nasum;
/**
* first moment of pixels in pixs by cols
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference namoment;
/**
* 1 if full arrays are made; 0 otherwise
* C type : l_int32
*/
public int fullarrays;
/**
* channel coeffs for template fg term
* C type : l_float32*
*/
public FloatByReference beta;
/**
* channel coeffs for bit-and term
* C type : l_float32*
*/
public FloatByReference gamma;
/**
* score on trellis
* C type : l_float32*
*/
public FloatByReference trellisscore;
/**
* template on trellis (for backtrack)
* C type : l_int32*
*/
public IntByReference trellistempl;
/**
* indices of best path templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference natempl;
/**
* x locations of best path templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference naxloc;
/**
* y locations of best path templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nadely;
/**
* widths of best path templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nawidth;
/**
* Viterbi result for splitting input pixs
* C type : Boxa*
*/
public net.sourceforge.lept4j.Boxa.ByReference boxa;
/**
* correlation scores: best path templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nascore;
/**
* indices of best rescored templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference natempl_r;
/**
* samples of best scored templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nasample_r;
/**
* x locations of best rescoredtemplates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference naxloc_r;
/**
* y locations of best rescoredtemplates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nadely_r;
/**
* widths of best rescoredtemplates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nawidth_r;
/**
* correlation scores: rescored templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nascore_r;
public L_Rdid() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("pixs", "counta", "delya", "narray", "size", "setwidth", "nasum", "namoment", "fullarrays", "beta", "gamma", "trellisscore", "trellistempl", "natempl", "naxloc", "nadely", "nawidth", "boxa", "nascore", "natempl_r", "nasample_r", "naxloc_r", "nadely_r", "nawidth_r", "nascore_r");
}
public L_Rdid(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends L_Rdid implements Structure.ByReference {
};
public static class ByValue extends L_Rdid implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy