All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sourceforge.lept4j.L_Dewarpa 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.

There is a newer version: 1.20.0
Show newest version
package net.sourceforge.lept4j;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import com.sun.jna.ptr.PointerByReference;
import java.util.Arrays;
import java.util.List;
/**
 * Data structure to hold a number of Dewarp
* native declaration : dewarp.h:19
* 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_Dewarpa extends Structure { /** * size of dewarp ptr array
* C type : l_int32 */ public int nalloc; /** * maximum page number in array
* C type : l_int32 */ public int maxpage; /** * array of ptrs to page dewarp
* C type : L_Dewarp** */ public PointerByReference dewarp; /** * array of ptrs to cached dewarps
* C type : L_Dewarp** */ public PointerByReference dewarpcache; /** * list of page numbers for pages
* C type : Numa* */ public net.sourceforge.lept4j.Numa.ByReference namodels; /** * list of page numbers with either
* C type : Numa* */ public net.sourceforge.lept4j.Numa.ByReference napages; /** * reduction factor of input: 1 or 2
* C type : l_int32 */ public int redfactor; /** * disparity arrays sampling factor
* C type : l_int32 */ public int sampling; /** * min number of long lines required
* C type : l_int32 */ public int minlines; /** * max distance for getting ref page
* C type : l_int32 */ public int maxdist; /** * maximum abs line curvature
* C type : l_int32 */ public int max_linecurv; /** * minimum abs diff line
* C type : l_int32 */ public int min_diff_linecurv; /** * maximum abs diff line
* C type : l_int32 */ public int max_diff_linecurv; /** * maximum abs left or right edge
* C type : l_int32 */ public int max_edgeslope; /** * maximum abs left or right edge
* C type : l_int32 */ public int max_edgecurv; /** * maximum abs diff left-right
* C type : l_int32 */ public int max_diff_edgecurv; /** * use both disparity arrays if
* C type : l_int32 */ public int useboth; /** * if there are multiple columns,
* C type : l_int32 */ public int check_columns; /** * invalid models have been removed
* C type : l_int32 */ public int modelsready; public L_Dewarpa() { super(); } protected List getFieldOrder() { return Arrays.asList("nalloc", "maxpage", "dewarp", "dewarpcache", "namodels", "napages", "redfactor", "sampling", "minlines", "maxdist", "max_linecurv", "min_diff_linecurv", "max_diff_linecurv", "max_edgeslope", "max_edgecurv", "max_diff_edgecurv", "useboth", "check_columns", "modelsready"); } public L_Dewarpa(Pointer peer) { super(peer); read(); } public static class ByReference extends L_Dewarpa implements Structure.ByReference { }; public static class ByValue extends L_Dewarpa implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy