
net.sourceforge.lept4j.L_Rch Maven / Gradle / Ivy
Go to download
# 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 a single character
* native declaration : recog.h:128
* This file was autogenerated by JNAerator,
* a tool written by Olivier Chafik that uses a few opensource projects..
* For help, please visit NativeLibs4Java , Rococoa, or JNA.
*/
public class L_Rch extends Structure {
/**
* index of best template
* C type : l_int32
*/
public int index;
/**
* correlation score of best template
* C type : l_float32
*/
public float score;
/**
* character string of best template
* C type : char*
*/
public Pointer text;
/**
* index of best sample (within the best
* C type : l_int32
*/
public int sample;
/**
* x-location of template (delx + shiftx)
* C type : l_int32
*/
public int xloc;
/**
* y-location of template (dely + shifty)
* C type : l_int32
*/
public int yloc;
/**
* width of best template
* C type : l_int32
*/
public int width;
public L_Rch() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("index", "score", "text", "sample", "xloc", "yloc", "width");
}
/**
* @param index index of best template
* C type : l_int32
* @param score correlation score of best template
* C type : l_float32
* @param text character string of best template
* C type : char*
* @param sample index of best sample (within the best
* C type : l_int32
* @param xloc x-location of template (delx + shiftx)
* C type : l_int32
* @param yloc y-location of template (dely + shifty)
* C type : l_int32
* @param width width of best template
* C type : l_int32
*/
public L_Rch(int index, float score, Pointer text, int sample, int xloc, int yloc, int width) {
super();
this.index = index;
this.score = score;
this.text = text;
this.sample = sample;
this.xloc = xloc;
this.yloc = yloc;
this.width = width;
}
public L_Rch(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends L_Rch implements Structure.ByReference {
};
public static class ByValue extends L_Rch implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy