net.sourceforge.lept4j.L_WShed 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 com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;
import java.util.Arrays;
import java.util.List;
/**
* watershed.h
* Simple data structure to hold watershed data.
* native declaration : watershed.h:27
* 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_WShed extends Structure {
/**
* clone of input 8 bpp pixs
* C type : Pix*
*/
public net.sourceforge.lept4j.Pix.ByReference pixs;
/**
* clone of input 1 bpp seed (marker) pixm
* C type : Pix*
*/
public net.sourceforge.lept4j.Pix.ByReference pixm;
/**
* minimum depth allowed for a watershed
* C type : l_int32
*/
public int mindepth;
/**
* 16 bpp label pix
* C type : Pix*
*/
public net.sourceforge.lept4j.Pix.ByReference pixlab;
/**
* scratch pix for computing wshed regions
* C type : Pix*
*/
public net.sourceforge.lept4j.Pix.ByReference pixt;
/**
* line ptrs for pixs
* C type : void**
*/
public PointerByReference lines8;
/**
* line ptrs for pixm
* C type : void**
*/
public PointerByReference linem1;
/**
* line ptrs for pixlab
* C type : void**
*/
public PointerByReference linelab32;
/**
* line ptrs for pixt
* C type : void**
*/
public PointerByReference linet1;
/**
* result: 1 bpp pixa of watersheds
* C type : Pixa*
*/
public net.sourceforge.lept4j.Pixa.ByReference pixad;
/**
* pta of initial seed pixels
* C type : Pta*
*/
public net.sourceforge.lept4j.Pta.ByReference ptas;
/**
* numa of seed indicators; 0 if completed
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nasi;
/**
* numa of initial seed heights
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nash;
/**
* numa of initial minima heights
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference namh;
/**
* result: numa of watershed levels
* C type : Numa*
*/
public net.sourceforge.lept4j.Numa.ByReference nalevels;
/**
* number of seeds (markers)
* C type : l_int32
*/
public int nseeds;
/**
* number of minima different from seeds
* C type : l_int32
*/
public int nother;
/**
* lut for pixel indices
* C type : l_int32*
*/
public IntByReference lut;
/**
* back-links into lut, for updates
* C type : Numa**
*/
public net.sourceforge.lept4j.Numa.ByReference[] links;
/**
* size of links array
* C type : l_int32
*/
public int arraysize;
/**
* set to 1 for debug output
* C type : l_int32
*/
public int debug;
public L_WShed() {
super();
}
protected List > getFieldOrder() {
return Arrays.asList("pixs", "pixm", "mindepth", "pixlab", "pixt", "lines8", "linem1", "linelab32", "linet1", "pixad", "ptas", "nasi", "nash", "namh", "nalevels", "nseeds", "nother", "lut", "links", "arraysize", "debug");
}
public L_WShed(Pointer peer) {
super(peer);
read();
}
public static class ByReference extends L_WShed implements Structure.ByReference {
};
public static class ByValue extends L_WShed implements Structure.ByValue {
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy