net.sourceforge.lept4j.L_Rcha 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;
/**
* Data returned from correlation matching on an array of characters
* native declaration : recog.h:139
* 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_Rcha extends Structure {
/**
* indices of best templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference naindex;
/**
* correlation scores of best templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nascore;
/**
* character strings of best templates
* C type : Sarray*
*/
public net.sourceforge.lept4j.Sarray.ByReference satext;
/**
* indices of best samples
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nasample;
/**
* x-locations of templates (delx + shiftx)
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference naxloc;
/**
* y-locations of templates (dely + shifty)
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nayloc;
/**
* widths of best templates
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nawidth;
public L_Rcha() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("naindex", "nascore", "satext", "nasample", "naxloc", "nayloc", "nawidth");
}
/**
* @param naindex indices of best templates
* C type : Numa*
* @param nascore correlation scores of best templates
* C type : Numa*
* @param satext character strings of best templates
* C type : Sarray*
* @param nasample indices of best samples
* C type : Numa*
* @param naxloc x-locations of templates (delx + shiftx)
* C type : Numa*
* @param nayloc y-locations of templates (dely + shifty)
* C type : Numa*
* @param nawidth widths of best templates
* C type : Numa*
*/
public L_Rcha(net.sourceforge.lept4j.Numa.ByReference naindex, net.sourceforge.lept4j.Numa.ByReference nascore, net.sourceforge.lept4j.Sarray.ByReference satext, net.sourceforge.lept4j.Numa.ByReference nasample, net.sourceforge.lept4j.Numa.ByReference naxloc, net.sourceforge.lept4j.Numa.ByReference nayloc, net.sourceforge.lept4j.Numa.ByReference nawidth) {
super();
this.naindex = naindex;
this.nascore = nascore;
this.satext = satext;
this.nasample = nasample;
this.naxloc = naxloc;
this.nayloc = nayloc;
this.nawidth = nawidth;
}
public L_Rcha(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends L_Rcha implements Structure.ByReference {
};
public static class ByValue extends L_Rcha implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy