net.sourceforge.lept4j.CCBord 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;
/**
* native declaration : ccbord.h:18
* 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 CCBord extends Structure {
/**
* component bitmap (min size)
* C type : Pix*
*/
public net.sourceforge.lept4j.Pix.ByReference pix;
/**
* regions of each closed curve
* C type : Boxa*
*/
public net.sourceforge.lept4j.Boxa.ByReference boxa;
/**
* initial border pixel locations
* C type : Pta*
*/
public net.sourceforge.lept4j.Pta.ByReference start;
/**
* number of handles; start at 1
* C type : l_int32
*/
public int refcount;
/**
* ptaa of chain pixels (local)
* C type : Ptaa*
*/
public net.sourceforge.lept4j.Ptaa.ByReference local;
/**
* ptaa of chain pixels (global)
* C type : Ptaa*
*/
public net.sourceforge.lept4j.Ptaa.ByReference global;
/**
* numaa of chain code (step dir)
* C type : Numaa*
*/
public net.sourceforge.lept4j.Numaa.ByReference step;
/**
* pta of single chain (local)
* C type : Pta*
*/
public net.sourceforge.lept4j.Pta.ByReference splocal;
/**
* pta of single chain (global)
* C type : Pta*
*/
public net.sourceforge.lept4j.Pta.ByReference spglobal;
public CCBord() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("pix", "boxa", "start", "refcount", "local", "global", "step", "splocal", "spglobal");
}
/**
* @param pix component bitmap (min size)
* C type : Pix*
* @param boxa regions of each closed curve
* C type : Boxa*
* @param start initial border pixel locations
* C type : Pta*
* @param refcount number of handles; start at 1
* C type : l_int32
* @param local ptaa of chain pixels (local)
* C type : Ptaa*
* @param global ptaa of chain pixels (global)
* C type : Ptaa*
* @param step numaa of chain code (step dir)
* C type : Numaa*
* @param splocal pta of single chain (local)
* C type : Pta*
* @param spglobal pta of single chain (global)
* C type : Pta*
*/
public CCBord(net.sourceforge.lept4j.Pix.ByReference pix, net.sourceforge.lept4j.Boxa.ByReference boxa, net.sourceforge.lept4j.Pta.ByReference start, int refcount, net.sourceforge.lept4j.Ptaa.ByReference local, net.sourceforge.lept4j.Ptaa.ByReference global, net.sourceforge.lept4j.Numaa.ByReference step, net.sourceforge.lept4j.Pta.ByReference splocal, net.sourceforge.lept4j.Pta.ByReference spglobal) {
super();
this.pix = pix;
this.boxa = boxa;
this.start = start;
this.refcount = refcount;
this.local = local;
this.global = global;
this.step = step;
this.splocal = splocal;
this.spglobal = spglobal;
}
public CCBord(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends CCBord implements Structure.ByReference {
};
public static class ByValue extends CCBord implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy