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

net.sourceforge.lept4j.Sela 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;
/**
 * Array of Sel
* native declaration : morph.h:15
* 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 Sela extends Structure { /** * number of sel actually stored
* C type : l_int32 */ public int n; /** * size of allocated ptr array
* C type : l_int32 */ public int nalloc; /** * sel ptr array
* C type : Sel** */ public PointerByReference sel; public Sela() { super(); } protected List getFieldOrder() { return Arrays.asList("n", "nalloc", "sel"); } /** * @param n number of sel actually stored
* C type : l_int32
* @param nalloc size of allocated ptr array
* C type : l_int32
* @param sel sel ptr array
* C type : Sel** */ public Sela(int n, int nalloc, PointerByReference sel) { super(); this.n = n; this.nalloc = nalloc; // if ((sel.length != this.sel.length)) // throw new IllegalArgumentException("Wrong array size !"); this.sel = sel; } public Sela(Pointer peer) { super(peer); read(); } public static class ByReference extends Sela implements Structure.ByReference { }; public static class ByValue extends Sela implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy