net.sourceforge.lept4j.Leptonica1 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.
/**
* Copyright @ 2015 Quan Nguyen
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
package net.sourceforge.lept4j;
import com.ochafik.lang.jnaerator.runtime.NativeSize;
import com.ochafik.lang.jnaerator.runtime.NativeSizeByReference;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.DoubleByReference;
import com.sun.jna.ptr.FloatByReference;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;
import java.nio.ByteBuffer;
import java.nio.DoubleBuffer;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.nio.LongBuffer;
import net.sourceforge.lept4j.util.LoadLibs;
/**
* JNA Wrapper for Leptonica Image Processing Library using
* JNA Direct Mapping
.
*/
public class Leptonica1 implements Library, ILeptonica {
static {
Native.register(LoadLibs.getLeptonicaLibName());
}
/**
* Original signature :
* PIX* pixCleanBackgroundToWhite(PIX*, PIX*, PIX*, l_float32, l_int32, l_int32)
*/
public static native Pix pixCleanBackgroundToWhite(Pix pixs, Pix pixim, Pix pixg, float gamma, int blackval, int whiteval);
/**
* Original signature :
* PIX* pixBackgroundNormSimple(PIX*, PIX*, PIX*)
*/
public static native Pix pixBackgroundNormSimple(Pix pixs, Pix pixim, Pix pixg);
/**
* Original signature :
* PIX* pixBackgroundNorm(PIX*, PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixBackgroundNorm(Pix pixs, Pix pixim, Pix pixg, int sx, int sy, int thresh, int mincount, int bgval, int smoothx, int smoothy);
/**
* Original signature :
* PIX* pixBackgroundNormMorph(PIX*, PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixBackgroundNormMorph(Pix pixs, Pix pixim, int reduction, int size, int bgval);
/**
* Original signature :
* l_ok pixBackgroundNormGrayArray(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, PIX**)
*/
public static native int pixBackgroundNormGrayArray(Pix pixs, Pix pixim, int sx, int sy, int thresh, int mincount, int bgval, int smoothx, int smoothy, PointerByReference ppixd);
/**
* Original signature :
* l_ok pixBackgroundNormRGBArrays(PIX*, PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, PIX**, PIX**, PIX**)
*/
public static native int pixBackgroundNormRGBArrays(Pix pixs, Pix pixim, Pix pixg, int sx, int sy, int thresh, int mincount, int bgval, int smoothx, int smoothy, PointerByReference ppixr, PointerByReference ppixg, PointerByReference ppixb);
/**
* Original signature :
* l_ok pixBackgroundNormGrayArrayMorph(PIX*, PIX*, l_int32, l_int32, l_int32, PIX**)
*/
public static native int pixBackgroundNormGrayArrayMorph(Pix pixs, Pix pixim, int reduction, int size, int bgval, PointerByReference ppixd);
/**
* Original signature :
* l_ok pixBackgroundNormRGBArraysMorph(PIX*, PIX*, l_int32, l_int32, l_int32, PIX**, PIX**, PIX**)
*/
public static native int pixBackgroundNormRGBArraysMorph(Pix pixs, Pix pixim, int reduction, int size, int bgval, PointerByReference ppixr, PointerByReference ppixg, PointerByReference ppixb);
/**
* Original signature :
* l_ok pixGetBackgroundGrayMap(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, PIX**)
*/
public static native int pixGetBackgroundGrayMap(Pix pixs, Pix pixim, int sx, int sy, int thresh, int mincount, PointerByReference ppixd);
/**
* Original signature :
* l_ok pixGetBackgroundRGBMap(PIX*, PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, PIX**, PIX**, PIX**)
*/
public static native int pixGetBackgroundRGBMap(Pix pixs, Pix pixim, Pix pixg, int sx, int sy, int thresh, int mincount, PointerByReference ppixmr, PointerByReference ppixmg, PointerByReference ppixmb);
/**
* Original signature :
* l_ok pixGetBackgroundGrayMapMorph(PIX*, PIX*, l_int32, l_int32, PIX**)
*/
public static native int pixGetBackgroundGrayMapMorph(Pix pixs, Pix pixim, int reduction, int size, PointerByReference ppixm);
/**
* Original signature :
* l_ok pixGetBackgroundRGBMapMorph(PIX*, PIX*, l_int32, l_int32, PIX**, PIX**, PIX**)
*/
public static native int pixGetBackgroundRGBMapMorph(Pix pixs, Pix pixim, int reduction, int size, PointerByReference ppixmr, PointerByReference ppixmg, PointerByReference ppixmb);
/**
* Original signature :
* l_ok pixFillMapHoles(PIX*, l_int32, l_int32, l_int32)
*/
public static native int pixFillMapHoles(Pix pix, int nx, int ny, int filltype);
/**
* Original signature :
* PIX* pixExtendByReplication(PIX*, l_int32, l_int32)
*/
public static native Pix pixExtendByReplication(Pix pixs, int addw, int addh);
/**
* Original signature :
* l_ok pixSmoothConnectedRegions(PIX*, PIX*, l_int32)
*/
public static native int pixSmoothConnectedRegions(Pix pixs, Pix pixm, int factor);
/**
* Original signature :
* PIX* pixGetInvBackgroundMap(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixGetInvBackgroundMap(Pix pixs, int bgval, int smoothx, int smoothy);
/**
* Original signature :
* PIX* pixApplyInvBackgroundGrayMap(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixApplyInvBackgroundGrayMap(Pix pixs, Pix pixm, int sx, int sy);
/**
* Original signature :
* PIX* pixApplyInvBackgroundRGBMap(PIX*, PIX*, PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixApplyInvBackgroundRGBMap(Pix pixs, Pix pixmr, Pix pixmg, Pix pixmb, int sx, int sy);
/**
* Original signature :
* PIX* pixApplyVariableGrayMap(PIX*, PIX*, l_int32)
*/
public static native Pix pixApplyVariableGrayMap(Pix pixs, Pix pixg, int target);
/**
* Original signature :
* PIX* pixGlobalNormRGB(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixGlobalNormRGB(Pix pixd, Pix pixs, int rval, int gval, int bval, int mapval);
/**
* Original signature :
* PIX* pixGlobalNormNoSatRGB(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_float32)
*/
public static native Pix pixGlobalNormNoSatRGB(Pix pixd, Pix pixs, int rval, int gval, int bval, int factor, float rank);
/**
* Original signature :
* l_ok pixThresholdSpreadNorm(PIX*, l_int32, l_int32, l_int32, l_int32, l_float32, l_int32, l_int32, l_int32, PIX**, PIX**, PIX**)
*/
public static native int pixThresholdSpreadNorm(Pix pixs, int filtertype, int edgethresh, int smoothx, int smoothy, float gamma, int minval, int maxval, int targetthresh, PointerByReference ppixth, PointerByReference ppixb, PointerByReference ppixd);
/**
* Original signature :
* PIX* pixBackgroundNormFlex(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixBackgroundNormFlex(Pix pixs, int sx, int sy, int smoothx, int smoothy, int delta);
/**
* Original signature :
* PIX* pixContrastNorm(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixContrastNorm(Pix pixd, Pix pixs, int sx, int sy, int mindiff, int smoothx, int smoothy);
/**
* Original signature :
* l_ok pixMinMaxTiles(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, PIX**, PIX**)
*/
public static native int pixMinMaxTiles(Pix pixs, int sx, int sy, int mindiff, int smoothx, int smoothy, PointerByReference ppixmin, PointerByReference ppixmax);
/**
* Original signature :
* l_ok pixSetLowContrast(PIX*, PIX*, l_int32)
*/
public static native int pixSetLowContrast(Pix pixs1, Pix pixs2, int mindiff);
/**
* Original signature :
* PIX* pixLinearTRCTiled(PIX*, PIX*, l_int32, l_int32, PIX*, PIX*)
*/
public static native Pix pixLinearTRCTiled(Pix pixd, Pix pixs, int sx, int sy, Pix pixmin, Pix pixmax);
/**
* Original signature :
* PIX* pixAffineSampledPta(PIX*, PTA*, PTA*, l_int32)
*/
public static native Pix pixAffineSampledPta(Pix pixs, Pta ptad, Pta ptas, int incolor);
/**
* Original signature :
* PIX* pixAffineSampled(PIX*, l_float32*, l_int32)
*/
public static native Pix pixAffineSampled(Pix pixs, FloatBuffer vc, int incolor);
/**
* Original signature :
* PIX* pixAffinePta(PIX*, PTA*, PTA*, l_int32)
*/
public static native Pix pixAffinePta(Pix pixs, Pta ptad, Pta ptas, int incolor);
/**
* Original signature :
* PIX* pixAffine(PIX*, l_float32*, l_int32)
*/
public static native Pix pixAffine(Pix pixs, FloatBuffer vc, int incolor);
/**
* Original signature :
* PIX* pixAffinePtaColor(PIX*, PTA*, PTA*, l_uint32)
*/
public static native Pix pixAffinePtaColor(Pix pixs, Pta ptad, Pta ptas, int colorval);
/**
* Original signature :
* PIX* pixAffineColor(PIX*, l_float32*, l_uint32)
*/
public static native Pix pixAffineColor(Pix pixs, FloatBuffer vc, int colorval);
/**
* Original signature :
* PIX* pixAffinePtaGray(PIX*, PTA*, PTA*, l_uint8)
*/
public static native Pix pixAffinePtaGray(Pix pixs, Pta ptad, Pta ptas, byte grayval);
/**
* Original signature :
* PIX* pixAffineGray(PIX*, l_float32*, l_uint8)
*/
public static native Pix pixAffineGray(Pix pixs, FloatBuffer vc, byte grayval);
/**
* Original signature :
* PIX* pixAffinePtaWithAlpha(PIX*, PTA*, PTA*, PIX*, l_float32, l_int32)
*/
public static native Pix pixAffinePtaWithAlpha(Pix pixs, Pta ptad, Pta ptas, Pix pixg, float fract, int border);
/**
* Original signature :
* l_ok getAffineXformCoeffs(PTA*, PTA*, l_float32**)
*/
public static native int getAffineXformCoeffs(Pta ptas, Pta ptad, PointerByReference pvc);
/**
* Original signature :
* l_ok affineInvertXform(l_float32*, l_float32**)
*/
public static native int affineInvertXform(FloatBuffer vc, PointerByReference pvci);
/**
* Original signature :
* l_ok affineXformSampledPt(l_float32*, l_int32, l_int32, l_int32*, l_int32*)
*/
public static native int affineXformSampledPt(FloatBuffer vc, int x, int y, IntBuffer pxp, IntBuffer pyp);
/**
* Original signature :
* l_ok affineXformPt(l_float32*, l_int32, l_int32, l_float32*, l_float32*)
*/
public static native int affineXformPt(FloatBuffer vc, int x, int y, FloatBuffer pxp, FloatBuffer pyp);
/**
* Original signature :
* l_ok linearInterpolatePixelColor(l_uint32*, l_int32, l_int32, l_int32, l_float32, l_float32, l_uint32, l_uint32*)
*/
public static native int linearInterpolatePixelColor(IntBuffer datas, int wpls, int w, int h, float x, float y, int colorval, IntBuffer pval);
/**
* Original signature :
* l_ok linearInterpolatePixelGray(l_uint32*, l_int32, l_int32, l_int32, l_float32, l_float32, l_int32, l_int32*)
*/
public static native int linearInterpolatePixelGray(IntBuffer datas, int wpls, int w, int h, float x, float y, int grayval, IntBuffer pval);
/**
* Original signature :
* l_int32 gaussjordan(l_float32**, l_float32*, l_int32)
*/
public static native int gaussjordan(PointerByReference a, FloatBuffer b, int n);
/**
* Original signature :
* PIX* pixAffineSequential(PIX*, PTA*, PTA*, l_int32, l_int32)
*/
public static native Pix pixAffineSequential(Pix pixs, Pta ptad, Pta ptas, int bw, int bh);
/**
* Original signature :
* l_float32* createMatrix2dTranslate(l_float32, l_float32)
*/
public static native FloatByReference createMatrix2dTranslate(float transx, float transy);
/**
* Original signature :
* l_float32* createMatrix2dScale(l_float32, l_float32)
*/
public static native FloatByReference createMatrix2dScale(float scalex, float scaley);
/**
* Original signature :
* l_float32* createMatrix2dRotate(l_float32, l_float32, l_float32)
*/
public static native FloatByReference createMatrix2dRotate(float xc, float yc, float angle);
/**
* Original signature :
* PTA* ptaTranslate(PTA*, l_float32, l_float32)
*/
public static native Pta ptaTranslate(Pta ptas, float transx, float transy);
/**
* Original signature :
* PTA* ptaScale(PTA*, l_float32, l_float32)
*/
public static native Pta ptaScale(Pta ptas, float scalex, float scaley);
/**
* Original signature :
* PTA* ptaRotate(PTA*, l_float32, l_float32, l_float32)
*/
public static native Pta ptaRotate(Pta ptas, float xc, float yc, float angle);
/**
* Original signature :
* BOXA* boxaTranslate(BOXA*, l_float32, l_float32)
*/
public static native Boxa boxaTranslate(Boxa boxas, float transx, float transy);
/**
* Original signature :
* BOXA* boxaScale(BOXA*, l_float32, l_float32)
*/
public static native Boxa boxaScale(Boxa boxas, float scalex, float scaley);
/**
* Original signature :
* BOXA* boxaRotate(BOXA*, l_float32, l_float32, l_float32)
*/
public static native Boxa boxaRotate(Boxa boxas, float xc, float yc, float angle);
/**
* Original signature :
* PTA* ptaAffineTransform(PTA*, l_float32*)
*/
public static native Pta ptaAffineTransform(Pta ptas, FloatBuffer mat);
/**
* Original signature :
* BOXA* boxaAffineTransform(BOXA*, l_float32*)
*/
public static native Boxa boxaAffineTransform(Boxa boxas, FloatBuffer mat);
/**
* Original signature :
* l_ok l_productMatVec(l_float32*, l_float32*, l_float32*, l_int32)
*/
public static native int l_productMatVec(FloatBuffer mat, FloatBuffer vecs, FloatBuffer vecd, int size);
/**
* Original signature :
* l_ok l_productMat2(l_float32*, l_float32*, l_float32*, l_int32)
*/
public static native int l_productMat2(FloatBuffer mat1, FloatBuffer mat2, FloatBuffer matd, int size);
/**
* Original signature :
* l_ok l_productMat3(l_float32*, l_float32*, l_float32*, l_float32*, l_int32)
*/
public static native int l_productMat3(FloatBuffer mat1, FloatBuffer mat2, FloatBuffer mat3, FloatBuffer matd, int size);
/**
* Original signature :
* l_ok l_productMat4(l_float32*, l_float32*, l_float32*, l_float32*, l_float32*, l_int32)
*/
public static native int l_productMat4(FloatBuffer mat1, FloatBuffer mat2, FloatBuffer mat3, FloatBuffer mat4, FloatBuffer matd, int size);
/**
* Original signature :
* l_int32 l_getDataBit(const void*, l_int32)
*/
public static native int l_getDataBit(Pointer line, int n);
/**
* Original signature : void l_setDataBit(void*, l_int32)
*/
public static native void l_setDataBit(Pointer line, int n);
/**
* Original signature : void l_clearDataBit(void*, l_int32)
*/
public static native void l_clearDataBit(Pointer line, int n);
/**
* Original signature :
* void l_setDataBitVal(void*, l_int32, l_int32)
*/
public static native void l_setDataBitVal(Pointer line, int n, int val);
/**
* Original signature :
* l_int32 l_getDataDibit(const void*, l_int32)
*/
public static native int l_getDataDibit(Pointer line, int n);
/**
* Original signature :
* void l_setDataDibit(void*, l_int32, l_int32)
*/
public static native void l_setDataDibit(Pointer line, int n, int val);
/**
* Original signature : void l_clearDataDibit(void*, l_int32)
*/
public static native void l_clearDataDibit(Pointer line, int n);
/**
* Original signature :
* l_int32 l_getDataQbit(const void*, l_int32)
*/
public static native int l_getDataQbit(Pointer line, int n);
/**
* Original signature :
* void l_setDataQbit(void*, l_int32, l_int32)
*/
public static native void l_setDataQbit(Pointer line, int n, int val);
/**
* Original signature : void l_clearDataQbit(void*, l_int32)
*/
public static native void l_clearDataQbit(Pointer line, int n);
/**
* Original signature :
* l_int32 l_getDataByte(const void*, l_int32)
*/
public static native int l_getDataByte(Pointer line, int n);
/**
* Original signature :
* void l_setDataByte(void*, l_int32, l_int32)
*/
public static native void l_setDataByte(Pointer line, int n, int val);
/**
* Original signature :
* l_int32 l_getDataTwoBytes(const void*, l_int32)
*/
public static native int l_getDataTwoBytes(Pointer line, int n);
/**
* Original signature :
* void l_setDataTwoBytes(void*, l_int32, l_int32)
*/
public static native void l_setDataTwoBytes(Pointer line, int n, int val);
/**
* Original signature :
* l_int32 l_getDataFourBytes(const void*, l_int32)
*/
public static native int l_getDataFourBytes(Pointer line, int n);
/**
* Original signature :
* void l_setDataFourBytes(void*, l_int32, l_int32)
*/
public static native void l_setDataFourBytes(Pointer line, int n, int val);
/**
* Original signature :
* char* barcodeDispatchDecoder(char*, l_int32, l_int32)
*/
public static native Pointer barcodeDispatchDecoder(ByteBuffer barstr, int format, int debugflag);
/**
* Original signature :
* l_int32 barcodeFormatIsSupported(l_int32)
*/
public static native int barcodeFormatIsSupported(int format);
/**
* Original signature :
* NUMA* pixFindBaselines(PIX*, PTA**, PIXA*)
*/
public static native Numa pixFindBaselines(Pix pixs, PointerByReference ppta, Pixa pixadb);
/**
* Original signature :
* PIX* pixDeskewLocal(PIX*, l_int32, l_int32, l_int32, l_float32, l_float32, l_float32)
*/
public static native Pix pixDeskewLocal(Pix pixs, int nslices, int redsweep, int redsearch, float sweeprange, float sweepdelta, float minbsdelta);
/**
* Original signature :
* l_ok pixGetLocalSkewTransform(PIX*, l_int32, l_int32, l_int32, l_float32, l_float32, l_float32, PTA**, PTA**)
*/
public static native int pixGetLocalSkewTransform(Pix pixs, int nslices, int redsweep, int redsearch, float sweeprange, float sweepdelta, float minbsdelta, PointerByReference pptas, PointerByReference pptad);
/**
* Original signature :
* NUMA* pixGetLocalSkewAngles(PIX*, l_int32, l_int32, l_int32, l_float32, l_float32, l_float32, l_float32*, l_float32*, l_int32)
*/
public static native Numa pixGetLocalSkewAngles(Pix pixs, int nslices, int redsweep, int redsearch, float sweeprange, float sweepdelta, float minbsdelta, FloatBuffer pa, FloatBuffer pb, int debug);
/**
* Original signature :
* L_BBUFFER* bbufferCreate(const l_uint8*, l_int32)
*/
public static native L_ByteBuffer bbufferCreate(ByteBuffer indata, int nalloc);
/**
* Original signature : void bbufferDestroy(L_BBUFFER**)
*/
public static native void bbufferDestroy(PointerByReference pbb);
/**
* Original signature :
* l_uint8* bbufferDestroyAndSaveData(L_BBUFFER**, size_t*)
*/
public static native Pointer bbufferDestroyAndSaveData(PointerByReference pbb, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok bbufferRead(L_BBUFFER*, l_uint8*, l_int32)
*/
public static native int bbufferRead(L_ByteBuffer bb, ByteBuffer src, int nbytes);
/**
* Original signature :
* l_ok bbufferReadStream(L_BBUFFER*, FILE*, l_int32)
*/
public static native int bbufferReadStream(L_ByteBuffer bb, FILE fp, int nbytes);
/**
* Original signature :
* l_ok bbufferExtendArray(L_BBUFFER*, l_int32)
*/
public static native int bbufferExtendArray(L_ByteBuffer bb, int nbytes);
/**
* Original signature :
* l_ok bbufferWrite(L_BBUFFER*, l_uint8*, size_t, size_t*)
*/
public static native int bbufferWrite(L_ByteBuffer bb, ByteBuffer dest, NativeSize nbytes, NativeSizeByReference pnout);
/**
* Original signature :
* l_ok bbufferWriteStream(L_BBUFFER*, FILE*, size_t, size_t*)
*/
public static native int bbufferWriteStream(L_ByteBuffer bb, FILE fp, NativeSize nbytes, NativeSizeByReference pnout);
/**
* Original signature :
* PIX* pixBilateral(PIX*, l_float32, l_float32, l_int32, l_int32)
*/
public static native Pix pixBilateral(Pix pixs, float spatial_stdev, float range_stdev, int ncomps, int reduction);
/**
* Original signature :
* PIX* pixBilateralGray(PIX*, l_float32, l_float32, l_int32, l_int32)
*/
public static native Pix pixBilateralGray(Pix pixs, float spatial_stdev, float range_stdev, int ncomps, int reduction);
/**
* Original signature :
* PIX* pixBilateralExact(PIX*, L_KERNEL*, L_KERNEL*)
*/
public static native Pix pixBilateralExact(Pix pixs, L_Kernel spatial_kel, L_Kernel range_kel);
/**
* Original signature :
* PIX* pixBilateralGrayExact(PIX*, L_KERNEL*, L_KERNEL*)
*/
public static native Pix pixBilateralGrayExact(Pix pixs, L_Kernel spatial_kel, L_Kernel range_kel);
/**
* Original signature :
* PIX* pixBlockBilateralExact(PIX*, l_float32, l_float32)
*/
public static native Pix pixBlockBilateralExact(Pix pixs, float spatial_stdev, float range_stdev);
/**
* Original signature : L_KERNEL* makeRangeKernel(l_float32)
*/
public static native L_Kernel makeRangeKernel(float range_stdev);
/**
* Original signature :
* PIX* pixBilinearSampledPta(PIX*, PTA*, PTA*, l_int32)
*/
public static native Pix pixBilinearSampledPta(Pix pixs, Pta ptad, Pta ptas, int incolor);
/**
* Original signature :
* PIX* pixBilinearSampled(PIX*, l_float32*, l_int32)
*/
public static native Pix pixBilinearSampled(Pix pixs, FloatBuffer vc, int incolor);
/**
* Original signature :
* PIX* pixBilinearPta(PIX*, PTA*, PTA*, l_int32)
*/
public static native Pix pixBilinearPta(Pix pixs, Pta ptad, Pta ptas, int incolor);
/**
* Original signature :
* PIX* pixBilinear(PIX*, l_float32*, l_int32)
*/
public static native Pix pixBilinear(Pix pixs, FloatBuffer vc, int incolor);
/**
* Original signature :
* PIX* pixBilinearPtaColor(PIX*, PTA*, PTA*, l_uint32)
*/
public static native Pix pixBilinearPtaColor(Pix pixs, Pta ptad, Pta ptas, int colorval);
/**
* Original signature :
* PIX* pixBilinearColor(PIX*, l_float32*, l_uint32)
*/
public static native Pix pixBilinearColor(Pix pixs, FloatBuffer vc, int colorval);
/**
* Original signature :
* PIX* pixBilinearPtaGray(PIX*, PTA*, PTA*, l_uint8)
*/
public static native Pix pixBilinearPtaGray(Pix pixs, Pta ptad, Pta ptas, byte grayval);
/**
* Original signature :
* PIX* pixBilinearGray(PIX*, l_float32*, l_uint8)
*/
public static native Pix pixBilinearGray(Pix pixs, FloatBuffer vc, byte grayval);
/**
* Original signature :
* PIX* pixBilinearPtaWithAlpha(PIX*, PTA*, PTA*, PIX*, l_float32, l_int32)
*/
public static native Pix pixBilinearPtaWithAlpha(Pix pixs, Pta ptad, Pta ptas, Pix pixg, float fract, int border);
/**
* Original signature :
* l_ok getBilinearXformCoeffs(PTA*, PTA*, l_float32**)
*/
public static native int getBilinearXformCoeffs(Pta ptas, Pta ptad, PointerByReference pvc);
/**
* Original signature :
* l_ok bilinearXformSampledPt(l_float32*, l_int32, l_int32, l_int32*, l_int32*)
*/
public static native int bilinearXformSampledPt(FloatBuffer vc, int x, int y, IntBuffer pxp, IntBuffer pyp);
/**
* Original signature :
* l_ok bilinearXformPt(l_float32*, l_int32, l_int32, l_float32*, l_float32*)
*/
public static native int bilinearXformPt(FloatBuffer vc, int x, int y, FloatBuffer pxp, FloatBuffer pyp);
/**
* Original signature :
* l_ok pixOtsuAdaptiveThreshold(PIX*, l_int32, l_int32, l_int32, l_int32, l_float32, PIX**, PIX**)
*/
public static native int pixOtsuAdaptiveThreshold(Pix pixs, int sx, int sy, int smoothx, int smoothy, float scorefract, PointerByReference ppixth, PointerByReference ppixd);
/**
* Original signature :
* PIX* pixOtsuThreshOnBackgroundNorm(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_float32, l_int32*)
*/
public static native Pix pixOtsuThreshOnBackgroundNorm(Pix pixs, Pix pixim, int sx, int sy, int thresh, int mincount, int bgval, int smoothx, int smoothy, float scorefract, IntBuffer pthresh);
/**
* Original signature :
* PIX* pixMaskedThreshOnBackgroundNorm(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_float32, l_int32*)
*/
public static native Pix pixMaskedThreshOnBackgroundNorm(Pix pixs, Pix pixim, int sx, int sy, int thresh, int mincount, int smoothx, int smoothy, float scorefract, IntBuffer pthresh);
/**
* Original signature :
* l_ok pixSauvolaBinarizeTiled(PIX*, l_int32, l_float32, l_int32, l_int32, PIX**, PIX**)
*/
public static native int pixSauvolaBinarizeTiled(Pix pixs, int whsize, float factor, int nx, int ny, PointerByReference ppixth, PointerByReference ppixd);
/**
* Original signature :
* l_ok pixSauvolaBinarize(PIX*, l_int32, l_float32, l_int32, PIX**, PIX**, PIX**, PIX**)
*/
public static native int pixSauvolaBinarize(Pix pixs, int whsize, float factor, int addborder, PointerByReference ppixm, PointerByReference ppixsd, PointerByReference ppixth, PointerByReference ppixd);
/**
* Original signature :
* l_ok pixThresholdByConnComp(PIX*, PIX*, l_int32, l_int32, l_int32, l_float32, l_float32, l_int32*, PIX**, l_int32)
*/
public static native int pixThresholdByConnComp(Pix pixs, Pix pixm, int start, int end, int incr, float thresh48, float threshdiff, IntBuffer pglobthresh, PointerByReference ppixd, int debugflag);
/**
* Original signature :
* l_ok pixThresholdByConnComp(PIX*, PIX*, l_int32, l_int32, l_int32, l_float32, l_float32, l_int32*, PIX**, l_int32)
*/
public static native int pixThresholdByConnComp(Pix pixs, Pix pixm, int start, int end, int incr, float thresh48, float threshdiff, IntByReference pglobthresh, PointerByReference ppixd, int debugflag);
/**
* Original signature :
* l_ok pixThresholdByHisto(PIX*, l_int32, l_int32, l_float32, l_int32*, PIX**, PIX**)
*/
public static native int pixThresholdByHisto(Pix pixs, int factor, int halfw, float delta, IntBuffer pthresh, PointerByReference ppixd, PointerByReference ppixhisto);
/**
* Original signature :
* PIX* pixExpandBinaryReplicate(PIX*, l_int32, l_int32)
*/
public static native Pix pixExpandBinaryReplicate(Pix pixs, int xfact, int yfact);
/**
* Original signature :
* PIX* pixExpandBinaryPower2(PIX*, l_int32)
*/
public static native Pix pixExpandBinaryPower2(Pix pixs, int factor);
/**
* Original signature : PIX* pixReduceBinary2(PIX*, l_uint8*)
*/
public static native Pix pixReduceBinary2(Pix pixs, ByteBuffer intab);
/**
* Original signature :
* PIX* pixReduceRankBinaryCascade(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixReduceRankBinaryCascade(Pix pixs, int level1, int level2, int level3, int level4);
/**
* Original signature :
* PIX* pixReduceRankBinary2(PIX*, l_int32, l_uint8*)
*/
public static native Pix pixReduceRankBinary2(Pix pixs, int level, ByteBuffer intab);
/**
* Original signature : l_uint8* makeSubsampleTab2x()
*/
public static native Pointer makeSubsampleTab2x();
/**
* Original signature :
* PIX* pixBlend(PIX*, PIX*, l_int32, l_int32, l_float32)
*/
public static native Pix pixBlend(Pix pixs1, Pix pixs2, int x, int y, float fract);
/**
* Original signature :
* PIX* pixBlendMask(PIX*, PIX*, PIX*, l_int32, l_int32, l_float32, l_int32)
*/
public static native Pix pixBlendMask(Pix pixd, Pix pixs1, Pix pixs2, int x, int y, float fract, int type);
/**
* Original signature :
* PIX* pixBlendGray(PIX*, PIX*, PIX*, l_int32, l_int32, l_float32, l_int32, l_int32, l_uint32)
*/
public static native Pix pixBlendGray(Pix pixd, Pix pixs1, Pix pixs2, int x, int y, float fract, int type, int transparent, int transpix);
/**
* Original signature :
* PIX* pixBlendGrayInverse(PIX*, PIX*, PIX*, l_int32, l_int32, l_float32)
*/
public static native Pix pixBlendGrayInverse(Pix pixd, Pix pixs1, Pix pixs2, int x, int y, float fract);
/**
* Original signature :
* PIX* pixBlendColor(PIX*, PIX*, PIX*, l_int32, l_int32, l_float32, l_int32, l_uint32)
*/
public static native Pix pixBlendColor(Pix pixd, Pix pixs1, Pix pixs2, int x, int y, float fract, int transparent, int transpix);
/**
* Original signature :
* PIX* pixBlendColorByChannel(PIX*, PIX*, PIX*, l_int32, l_int32, l_float32, l_float32, l_float32, l_int32, l_uint32)
*/
public static native Pix pixBlendColorByChannel(Pix pixd, Pix pixs1, Pix pixs2, int x, int y, float rfract, float gfract, float bfract, int transparent, int transpix);
/**
* Original signature :
* PIX* pixBlendGrayAdapt(PIX*, PIX*, PIX*, l_int32, l_int32, l_float32, l_int32)
*/
public static native Pix pixBlendGrayAdapt(Pix pixd, Pix pixs1, Pix pixs2, int x, int y, float fract, int shift);
/**
* Original signature :
* PIX* pixFadeWithGray(PIX*, PIX*, l_float32, l_int32)
*/
public static native Pix pixFadeWithGray(Pix pixs, Pix pixb, float factor, int type);
/**
* Original signature :
* PIX* pixBlendHardLight(PIX*, PIX*, PIX*, l_int32, l_int32, l_float32)
*/
public static native Pix pixBlendHardLight(Pix pixd, Pix pixs1, Pix pixs2, int x, int y, float fract);
/**
* Original signature :
* l_ok pixBlendCmap(PIX*, PIX*, l_int32, l_int32, l_int32)
*/
public static native int pixBlendCmap(Pix pixs, Pix pixb, int x, int y, int sindex);
/**
* Original signature :
* PIX* pixBlendWithGrayMask(PIX*, PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixBlendWithGrayMask(Pix pixs1, Pix pixs2, Pix pixg, int x, int y);
/**
* Original signature :
* PIX* pixBlendBackgroundToColor(PIX*, PIX*, BOX*, l_uint32, l_float32, l_int32, l_int32)
*/
public static native Pix pixBlendBackgroundToColor(Pix pixd, Pix pixs, Box box, int color, float gamma, int minval, int maxval);
/**
* Original signature :
* PIX* pixMultiplyByColor(PIX*, PIX*, BOX*, l_uint32)
*/
public static native Pix pixMultiplyByColor(Pix pixd, Pix pixs, Box box, int color);
/**
* Original signature :
* PIX* pixAlphaBlendUniform(PIX*, l_uint32)
*/
public static native Pix pixAlphaBlendUniform(Pix pixs, int color);
/**
* Original signature :
* PIX* pixAddAlphaToBlend(PIX*, l_float32, l_int32)
*/
public static native Pix pixAddAlphaToBlend(Pix pixs, float fract, int invert);
/**
* Original signature : PIX* pixSetAlphaOverWhite(PIX*)
*/
public static native Pix pixSetAlphaOverWhite(Pix pixs);
/**
* Original signature :
* l_ok pixLinearEdgeFade(PIX*, l_int32, l_int32, l_float32, l_float32)
*/
public static native int pixLinearEdgeFade(Pix pixs, int dir, int fadeto, float distfract, float maxfade);
/**
* Original signature : L_BMF* bmfCreate(const char*, l_int32)
*/
public static native L_Bmf bmfCreate(String dir, int fontsize);
/**
* Original signature : void bmfDestroy(L_BMF**)
*/
public static native void bmfDestroy(PointerByReference pbmf);
/**
* Original signature : PIX* bmfGetPix(L_BMF*, char)
*/
public static native Pix bmfGetPix(L_Bmf bmf, byte chr);
/**
* Original signature :
* l_ok bmfGetWidth(L_BMF*, char, l_int32*)
*/
public static native int bmfGetWidth(L_Bmf bmf, byte chr, IntBuffer pw);
/**
* Original signature :
* l_ok bmfGetBaseline(L_BMF*, char, l_int32*)
*/
public static native int bmfGetBaseline(L_Bmf bmf, byte chr, IntBuffer pbaseline);
/**
* Original signature :
* PIXA* pixaGetFont(const char*, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native Pixa pixaGetFont(String dir, int fontsize, IntBuffer pbl0, IntBuffer pbl1, IntBuffer pbl2);
/**
* Original signature :
* l_ok pixaSaveFont(const char*, const char*, l_int32)
*/
public static native int pixaSaveFont(String indir, String outdir, int fontsize);
/**
* Original signature : PIX* pixReadStreamBmp(FILE*)
*/
public static native Pix pixReadStreamBmp(FILE fp);
/**
* Original signature :
* PIX* pixReadMemBmp(const l_uint8*, size_t)
*/
public static native Pix pixReadMemBmp(ByteBuffer cdata, NativeSize size);
/**
* Original signature : l_ok pixWriteStreamBmp(FILE*, PIX*)
*/
public static native int pixWriteStreamBmp(FILE fp, Pix pix);
/**
* Original signature :
* l_ok pixWriteMemBmp(l_uint8**, size_t*, PIX*)
*/
public static native int pixWriteMemBmp(PointerByReference pfdata, NativeSizeByReference pfsize, Pix pixs);
/**
* Original signature : PIXA* l_bootnum_gen1()
*/
public static native Pixa l_bootnum_gen1();
/**
* Original signature : PIXA* l_bootnum_gen2()
*/
public static native Pixa l_bootnum_gen2();
/**
* Original signature : PIXA* l_bootnum_gen3()
*/
public static native Pixa l_bootnum_gen3();
/**
* Original signature : PIXA* l_bootnum_gen4(l_int32)
*/
public static native Pixa l_bootnum_gen4(int nsamp);
/**
* Original signature :
* BOX* boxCreate(l_int32, l_int32, l_int32, l_int32)
*/
public static native Box boxCreate(int x, int y, int w, int h);
/**
* Original signature :
* BOX* boxCreateValid(l_int32, l_int32, l_int32, l_int32)
*/
public static native Box boxCreateValid(int x, int y, int w, int h);
/**
* Original signature : BOX* boxCopy(BOX*)
*/
public static native Box boxCopy(Box box);
/**
* Original signature : BOX* boxClone(BOX*)
*/
public static native Box boxClone(Box box);
/**
* Original signature : void boxDestroy(BOX**)
*/
public static native void boxDestroy(PointerByReference pbox);
/**
* Original signature :
* l_ok boxGetGeometry(BOX*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxGetGeometry(Box box, IntBuffer px, IntBuffer py, IntBuffer pw, IntBuffer ph);
/**
* Original signature :
* l_ok boxSetGeometry(BOX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int boxSetGeometry(Box box, int x, int y, int w, int h);
/**
* Original signature :
* l_ok boxGetSideLocations(BOX*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxGetSideLocations(Box box, IntBuffer pl, IntBuffer pr, IntBuffer pt, IntBuffer pb);
/**
* Original signature :
* l_ok boxSetSideLocations(BOX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int boxSetSideLocations(Box box, int l, int r, int t, int b);
/**
* Original signature : l_int32 boxGetRefcount(BOX*)
*/
public static native int boxGetRefcount(Box box);
/**
* Original signature : l_ok boxChangeRefcount(BOX*, l_int32)
*/
public static native int boxChangeRefcount(Box box, int delta);
/**
* Original signature : l_ok boxIsValid(BOX*, l_int32*)
*/
public static native int boxIsValid(Box box, IntBuffer pvalid);
/**
* Original signature : BOXA* boxaCreate(l_int32)
*/
public static native Boxa boxaCreate(int n);
/**
* Original signature : BOXA* boxaCopy(BOXA*, l_int32)
*/
public static native Boxa boxaCopy(Boxa boxa, int copyflag);
/**
* Original signature : void boxaDestroy(BOXA**)
*/
public static native void boxaDestroy(PointerByReference pboxa);
/**
* Original signature : l_ok boxaAddBox(BOXA*, BOX*, l_int32)
*/
public static native int boxaAddBox(Boxa boxa, Box box, int copyflag);
/**
* Original signature : l_ok boxaExtendArray(BOXA*)
*/
public static native int boxaExtendArray(Boxa boxa);
/**
* Original signature :
* l_ok boxaExtendArrayToSize(BOXA*, l_int32)
*/
public static native int boxaExtendArrayToSize(Boxa boxa, int size);
/**
* Original signature : l_int32 boxaGetCount(BOXA*)
*/
public static native int boxaGetCount(Boxa boxa);
/**
* Original signature : l_int32 boxaGetValidCount(BOXA*)
*/
public static native int boxaGetValidCount(Boxa boxa);
/**
* Original signature :
* BOX* boxaGetBox(BOXA*, l_int32, l_int32)
*/
public static native Box boxaGetBox(Boxa boxa, int index, int accessflag);
/**
* Original signature :
* BOX* boxaGetValidBox(BOXA*, l_int32, l_int32)
*/
public static native Box boxaGetValidBox(Boxa boxa, int index, int accessflag);
/**
* Original signature : NUMA* boxaFindInvalidBoxes(BOXA*)
*/
public static native Numa boxaFindInvalidBoxes(Boxa boxa);
/**
* Original signature :
* l_ok boxaGetBoxGeometry(BOXA*, l_int32, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxaGetBoxGeometry(Boxa boxa, int index, IntBuffer px, IntBuffer py, IntBuffer pw, IntBuffer ph);
/**
* Original signature : l_ok boxaIsFull(BOXA*, l_int32*)
*/
public static native int boxaIsFull(Boxa boxa, IntBuffer pfull);
/**
* Original signature :
* l_ok boxaReplaceBox(BOXA*, l_int32, BOX*)
*/
public static native int boxaReplaceBox(Boxa boxa, int index, Box box);
/**
* Original signature :
* l_ok boxaInsertBox(BOXA*, l_int32, BOX*)
*/
public static native int boxaInsertBox(Boxa boxa, int index, Box box);
/**
* Original signature : l_ok boxaRemoveBox(BOXA*, l_int32)
*/
public static native int boxaRemoveBox(Boxa boxa, int index);
/**
* Original signature :
* l_ok boxaRemoveBoxAndSave(BOXA*, l_int32, BOX**)
*/
public static native int boxaRemoveBoxAndSave(Boxa boxa, int index, PointerByReference pbox);
/**
* Original signature : BOXA* boxaSaveValid(BOXA*, l_int32)
*/
public static native Boxa boxaSaveValid(Boxa boxas, int copyflag);
/**
* Original signature : l_ok boxaInitFull(BOXA*, BOX*)
*/
public static native int boxaInitFull(Boxa boxa, Box box);
/**
* Original signature : l_ok boxaClear(BOXA*)
*/
public static native int boxaClear(Boxa boxa);
/**
* Original signature : BOXAA* boxaaCreate(l_int32)
*/
public static native Boxaa boxaaCreate(int n);
/**
* Original signature : BOXAA* boxaaCopy(BOXAA*, l_int32)
*/
public static native Boxaa boxaaCopy(Boxaa baas, int copyflag);
/**
* Original signature : void boxaaDestroy(BOXAA**)
*/
public static native void boxaaDestroy(PointerByReference pbaa);
/**
* Original signature :
* l_ok boxaaAddBoxa(BOXAA*, BOXA*, l_int32)
*/
public static native int boxaaAddBoxa(Boxaa baa, Boxa ba, int copyflag);
/**
* Original signature : l_ok boxaaExtendArray(BOXAA*)
*/
public static native int boxaaExtendArray(Boxaa baa);
/**
* Original signature :
* l_ok boxaaExtendArrayToSize(BOXAA*, l_int32)
*/
public static native int boxaaExtendArrayToSize(Boxaa baa, int size);
/**
* Original signature : l_int32 boxaaGetCount(BOXAA*)
*/
public static native int boxaaGetCount(Boxaa baa);
/**
* Original signature : l_int32 boxaaGetBoxCount(BOXAA*)
*/
public static native int boxaaGetBoxCount(Boxaa baa);
/**
* Original signature :
* BOXA* boxaaGetBoxa(BOXAA*, l_int32, l_int32)
*/
public static native Boxa boxaaGetBoxa(Boxaa baa, int index, int accessflag);
/**
* Original signature :
* BOX* boxaaGetBox(BOXAA*, l_int32, l_int32, l_int32)
*/
public static native Box boxaaGetBox(Boxaa baa, int iboxa, int ibox, int accessflag);
/**
* Original signature : l_ok boxaaInitFull(BOXAA*, BOXA*)
*/
public static native int boxaaInitFull(Boxaa baa, Boxa boxa);
/**
* Original signature :
* l_ok boxaaExtendWithInit(BOXAA*, l_int32, BOXA*)
*/
public static native int boxaaExtendWithInit(Boxaa baa, int maxindex, Boxa boxa);
/**
* Original signature :
* l_ok boxaaReplaceBoxa(BOXAA*, l_int32, BOXA*)
*/
public static native int boxaaReplaceBoxa(Boxaa baa, int index, Boxa boxa);
/**
* Original signature :
* l_ok boxaaInsertBoxa(BOXAA*, l_int32, BOXA*)
*/
public static native int boxaaInsertBoxa(Boxaa baa, int index, Boxa boxa);
/**
* Original signature : l_ok boxaaRemoveBoxa(BOXAA*, l_int32)
*/
public static native int boxaaRemoveBoxa(Boxaa baa, int index);
/**
* Original signature :
* l_ok boxaaAddBox(BOXAA*, l_int32, BOX*, l_int32)
*/
public static native int boxaaAddBox(Boxaa baa, int index, Box box, int accessflag);
/**
* Original signature :
* BOXAA* boxaaReadFromFiles(const char*, const char*, l_int32, l_int32)
*/
public static native Boxaa boxaaReadFromFiles(String dirname, String substr, int first, int nfiles);
/**
* Original signature : BOXAA* boxaaRead(const char*)
*/
public static native Boxaa boxaaRead(String filename);
/**
* Original signature : BOXAA* boxaaReadStream(FILE*)
*/
public static native Boxaa boxaaReadStream(FILE fp);
/**
* Original signature :
* BOXAA* boxaaReadMem(const l_uint8*, size_t)
*/
public static native Boxaa boxaaReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok boxaaWrite(const char*, BOXAA*)
*/
public static native int boxaaWrite(String filename, Boxaa baa);
/**
* Original signature : l_ok boxaaWriteStream(FILE*, BOXAA*)
*/
public static native int boxaaWriteStream(FILE fp, Boxaa baa);
/**
* Original signature :
* l_ok boxaaWriteMem(l_uint8**, size_t*, BOXAA*)
*/
public static native int boxaaWriteMem(PointerByReference pdata, NativeSizeByReference psize, Boxaa baa);
/**
* Original signature : BOXA* boxaRead(const char*)
*/
public static native Boxa boxaRead(String filename);
/**
* Original signature : BOXA* boxaReadStream(FILE*)
*/
public static native Boxa boxaReadStream(FILE fp);
/**
* Original signature :
* BOXA* boxaReadMem(const l_uint8*, size_t)
*/
public static native Boxa boxaReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok boxaWriteDebug(const char*, BOXA*)
*/
public static native int boxaWriteDebug(String filename, Boxa boxa);
/**
* Original signature : l_ok boxaWrite(const char*, BOXA*)
*/
public static native int boxaWrite(String filename, Boxa boxa);
/**
* Original signature : l_ok boxaWriteStream(FILE*, BOXA*)
*/
public static native int boxaWriteStream(FILE fp, Boxa boxa);
/**
* Original signature : l_ok boxaWriteStderr(BOXA*)
*/
public static native int boxaWriteStderr(Boxa boxa);
/**
* Original signature :
* l_ok boxaWriteMem(l_uint8**, size_t*, BOXA*)
*/
public static native int boxaWriteMem(PointerByReference pdata, NativeSizeByReference psize, Boxa boxa);
/**
* Original signature : l_ok boxPrintStreamInfo(FILE*, BOX*)
*/
public static native int boxPrintStreamInfo(FILE fp, Box box);
/**
* Original signature : l_ok boxContains(BOX*, BOX*, l_int32*)
*/
public static native int boxContains(Box box1, Box box2, IntBuffer presult);
/**
* Original signature :
* l_ok boxIntersects(BOX*, BOX*, l_int32*)
*/
public static native int boxIntersects(Box box1, Box box2, IntBuffer presult);
/**
* Original signature : BOXA* boxaContainedInBox(BOXA*, BOX*)
*/
public static native Boxa boxaContainedInBox(Boxa boxas, Box box);
/**
* Original signature :
* l_ok boxaContainedInBoxCount(BOXA*, BOX*, l_int32*)
*/
public static native int boxaContainedInBoxCount(Boxa boxa, Box box, IntBuffer pcount);
/**
* Original signature :
* l_ok boxaContainedInBoxa(BOXA*, BOXA*, l_int32*)
*/
public static native int boxaContainedInBoxa(Boxa boxa1, Boxa boxa2, IntBuffer pcontained);
/**
* Original signature : BOXA* boxaIntersectsBox(BOXA*, BOX*)
*/
public static native Boxa boxaIntersectsBox(Boxa boxas, Box box);
/**
* Original signature :
* l_ok boxaIntersectsBoxCount(BOXA*, BOX*, l_int32*)
*/
public static native int boxaIntersectsBoxCount(Boxa boxa, Box box, IntBuffer pcount);
/**
* Original signature : BOXA* boxaClipToBox(BOXA*, BOX*)
*/
public static native Boxa boxaClipToBox(Boxa boxas, Box box);
/**
* Original signature : BOXA* boxaCombineOverlaps(BOXA*, PIXA*)
*/
public static native Boxa boxaCombineOverlaps(Boxa boxas, Pixa pixadb);
/**
* Original signature :
* l_ok boxaCombineOverlapsInPair(BOXA*, BOXA*, BOXA**, BOXA**, PIXA*)
*/
public static native int boxaCombineOverlapsInPair(Boxa boxas1, Boxa boxas2, PointerByReference pboxad1, PointerByReference pboxad2, Pixa pixadb);
/**
* Original signature : BOX* boxOverlapRegion(BOX*, BOX*)
*/
public static native Box boxOverlapRegion(Box box1, Box box2);
/**
* Original signature : BOX* boxBoundingRegion(BOX*, BOX*)
*/
public static native Box boxBoundingRegion(Box box1, Box box2);
/**
* Original signature :
* l_ok boxOverlapFraction(BOX*, BOX*, l_float32*)
*/
public static native int boxOverlapFraction(Box box1, Box box2, FloatBuffer pfract);
/**
* Original signature :
* l_ok boxOverlapArea(BOX*, BOX*, l_int32*)
*/
public static native int boxOverlapArea(Box box1, Box box2, IntBuffer parea);
/**
* Original signature :
* BOXA* boxaHandleOverlaps(BOXA*, l_int32, l_int32, l_float32, l_float32, NUMA**)
*/
public static native Boxa boxaHandleOverlaps(Boxa boxas, int op, int range, float min_overlap, float max_ratio, PointerByReference pnamap);
/**
* Original signature :
* l_ok boxOverlapDistance(BOX*, BOX*, l_int32*, l_int32*)
*/
public static native int boxOverlapDistance(Box box1, Box box2, IntBuffer ph_ovl, IntBuffer pv_ovl);
/**
* Original signature :
* l_ok boxSeparationDistance(BOX*, BOX*, l_int32*, l_int32*)
*/
public static native int boxSeparationDistance(Box box1, Box box2, IntBuffer ph_sep, IntBuffer pv_sep);
/**
* Original signature :
* l_ok boxCompareSize(BOX*, BOX*, l_int32, l_int32*)
*/
public static native int boxCompareSize(Box box1, Box box2, int type, IntBuffer prel);
/**
* Original signature :
* l_ok boxContainsPt(BOX*, l_float32, l_float32, l_int32*)
*/
public static native int boxContainsPt(Box box, float x, float y, IntBuffer pcontains);
/**
* Original signature :
* BOX* boxaGetNearestToPt(BOXA*, l_int32, l_int32)
*/
public static native Box boxaGetNearestToPt(Boxa boxa, int x, int y);
/**
* Original signature :
* BOX* boxaGetNearestToLine(BOXA*, l_int32, l_int32)
*/
public static native Box boxaGetNearestToLine(Boxa boxa, int x, int y);
/**
* Original signature :
* l_ok boxaFindNearestBoxes(BOXA*, l_int32, l_int32, NUMAA**, NUMAA**)
*/
public static native int boxaFindNearestBoxes(Boxa boxa, int dist_select, int range, PointerByReference pnaaindex, PointerByReference pnaadist);
/**
* Original signature :
* l_ok boxaGetNearestByDirection(BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32*, l_int32*)
*/
public static native int boxaGetNearestByDirection(Boxa boxa, int i, int dir, int dist_select, int range, IntBuffer pindex, IntBuffer pdist);
/**
* Original signature :
* l_ok boxGetCenter(BOX*, l_float32*, l_float32*)
*/
public static native int boxGetCenter(Box box, FloatBuffer pcx, FloatBuffer pcy);
/**
* Original signature :
* l_ok boxIntersectByLine(BOX*, l_int32, l_int32, l_float32, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxIntersectByLine(Box box, int x, int y, float slope, IntBuffer px1, IntBuffer py1, IntBuffer px2, IntBuffer py2, IntBuffer pn);
/**
* Original signature :
* BOX* boxClipToRectangle(BOX*, l_int32, l_int32)
*/
public static native Box boxClipToRectangle(Box box, int wi, int hi);
/**
* Original signature :
* l_ok boxClipToRectangleParams(BOX*, l_int32, l_int32, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxClipToRectangleParams(Box box, int w, int h, IntBuffer pxstart, IntBuffer pystart, IntBuffer pxend, IntBuffer pyend, IntBuffer pbw, IntBuffer pbh);
/**
* Original signature :
* BOX* boxRelocateOneSide(BOX*, BOX*, l_int32, l_int32)
*/
public static native Box boxRelocateOneSide(Box boxd, Box boxs, int loc, int sideflag);
/**
* Original signature :
* BOXA* boxaAdjustSides(BOXA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Boxa boxaAdjustSides(Boxa boxas, int delleft, int delright, int deltop, int delbot);
/**
* Original signature :
* l_ok boxaAdjustBoxSides(BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int boxaAdjustBoxSides(Boxa boxa, int index, int delleft, int delright, int deltop, int delbot);
/**
* Original signature :
* BOX* boxAdjustSides(BOX*, BOX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Box boxAdjustSides(Box boxd, Box boxs, int delleft, int delright, int deltop, int delbot);
/**
* Original signature :
* BOXA* boxaSetSide(BOXA*, BOXA*, l_int32, l_int32, l_int32)
*/
public static native Boxa boxaSetSide(Boxa boxad, Boxa boxas, int side, int val, int thresh);
/**
* Original signature :
* l_ok boxSetSide(BOX*, l_int32, l_int32, l_int32)
*/
public static native int boxSetSide(Box boxs, int side, int val, int thresh);
/**
* Original signature :
* BOXA* boxaAdjustWidthToTarget(BOXA*, BOXA*, l_int32, l_int32, l_int32)
*/
public static native Boxa boxaAdjustWidthToTarget(Boxa boxad, Boxa boxas, int sides, int target, int thresh);
/**
* Original signature :
* BOXA* boxaAdjustHeightToTarget(BOXA*, BOXA*, l_int32, l_int32, l_int32)
*/
public static native Boxa boxaAdjustHeightToTarget(Boxa boxad, Boxa boxas, int sides, int target, int thresh);
/**
* Original signature : l_ok boxEqual(BOX*, BOX*, l_int32*)
*/
public static native int boxEqual(Box box1, Box box2, IntBuffer psame);
/**
* Original signature :
* l_ok boxaEqual(BOXA*, BOXA*, l_int32, NUMA**, l_int32*)
*/
public static native int boxaEqual(Boxa boxa1, Boxa boxa2, int maxdist, PointerByReference pnaindex, IntBuffer psame);
/**
* Original signature :
* l_ok boxaEqual(BOXA*, BOXA*, l_int32, NUMA**, l_int32*)
*/
public static native int boxaEqual(Boxa boxa1, Boxa boxa2, int maxdist, PointerByReference pnaindex, IntByReference psame);
/**
* Original signature :
* l_ok boxSimilar(BOX*, BOX*, l_int32, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int boxSimilar(Box box1, Box box2, int leftdiff, int rightdiff, int topdiff, int botdiff, IntBuffer psimilar);
/**
* Original signature :
* l_ok boxaSimilar(BOXA*, BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32*, NUMA**)
*/
public static native int boxaSimilar(Boxa boxa1, Boxa boxa2, int leftdiff, int rightdiff, int topdiff, int botdiff, int debug, IntBuffer psimilar, PointerByReference pnasim);
/**
* Original signature :
* l_ok boxaSimilar(BOXA*, BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32*, NUMA**)
*/
public static native int boxaSimilar(Boxa boxa1, Boxa boxa2, int leftdiff, int rightdiff, int topdiff, int botdiff, int debug, IntByReference psimilar, PointerByReference pnasim);
/**
* Original signature :
* l_ok boxaJoin(BOXA*, BOXA*, l_int32, l_int32)
*/
public static native int boxaJoin(Boxa boxad, Boxa boxas, int istart, int iend);
/**
* Original signature :
* l_ok boxaaJoin(BOXAA*, BOXAA*, l_int32, l_int32)
*/
public static native int boxaaJoin(Boxaa baad, Boxaa baas, int istart, int iend);
/**
* Original signature :
* l_ok boxaSplitEvenOdd(BOXA*, l_int32, BOXA**, BOXA**)
*/
public static native int boxaSplitEvenOdd(Boxa boxa, int fillflag, PointerByReference pboxae, PointerByReference pboxao);
/**
* Original signature :
* BOXA* boxaMergeEvenOdd(BOXA*, BOXA*, l_int32)
*/
public static native Boxa boxaMergeEvenOdd(Boxa boxae, Boxa boxao, int fillflag);
/**
* Original signature :
* BOXA* boxaTransform(BOXA*, l_int32, l_int32, l_float32, l_float32)
*/
public static native Boxa boxaTransform(Boxa boxas, int shiftx, int shifty, float scalex, float scaley);
/**
* Original signature :
* BOX* boxTransform(BOX*, l_int32, l_int32, l_float32, l_float32)
*/
public static native Box boxTransform(Box box, int shiftx, int shifty, float scalex, float scaley);
/**
* Original signature :
* BOXA* boxaTransformOrdered(BOXA*, l_int32, l_int32, l_float32, l_float32, l_int32, l_int32, l_float32, l_int32)
*/
public static native Boxa boxaTransformOrdered(Boxa boxas, int shiftx, int shifty, float scalex, float scaley, int xcen, int ycen, float angle, int order);
/**
* Original signature :
* BOX* boxTransformOrdered(BOX*, l_int32, l_int32, l_float32, l_float32, l_int32, l_int32, l_float32, l_int32)
*/
public static native Box boxTransformOrdered(Box boxs, int shiftx, int shifty, float scalex, float scaley, int xcen, int ycen, float angle, int order);
/**
* Original signature :
* BOXA* boxaRotateOrth(BOXA*, l_int32, l_int32, l_int32)
*/
public static native Boxa boxaRotateOrth(Boxa boxas, int w, int h, int rotation);
/**
* Original signature :
* BOX* boxRotateOrth(BOX*, l_int32, l_int32, l_int32)
*/
public static native Box boxRotateOrth(Box box, int w, int h, int rotation);
/**
* Original signature :
* BOXA* boxaShiftWithPta(BOXA*, PTA*, l_int32)
*/
public static native Boxa boxaShiftWithPta(Boxa boxas, Pta pta, int dir);
/**
* Original signature :
* BOXA* boxaSort(BOXA*, l_int32, l_int32, NUMA**)
*/
public static native Boxa boxaSort(Boxa boxas, int sorttype, int sortorder, PointerByReference pnaindex);
/**
* Original signature :
* BOXA* boxaBinSort(BOXA*, l_int32, l_int32, NUMA**)
*/
public static native Boxa boxaBinSort(Boxa boxas, int sorttype, int sortorder, PointerByReference pnaindex);
/**
* Original signature : BOXA* boxaSortByIndex(BOXA*, NUMA*)
*/
public static native Boxa boxaSortByIndex(Boxa boxas, Numa naindex);
/**
* Original signature :
* BOXAA* boxaSort2d(BOXA*, NUMAA**, l_int32, l_int32, l_int32)
*/
public static native Boxaa boxaSort2d(Boxa boxas, PointerByReference pnaad, int delta1, int delta2, int minh1);
/**
* Original signature : BOXAA* boxaSort2dByIndex(BOXA*, NUMAA*)
*/
public static native Boxaa boxaSort2dByIndex(Boxa boxas, Numaa naa);
/**
* Original signature :
* l_ok boxaExtractAsNuma(BOXA*, NUMA**, NUMA**, NUMA**, NUMA**, NUMA**, NUMA**, l_int32)
*/
public static native int boxaExtractAsNuma(Boxa boxa, PointerByReference pnal, PointerByReference pnat, PointerByReference pnar, PointerByReference pnab, PointerByReference pnaw, PointerByReference pnah, int keepinvalid);
/**
* Original signature :
* l_ok boxaExtractAsPta(BOXA*, PTA**, PTA**, PTA**, PTA**, PTA**, PTA**, l_int32)
*/
public static native int boxaExtractAsPta(Boxa boxa, PointerByReference pptal, PointerByReference pptat, PointerByReference pptar, PointerByReference pptab, PointerByReference pptaw, PointerByReference pptah, int keepinvalid);
/**
* Original signature : PTA* boxaExtractCorners(BOXA*, l_int32)
*/
public static native Pta boxaExtractCorners(Boxa boxa, int loc);
/**
* Original signature :
* l_ok boxaGetRankVals(BOXA*, l_float32, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxaGetRankVals(Boxa boxa, float fract, IntBuffer px, IntBuffer py, IntBuffer pr, IntBuffer pb, IntBuffer pw, IntBuffer ph);
/**
* Original signature :
* l_ok boxaGetMedianVals(BOXA*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxaGetMedianVals(Boxa boxa, IntBuffer px, IntBuffer py, IntBuffer pr, IntBuffer pb, IntBuffer pw, IntBuffer ph);
/**
* Original signature :
* l_ok boxaGetAverageSize(BOXA*, l_float32*, l_float32*)
*/
public static native int boxaGetAverageSize(Boxa boxa, FloatBuffer pw, FloatBuffer ph);
/**
* Original signature :
* l_ok boxaaGetExtent(BOXAA*, l_int32*, l_int32*, BOX**, BOXA**)
*/
public static native int boxaaGetExtent(Boxaa baa, IntBuffer pw, IntBuffer ph, PointerByReference pbox, PointerByReference pboxa);
/**
* Original signature :
* l_ok boxaaGetExtent(BOXAA*, l_int32*, l_int32*, BOX**, BOXA**)
*/
public static native int boxaaGetExtent(Boxaa baa, IntByReference pw, IntByReference ph, PointerByReference pbox, PointerByReference pboxa);
/**
* Original signature :
* BOXA* boxaaFlattenToBoxa(BOXAA*, NUMA**, l_int32)
*/
public static native Boxa boxaaFlattenToBoxa(Boxaa baa, PointerByReference pnaindex, int copyflag);
/**
* Original signature :
* BOXA* boxaaFlattenAligned(BOXAA*, l_int32, BOX*, l_int32)
*/
public static native Boxa boxaaFlattenAligned(Boxaa baa, int num, Box fillerbox, int copyflag);
/**
* Original signature :
* BOXAA* boxaEncapsulateAligned(BOXA*, l_int32, l_int32)
*/
public static native Boxaa boxaEncapsulateAligned(Boxa boxa, int num, int copyflag);
/**
* Original signature : BOXAA* boxaaTranspose(BOXAA*)
*/
public static native Boxaa boxaaTranspose(Boxaa baas);
/**
* Original signature :
* l_ok boxaaAlignBox(BOXAA*, BOX*, l_int32, l_int32*)
*/
public static native int boxaaAlignBox(Boxaa baa, Box box, int delta, IntBuffer pindex);
/**
* Original signature :
* PIX* pixMaskConnComp(PIX*, l_int32, BOXA**)
*/
public static native Pix pixMaskConnComp(Pix pixs, int connectivity, PointerByReference pboxa);
/**
* Original signature :
* PIX* pixMaskBoxa(PIX*, PIX*, BOXA*, l_int32)
*/
public static native Pix pixMaskBoxa(Pix pixd, Pix pixs, Boxa boxa, int op);
/**
* Original signature :
* PIX* pixPaintBoxa(PIX*, BOXA*, l_uint32)
*/
public static native Pix pixPaintBoxa(Pix pixs, Boxa boxa, int val);
/**
* Original signature :
* PIX* pixSetBlackOrWhiteBoxa(PIX*, BOXA*, l_int32)
*/
public static native Pix pixSetBlackOrWhiteBoxa(Pix pixs, Boxa boxa, int op);
/**
* Original signature : PIX* pixPaintBoxaRandom(PIX*, BOXA*)
*/
public static native Pix pixPaintBoxaRandom(Pix pixs, Boxa boxa);
/**
* Original signature :
* PIX* pixBlendBoxaRandom(PIX*, BOXA*, l_float32)
*/
public static native Pix pixBlendBoxaRandom(Pix pixs, Boxa boxa, float fract);
/**
* Original signature :
* PIX* pixDrawBoxa(PIX*, BOXA*, l_int32, l_uint32)
*/
public static native Pix pixDrawBoxa(Pix pixs, Boxa boxa, int width, int val);
/**
* Original signature :
* PIX* pixDrawBoxaRandom(PIX*, BOXA*, l_int32)
*/
public static native Pix pixDrawBoxaRandom(Pix pixs, Boxa boxa, int width);
/**
* Original signature :
* PIX* boxaaDisplay(PIX*, BOXAA*, l_int32, l_int32, l_uint32, l_uint32, l_int32, l_int32)
*/
public static native Pix boxaaDisplay(Pix pixs, Boxaa baa, int linewba, int linewb, int colorba, int colorb, int w, int h);
/**
* Original signature :
* PIXA* pixaDisplayBoxaa(PIXA*, BOXAA*, l_int32, l_int32)
*/
public static native Pixa pixaDisplayBoxaa(Pixa pixas, Boxaa baa, int colorflag, int width);
/**
* Original signature :
* BOXA* pixSplitIntoBoxa(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Boxa pixSplitIntoBoxa(Pix pixs, int minsum, int skipdist, int delta, int maxbg, int maxcomps, int remainder);
/**
* Original signature :
* BOXA* pixSplitComponentIntoBoxa(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Boxa pixSplitComponentIntoBoxa(Pix pix, Box box, int minsum, int skipdist, int delta, int maxbg, int maxcomps, int remainder);
/**
* Original signature :
* BOXA* makeMosaicStrips(l_int32, l_int32, l_int32, l_int32)
*/
public static native Boxa makeMosaicStrips(int w, int h, int direction, int size);
/**
* Original signature :
* l_ok boxaCompareRegions(BOXA*, BOXA*, l_int32, l_int32*, l_float32*, l_float32*, PIX**)
*/
public static native int boxaCompareRegions(Boxa boxa1, Boxa boxa2, int areathresh, IntBuffer pnsame, FloatBuffer pdiffarea, FloatBuffer pdiffxor, PointerByReference ppixdb);
/**
* Original signature :
* l_ok boxaCompareRegions(BOXA*, BOXA*, l_int32, l_int32*, l_float32*, l_float32*, PIX**)
*/
public static native int boxaCompareRegions(Boxa boxa1, Boxa boxa2, int areathresh, IntByReference pnsame, FloatByReference pdiffarea, FloatByReference pdiffxor, PointerByReference ppixdb);
/**
* Original signature :
* BOX* pixSelectLargeULComp(PIX*, l_float32, l_int32, l_int32)
*/
public static native Box pixSelectLargeULComp(Pix pixs, float areaslop, int yslop, int connectivity);
/**
* Original signature :
* BOX* boxaSelectLargeULBox(BOXA*, l_float32, l_int32)
*/
public static native Box boxaSelectLargeULBox(Boxa boxas, float areaslop, int yslop);
/**
* Original signature :
* BOXA* boxaSelectRange(BOXA*, l_int32, l_int32, l_int32)
*/
public static native Boxa boxaSelectRange(Boxa boxas, int first, int last, int copyflag);
/**
* Original signature :
* BOXAA* boxaaSelectRange(BOXAA*, l_int32, l_int32, l_int32)
*/
public static native Boxaa boxaaSelectRange(Boxaa baas, int first, int last, int copyflag);
/**
* Original signature :
* BOXA* boxaSelectBySize(BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32*)
*/
public static native Boxa boxaSelectBySize(Boxa boxas, int width, int height, int type, int relation, IntBuffer pchanged);
/**
* Original signature :
* NUMA* boxaMakeSizeIndicator(BOXA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Numa boxaMakeSizeIndicator(Boxa boxa, int width, int height, int type, int relation);
/**
* Original signature :
* BOXA* boxaSelectByArea(BOXA*, l_int32, l_int32, l_int32*)
*/
public static native Boxa boxaSelectByArea(Boxa boxas, int area, int relation, IntBuffer pchanged);
/**
* Original signature :
* NUMA* boxaMakeAreaIndicator(BOXA*, l_int32, l_int32)
*/
public static native Numa boxaMakeAreaIndicator(Boxa boxa, int area, int relation);
/**
* Original signature :
* BOXA* boxaSelectByWHRatio(BOXA*, l_float32, l_int32, l_int32*)
*/
public static native Boxa boxaSelectByWHRatio(Boxa boxas, float ratio, int relation, IntBuffer pchanged);
/**
* Original signature :
* NUMA* boxaMakeWHRatioIndicator(BOXA*, l_float32, l_int32)
*/
public static native Numa boxaMakeWHRatioIndicator(Boxa boxa, float ratio, int relation);
/**
* Original signature :
* BOXA* boxaSelectWithIndicator(BOXA*, NUMA*, l_int32*)
*/
public static native Boxa boxaSelectWithIndicator(Boxa boxas, Numa na, IntBuffer pchanged);
/**
* Original signature : BOXA* boxaPermutePseudorandom(BOXA*)
*/
public static native Boxa boxaPermutePseudorandom(Boxa boxas);
/**
* Original signature : BOXA* boxaPermuteRandom(BOXA*, BOXA*)
*/
public static native Boxa boxaPermuteRandom(Boxa boxad, Boxa boxas);
/**
* Original signature :
* l_ok boxaSwapBoxes(BOXA*, l_int32, l_int32)
*/
public static native int boxaSwapBoxes(Boxa boxa, int i, int j);
/**
* Original signature : PTA* boxaConvertToPta(BOXA*, l_int32)
*/
public static native Pta boxaConvertToPta(Boxa boxa, int ncorners);
/**
* Original signature : BOXA* ptaConvertToBoxa(PTA*, l_int32)
*/
public static native Boxa ptaConvertToBoxa(Pta pta, int ncorners);
/**
* Original signature : PTA* boxConvertToPta(BOX*, l_int32)
*/
public static native Pta boxConvertToPta(Box box, int ncorners);
/**
* Original signature : BOX* ptaConvertToBox(PTA*)
*/
public static native Box ptaConvertToBox(Pta pta);
/**
* Original signature :
* l_ok boxaGetExtent(BOXA*, l_int32*, l_int32*, BOX**)
*/
public static native int boxaGetExtent(Boxa boxa, IntBuffer pw, IntBuffer ph, PointerByReference pbox);
/**
* Original signature :
* l_ok boxaGetExtent(BOXA*, l_int32*, l_int32*, BOX**)
*/
public static native int boxaGetExtent(Boxa boxa, IntByReference pw, IntByReference ph, PointerByReference pbox);
/**
* Original signature :
* l_ok boxaGetCoverage(BOXA*, l_int32, l_int32, l_int32, l_float32*)
*/
public static native int boxaGetCoverage(Boxa boxa, int wc, int hc, int exactflag, FloatBuffer pfract);
/**
* Original signature :
* l_ok boxaaSizeRange(BOXAA*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxaaSizeRange(Boxaa baa, IntBuffer pminw, IntBuffer pminh, IntBuffer pmaxw, IntBuffer pmaxh);
/**
* Original signature :
* l_ok boxaSizeRange(BOXA*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxaSizeRange(Boxa boxa, IntBuffer pminw, IntBuffer pminh, IntBuffer pmaxw, IntBuffer pmaxh);
/**
* Original signature :
* l_ok boxaLocationRange(BOXA*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int boxaLocationRange(Boxa boxa, IntBuffer pminx, IntBuffer pminy, IntBuffer pmaxx, IntBuffer pmaxy);
/**
* Original signature :
* l_ok boxaGetSizes(BOXA*, NUMA**, NUMA**)
*/
public static native int boxaGetSizes(Boxa boxa, PointerByReference pnaw, PointerByReference pnah);
/**
* Original signature : l_ok boxaGetArea(BOXA*, l_int32*)
*/
public static native int boxaGetArea(Boxa boxa, IntBuffer parea);
/**
* Original signature :
* PIX* boxaDisplayTiled(BOXA*, PIXA*, l_int32, l_int32, l_int32, l_int32, l_float32, l_int32, l_int32, l_int32)
*/
public static native Pix boxaDisplayTiled(Boxa boxas, Pixa pixa, int first, int last, int maxwidth, int linewidth, float scalefactor, int background, int spacing, int border);
/**
* Original signature :
* BOXA* boxaSmoothSequenceMedian(BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Boxa boxaSmoothSequenceMedian(Boxa boxas, int halfwin, int subflag, int maxdiff, int extrapixels, int debug);
/**
* Original signature :
* BOXA* boxaWindowedMedian(BOXA*, l_int32, l_int32)
*/
public static native Boxa boxaWindowedMedian(Boxa boxas, int halfwin, int debug);
/**
* Original signature :
* BOXA* boxaModifyWithBoxa(BOXA*, BOXA*, l_int32, l_int32, l_int32)
*/
public static native Boxa boxaModifyWithBoxa(Boxa boxas, Boxa boxam, int subflag, int maxdiff, int extrapixels);
/**
* Original signature :
* BOXA* boxaConstrainSize(BOXA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Boxa boxaConstrainSize(Boxa boxas, int width, int widthflag, int height, int heightflag);
/**
* Original signature :
* BOXA* boxaReconcileEvenOddHeight(BOXA*, l_int32, l_int32, l_int32, l_float32, l_int32)
*/
public static native Boxa boxaReconcileEvenOddHeight(Boxa boxas, int sides, int delh, int op, float factor, int start);
/**
* Original signature :
* BOXA* boxaReconcilePairWidth(BOXA*, l_int32, l_int32, l_float32, NUMA*)
*/
public static native Boxa boxaReconcilePairWidth(Boxa boxas, int delw, int op, float factor, Numa na);
/**
* Original signature :
* l_ok boxaSizeConsistency1(BOXA*, l_int32, l_float32, l_float32, l_float32*, l_float32*, l_int32*)
*/
public static native int boxaSizeConsistency1(Boxa boxas, int type, float threshp, float threshm, FloatBuffer pfvarp, FloatBuffer pfvarm, IntBuffer psame);
/**
* Original signature :
* l_ok boxaSizeConsistency2(BOXA*, l_float32*, l_float32*, l_int32)
*/
public static native int boxaSizeConsistency2(Boxa boxas, FloatBuffer pfdevw, FloatBuffer pfdevh, int debug);
/**
* Original signature :
* BOXA* boxaReconcileAllByMedian(BOXA*, l_int32, l_int32, l_int32, l_int32, PIXA*)
*/
public static native Boxa boxaReconcileAllByMedian(Boxa boxas, int select1, int select2, int thresh, int extra, Pixa pixadb);
/**
* Original signature :
* BOXA* boxaReconcileSidesByMedian(BOXA*, l_int32, l_int32, l_int32, PIXA*)
*/
public static native Boxa boxaReconcileSidesByMedian(Boxa boxas, int select, int thresh, int extra, Pixa pixadb);
/**
* Original signature :
* BOXA* boxaReconcileSizeByMedian(BOXA*, l_int32, l_float32, l_float32, l_float32, NUMA**, NUMA**, l_float32*)
*/
public static native Boxa boxaReconcileSizeByMedian(Boxa boxas, int type, float dfract, float sfract, float factor, PointerByReference pnadelw, PointerByReference pnadelh, FloatBuffer pratiowh);
/**
* Original signature :
* BOXA* boxaReconcileSizeByMedian(BOXA*, l_int32, l_float32, l_float32, l_float32, NUMA**, NUMA**, l_float32*)
*/
public static native Boxa boxaReconcileSizeByMedian(Boxa boxas, int type, float dfract, float sfract, float factor, PointerByReference pnadelw, PointerByReference pnadelh, FloatByReference pratiowh);
/**
* Original signature :
* l_ok boxaPlotSides(BOXA*, const char*, NUMA**, NUMA**, NUMA**, NUMA**, PIX**)
*/
public static native int boxaPlotSides(Boxa boxa, String plotname, PointerByReference pnal, PointerByReference pnat, PointerByReference pnar, PointerByReference pnab, PointerByReference ppixd);
/**
* Original signature :
* l_ok boxaPlotSides(BOXA*, const char*, NUMA**, NUMA**, NUMA**, NUMA**, PIX**)
*/
public static native int boxaPlotSides(Boxa boxa, Pointer plotname, PointerByReference pnal, PointerByReference pnat, PointerByReference pnar, PointerByReference pnab, PointerByReference ppixd);
/**
* Original signature :
* l_ok boxaPlotSizes(BOXA*, const char*, NUMA**, NUMA**, PIX**)
*/
public static native int boxaPlotSizes(Boxa boxa, String plotname, PointerByReference pnaw, PointerByReference pnah, PointerByReference ppixd);
/**
* Original signature :
* l_ok boxaPlotSizes(BOXA*, const char*, NUMA**, NUMA**, PIX**)
*/
public static native int boxaPlotSizes(Boxa boxa, Pointer plotname, PointerByReference pnaw, PointerByReference pnah, PointerByReference ppixd);
/**
* Original signature :
* BOXA* boxaFillSequence(BOXA*, l_int32, l_int32)
*/
public static native Boxa boxaFillSequence(Boxa boxas, int useflag, int debug);
/**
* Original signature :
* l_ok boxaSizeVariation(BOXA*, l_int32, l_float32*, l_float32*, l_float32*, l_float32*)
*/
public static native int boxaSizeVariation(Boxa boxa, int type, FloatBuffer pdel_evenodd, FloatBuffer prms_even, FloatBuffer prms_odd, FloatBuffer prms_all);
/**
* Original signature :
* l_ok boxaMedianDimensions(BOXA*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, NUMA**, NUMA**)
*/
public static native int boxaMedianDimensions(Boxa boxas, IntBuffer pmedw, IntBuffer pmedh, IntBuffer pmedwe, IntBuffer pmedwo, IntBuffer pmedhe, IntBuffer pmedho, PointerByReference pnadelw, PointerByReference pnadelh);
/**
* Original signature :
* l_ok boxaMedianDimensions(BOXA*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, NUMA**, NUMA**)
*/
public static native int boxaMedianDimensions(Boxa boxas, IntByReference pmedw, IntByReference pmedh, IntByReference pmedwe, IntByReference pmedwo, IntByReference pmedhe, IntByReference pmedho, PointerByReference pnadelw, PointerByReference pnadelh);
/**
* Original signature : L_BYTEA* l_byteaCreate(size_t)
*/
public static native L_Bytea l_byteaCreate(NativeSize nbytes);
/**
* Original signature :
* L_BYTEA* l_byteaInitFromMem(const l_uint8*, size_t)
*/
public static native L_Bytea l_byteaInitFromMem(ByteBuffer data, NativeSize size);
/**
* Original signature :
* L_BYTEA* l_byteaInitFromFile(const char*)
*/
public static native L_Bytea l_byteaInitFromFile(String fname);
/**
* Original signature : L_BYTEA* l_byteaInitFromStream(FILE*)
*/
public static native L_Bytea l_byteaInitFromStream(FILE fp);
/**
* Original signature : L_BYTEA* l_byteaCopy(L_BYTEA*, l_int32)
*/
public static native L_Bytea l_byteaCopy(L_Bytea bas, int copyflag);
/**
* Original signature : void l_byteaDestroy(L_BYTEA**)
*/
public static native void l_byteaDestroy(PointerByReference pba);
/**
* Original signature : size_t l_byteaGetSize(L_BYTEA*)
*/
public static native NativeSize l_byteaGetSize(L_Bytea ba);
/**
* Original signature :
* l_uint8* l_byteaGetData(L_BYTEA*, size_t*)
*/
public static native Pointer l_byteaGetData(L_Bytea ba, NativeSizeByReference psize);
/**
* Original signature :
* l_uint8* l_byteaCopyData(L_BYTEA*, size_t*)
*/
public static native Pointer l_byteaCopyData(L_Bytea ba, NativeSizeByReference psize);
/**
* Original signature :
* l_ok l_byteaAppendData(L_BYTEA*, const l_uint8*, size_t)
*/
public static native int l_byteaAppendData(L_Bytea ba, ByteBuffer newdata, NativeSize newbytes);
/**
* Original signature :
* l_ok l_byteaAppendString(L_BYTEA*, const char*)
*/
public static native int l_byteaAppendString(L_Bytea ba, String str);
/**
* Original signature : l_ok l_byteaJoin(L_BYTEA*, L_BYTEA**)
*/
public static native int l_byteaJoin(L_Bytea ba1, PointerByReference pba2);
/**
* Original signature :
* l_ok l_byteaSplit(L_BYTEA*, size_t, L_BYTEA**)
*/
public static native int l_byteaSplit(L_Bytea ba1, NativeSize splitloc, PointerByReference pba2);
/**
* Original signature :
* l_ok l_byteaFindEachSequence(L_BYTEA*, const l_uint8*, size_t, L_DNA**)
*/
public static native int l_byteaFindEachSequence(L_Bytea ba, ByteBuffer sequence, NativeSize seqlen, PointerByReference pda);
/**
* Original signature :
* l_ok l_byteaFindEachSequence(L_BYTEA*, const l_uint8*, size_t, L_DNA**)
*/
public static native int l_byteaFindEachSequence(L_Bytea ba, Pointer sequence, NativeSize seqlen, PointerByReference pda);
/**
* Original signature :
* l_ok l_byteaWrite(const char*, L_BYTEA*, size_t, size_t)
*/
public static native int l_byteaWrite(String fname, L_Bytea ba, NativeSize startloc, NativeSize nbytes);
/**
* Original signature :
* l_ok l_byteaWriteStream(FILE*, L_BYTEA*, size_t, size_t)
*/
public static native int l_byteaWriteStream(FILE fp, L_Bytea ba, NativeSize startloc, NativeSize nbytes);
/**
* Original signature : CCBORDA* ccbaCreate(PIX*, l_int32)
*/
public static native CCBorda ccbaCreate(Pix pixs, int n);
/**
* Original signature : void ccbaDestroy(CCBORDA**)
*/
public static native void ccbaDestroy(PointerByReference pccba);
/**
* Original signature : CCBORD* ccbCreate(PIX*)
*/
public static native CCBord ccbCreate(Pix pixs);
/**
* Original signature : void ccbDestroy(CCBORD**)
*/
public static native void ccbDestroy(PointerByReference pccb);
/**
* Original signature : l_ok ccbaAddCcb(CCBORDA*, CCBORD*)
*/
public static native int ccbaAddCcb(CCBorda ccba, CCBord ccb);
/**
* Original signature : l_int32 ccbaGetCount(CCBORDA*)
*/
public static native int ccbaGetCount(CCBorda ccba);
/**
* Original signature : CCBORD* ccbaGetCcb(CCBORDA*, l_int32)
*/
public static native CCBord ccbaGetCcb(CCBorda ccba, int index);
/**
* Original signature : CCBORDA* pixGetAllCCBorders(PIX*)
*/
public static native CCBorda pixGetAllCCBorders(Pix pixs);
/**
* Original signature : PTAA* pixGetOuterBordersPtaa(PIX*)
*/
public static native Ptaa pixGetOuterBordersPtaa(Pix pixs);
/**
* Original signature :
* l_ok pixGetOuterBorder(CCBORD*, PIX*, BOX*)
*/
public static native int pixGetOuterBorder(CCBord ccb, Pix pixs, Box box);
/**
* Original signature : l_ok ccbaGenerateGlobalLocs(CCBORDA*)
*/
public static native int ccbaGenerateGlobalLocs(CCBorda ccba);
/**
* Original signature : l_ok ccbaGenerateStepChains(CCBORDA*)
*/
public static native int ccbaGenerateStepChains(CCBorda ccba);
/**
* Original signature :
* l_ok ccbaStepChainsToPixCoords(CCBORDA*, l_int32)
*/
public static native int ccbaStepChainsToPixCoords(CCBorda ccba, int coordtype);
/**
* Original signature :
* l_ok ccbaGenerateSPGlobalLocs(CCBORDA*, l_int32)
*/
public static native int ccbaGenerateSPGlobalLocs(CCBorda ccba, int ptsflag);
/**
* Original signature : l_ok ccbaGenerateSinglePath(CCBORDA*)
*/
public static native int ccbaGenerateSinglePath(CCBorda ccba);
/**
* Original signature :
* PTA* getCutPathForHole(PIX*, PTA*, BOX*, l_int32*, l_int32*)
*/
public static native Pta getCutPathForHole(Pix pix, Pta pta, Box boxinner, IntBuffer pdir, IntBuffer plen);
/**
* Original signature : PIX* ccbaDisplayBorder(CCBORDA*)
*/
public static native Pix ccbaDisplayBorder(CCBorda ccba);
/**
* Original signature : PIX* ccbaDisplaySPBorder(CCBORDA*)
*/
public static native Pix ccbaDisplaySPBorder(CCBorda ccba);
/**
* Original signature : PIX* ccbaDisplayImage1(CCBORDA*)
*/
public static native Pix ccbaDisplayImage1(CCBorda ccba);
/**
* Original signature : PIX* ccbaDisplayImage2(CCBORDA*)
*/
public static native Pix ccbaDisplayImage2(CCBorda ccba);
/**
* Original signature : l_ok ccbaWrite(const char*, CCBORDA*)
*/
public static native int ccbaWrite(String filename, CCBorda ccba);
/**
* Original signature : l_ok ccbaWriteStream(FILE*, CCBORDA*)
*/
public static native int ccbaWriteStream(FILE fp, CCBorda ccba);
/**
* Original signature : CCBORDA* ccbaRead(const char*)
*/
public static native CCBorda ccbaRead(String filename);
/**
* Original signature : CCBORDA* ccbaReadStream(FILE*)
*/
public static native CCBorda ccbaReadStream(FILE fp);
/**
* Original signature :
* l_ok ccbaWriteSVG(const char*, CCBORDA*)
*/
public static native int ccbaWriteSVG(String filename, CCBorda ccba);
/**
* Original signature :
* char* ccbaWriteSVGString(const char*, CCBORDA*)
*/
public static native Pointer ccbaWriteSVGString(String filename, CCBorda ccba);
/**
* Original signature :
* PIXA* pixaThinConnected(PIXA*, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaThinConnected(Pixa pixas, int type, int connectivity, int maxiters);
/**
* Original signature :
* PIX* pixThinConnected(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixThinConnected(Pix pixs, int type, int connectivity, int maxiters);
/**
* Original signature :
* PIX* pixThinConnectedBySet(PIX*, l_int32, SELA*, l_int32)
*/
public static native Pix pixThinConnectedBySet(Pix pixs, int type, Sela sela, int maxiters);
/**
* Original signature :
* SELA* selaMakeThinSets(l_int32, l_int32)
*/
public static native Sela selaMakeThinSets(int index, int debug);
/**
* Original signature :
* l_ok pixFindCheckerboardCorners(PIX*, l_int32, l_int32, l_int32, PIX**, PTA**, PIXA*)
*/
public static native int pixFindCheckerboardCorners(Pix pixs, int size, int dilation, int nsels, PointerByReference ppix_corners, PointerByReference ppta_corners, Pixa pixadb);
/**
* Original signature :
* SELA* makeCheckerboardCornerSela(l_int32, l_int32, l_int32, PIXA*)
*/
public static native Sela makeCheckerboardCornerSela(int size, int dilation, int nsels, Pixa pixadb);
/**
* Original signature :
* l_ok jbCorrelation(const char*, l_float32, l_float32, l_int32, const char*, l_int32, l_int32, l_int32)
*/
public static native int jbCorrelation(String dirin, float thresh, float weight, int components, String rootname, int firstpage, int npages, int renderflag);
/**
* Original signature :
* l_ok jbRankHaus(const char*, l_int32, l_float32, l_int32, const char*, l_int32, l_int32, l_int32)
*/
public static native int jbRankHaus(String dirin, int size, float rank, int components, String rootname, int firstpage, int npages, int renderflag);
/**
* Original signature :
* JBCLASSER* jbWordsInTextlines(const char*, l_int32, l_int32, l_int32, l_float32, l_float32, NUMA**, l_int32, l_int32)
*/
public static native JbClasser jbWordsInTextlines(String dirin, int reduction, int maxwidth, int maxheight, float thresh, float weight, PointerByReference pnatl, int firstpage, int npages);
/**
* Original signature :
* JBCLASSER* jbWordsInTextlines(const char*, l_int32, l_int32, l_int32, l_float32, l_float32, NUMA**, l_int32, l_int32)
*/
public static native JbClasser jbWordsInTextlines(Pointer dirin, int reduction, int maxwidth, int maxheight, float thresh, float weight, PointerByReference pnatl, int firstpage, int npages);
/**
* Original signature :
* l_ok pixGetWordsInTextlines(PIX*, l_int32, l_int32, l_int32, l_int32, BOXA**, PIXA**, NUMA**)
*/
public static native int pixGetWordsInTextlines(Pix pixs, int minwidth, int minheight, int maxwidth, int maxheight, PointerByReference pboxad, PointerByReference ppixad, PointerByReference pnai);
/**
* Original signature :
* l_ok pixGetWordBoxesInTextlines(PIX*, l_int32, l_int32, l_int32, l_int32, BOXA**, NUMA**)
*/
public static native int pixGetWordBoxesInTextlines(Pix pixs, int minwidth, int minheight, int maxwidth, int maxheight, PointerByReference pboxad, PointerByReference pnai);
/**
* Original signature :
* l_ok pixFindWordAndCharacterBoxes(PIX*, BOX*, l_int32, BOXA**, BOXAA**, const char*)
*/
public static native int pixFindWordAndCharacterBoxes(Pix pixs, Box boxs, int thresh, PointerByReference pboxaw, PointerByReference pboxaac, String debugdir);
/**
* Original signature :
* l_ok pixFindWordAndCharacterBoxes(PIX*, BOX*, l_int32, BOXA**, BOXAA**, const char*)
*/
public static native int pixFindWordAndCharacterBoxes(Pix pixs, Box boxs, int thresh, PointerByReference pboxaw, PointerByReference pboxaac, Pointer debugdir);
/**
* Original signature :
* NUMAA* boxaExtractSortedPattern(BOXA*, NUMA*)
*/
public static native Numaa boxaExtractSortedPattern(Boxa boxa, Numa na);
/**
* Original signature :
* l_ok numaaCompareImagesByBoxes(NUMAA*, NUMAA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32*, l_int32)
*/
public static native int numaaCompareImagesByBoxes(Numaa naa1, Numaa naa2, int nperline, int nreq, int maxshiftx, int maxshifty, int delx, int dely, IntBuffer psame, int debugflag);
/**
* Original signature :
* l_ok pixColorContent(PIX*, l_int32, l_int32, l_int32, l_int32, PIX**, PIX**, PIX**)
*/
public static native int pixColorContent(Pix pixs, int rref, int gref, int bref, int mingray, PointerByReference ppixr, PointerByReference ppixg, PointerByReference ppixb);
/**
* Original signature :
* PIX* pixColorMagnitude(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixColorMagnitude(Pix pixs, int rref, int gref, int bref, int type);
/**
* Original signature :
* PIX* pixMaskOverColorPixels(PIX*, l_int32, l_int32)
*/
public static native Pix pixMaskOverColorPixels(Pix pixs, int threshdiff, int mindist);
/**
* Original signature :
* PIX* pixMaskOverGrayPixels(PIX*, l_int32, l_int32)
*/
public static native Pix pixMaskOverGrayPixels(Pix pixs, int maxlimit, int satlimit);
/**
* Original signature :
* PIX* pixMaskOverColorRange(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixMaskOverColorRange(Pix pixs, int rmin, int rmax, int gmin, int gmax, int bmin, int bmax);
/**
* Original signature :
* l_ok pixColorFraction(PIX*, l_int32, l_int32, l_int32, l_int32, l_float32*, l_float32*)
*/
public static native int pixColorFraction(Pix pixs, int darkthresh, int lightthresh, int diffthresh, int factor, FloatBuffer ppixfract, FloatBuffer pcolorfract);
/**
* Original signature :
* l_ok pixFindColorRegions(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_float32, l_float32*, PIX**, PIX**, PIXA*)
*/
public static native int pixFindColorRegions(Pix pixs, Pix pixm, int factor, int lightthresh, int darkthresh, int mindiff, int colordiff, float edgefract, FloatBuffer pcolorfract, PointerByReference pcolormask1, PointerByReference pcolormask2, Pixa pixadb);
/**
* Original signature :
* l_ok pixFindColorRegions(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_float32, l_float32*, PIX**, PIX**, PIXA*)
*/
public static native int pixFindColorRegions(Pix pixs, Pix pixm, int factor, int lightthresh, int darkthresh, int mindiff, int colordiff, float edgefract, FloatByReference pcolorfract, PointerByReference pcolormask1, PointerByReference pcolormask2, Pixa pixadb);
/**
* Original signature :
* l_ok pixNumSignificantGrayColors(PIX*, l_int32, l_int32, l_float32, l_int32, l_int32*)
*/
public static native int pixNumSignificantGrayColors(Pix pixs, int darkthresh, int lightthresh, float minfract, int factor, IntBuffer pncolors);
/**
* Original signature :
* l_ok pixColorsForQuantization(PIX*, l_int32, l_int32*, l_int32*, l_int32)
*/
public static native int pixColorsForQuantization(Pix pixs, int thresh, IntBuffer pncolors, IntBuffer piscolor, int debug);
/**
* Original signature :
* l_ok pixNumColors(PIX*, l_int32, l_int32*)
*/
public static native int pixNumColors(Pix pixs, int factor, IntBuffer pncolors);
/**
* Original signature : PIX* pixConvertRGBToCmap(PIX*)
*/
public static native Pix pixConvertRGBToCmap(Pix pixs);
/**
* Original signature :
* l_ok pixGetMostPopulatedColors(PIX*, l_int32, l_int32, l_int32, l_uint32**, PIXCMAP**)
*/
public static native int pixGetMostPopulatedColors(Pix pixs, int sigbits, int factor, int ncolors, PointerByReference parray, PointerByReference pcmap);
/**
* Original signature :
* PIX* pixSimpleColorQuantize(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixSimpleColorQuantize(Pix pixs, int sigbits, int factor, int ncolors);
/**
* Original signature :
* NUMA* pixGetRGBHistogram(PIX*, l_int32, l_int32)
*/
public static native Numa pixGetRGBHistogram(Pix pixs, int sigbits, int factor);
/**
* Original signature :
* l_ok makeRGBIndexTables(l_uint32**, l_uint32**, l_uint32**, l_int32)
*/
public static native int makeRGBIndexTables(PointerByReference prtab, PointerByReference pgtab, PointerByReference pbtab, int sigbits);
/**
* Original signature :
* l_ok getRGBFromIndex(l_uint32, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int getRGBFromIndex(int index, int sigbits, IntBuffer prval, IntBuffer pgval, IntBuffer pbval);
/**
* Original signature :
* l_ok pixHasHighlightRed(PIX*, l_int32, l_float32, l_float32, l_int32*, l_float32*, PIX**)
*/
public static native int pixHasHighlightRed(Pix pixs, int factor, float fract, float fthresh, IntBuffer phasred, FloatBuffer pratio, PointerByReference ppixdb);
/**
* Original signature :
* l_ok pixHasHighlightRed(PIX*, l_int32, l_float32, l_float32, l_int32*, l_float32*, PIX**)
*/
public static native int pixHasHighlightRed(Pix pixs, int factor, float fract, float fthresh, IntByReference phasred, FloatByReference pratio, PointerByReference ppixdb);
/**
* Original signature :
* PIX* pixColorGrayRegions(PIX*, BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixColorGrayRegions(Pix pixs, Boxa boxa, int type, int thresh, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixColorGray(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixColorGray(Pix pixs, Box box, int type, int thresh, int rval, int gval, int bval);
/**
* Original signature :
* PIX* pixColorGrayMasked(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixColorGrayMasked(Pix pixs, Pix pixm, int type, int thresh, int rval, int gval, int bval);
/**
* Original signature :
* PIX* pixSnapColor(PIX*, PIX*, l_uint32, l_uint32, l_int32)
*/
public static native Pix pixSnapColor(Pix pixd, Pix pixs, int srcval, int dstval, int diff);
/**
* Original signature :
* PIX* pixSnapColorCmap(PIX*, PIX*, l_uint32, l_uint32, l_int32)
*/
public static native Pix pixSnapColorCmap(Pix pixd, Pix pixs, int srcval, int dstval, int diff);
/**
* Original signature :
* PIX* pixLinearMapToTargetColor(PIX*, PIX*, l_uint32, l_uint32)
*/
public static native Pix pixLinearMapToTargetColor(Pix pixd, Pix pixs, int srcval, int dstval);
/**
* Original signature :
* l_ok pixelLinearMapToTargetColor(l_uint32, l_uint32, l_uint32, l_uint32*)
*/
public static native int pixelLinearMapToTargetColor(int scolor, int srcmap, int dstmap, IntBuffer pdcolor);
/**
* Original signature :
* PIX* pixShiftByComponent(PIX*, PIX*, l_uint32, l_uint32)
*/
public static native Pix pixShiftByComponent(Pix pixd, Pix pixs, int srcval, int dstval);
/**
* Original signature :
* l_ok pixelShiftByComponent(l_int32, l_int32, l_int32, l_uint32, l_uint32, l_uint32*)
*/
public static native int pixelShiftByComponent(int rval, int gval, int bval, int srcval, int dstval, IntBuffer ppixel);
/**
* Original signature :
* l_ok pixelFractionalShift(l_int32, l_int32, l_int32, l_float32, l_uint32*)
*/
public static native int pixelFractionalShift(int rval, int gval, int bval, float fraction, IntBuffer ppixel);
/**
* Original signature : PIXCMAP* pixcmapCreate(l_int32)
*/
public static native PixColormap pixcmapCreate(int depth);
/**
* Original signature :
* PIXCMAP* pixcmapCreateRandom(l_int32, l_int32, l_int32)
*/
public static native PixColormap pixcmapCreateRandom(int depth, int hasblack, int haswhite);
/**
* Original signature :
* PIXCMAP* pixcmapCreateLinear(l_int32, l_int32)
*/
public static native PixColormap pixcmapCreateLinear(int d, int nlevels);
/**
* Original signature : PIXCMAP* pixcmapCopy(const PIXCMAP*)
*/
public static native PixColormap pixcmapCopy(PixColormap cmaps);
/**
* Original signature : void pixcmapDestroy(PIXCMAP**)
*/
public static native void pixcmapDestroy(PointerByReference pcmap);
/**
* Original signature :
* l_ok pixcmapIsValid(const PIXCMAP*, l_int32*)
*/
public static native int pixcmapIsValid(PixColormap cmap, IntBuffer pvalid);
/**
* Original signature :
* l_ok pixcmapAddColor(PIXCMAP*, l_int32, l_int32, l_int32)
*/
public static native int pixcmapAddColor(PixColormap cmap, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixcmapAddRGBA(PIXCMAP*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixcmapAddRGBA(PixColormap cmap, int rval, int gval, int bval, int aval);
/**
* Original signature :
* l_ok pixcmapAddNewColor(PIXCMAP*, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixcmapAddNewColor(PixColormap cmap, int rval, int gval, int bval, IntBuffer pindex);
/**
* Original signature :
* l_ok pixcmapAddNearestColor(PIXCMAP*, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixcmapAddNearestColor(PixColormap cmap, int rval, int gval, int bval, IntBuffer pindex);
/**
* Original signature :
* l_ok pixcmapUsableColor(PIXCMAP*, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixcmapUsableColor(PixColormap cmap, int rval, int gval, int bval, IntBuffer pusable);
/**
* Original signature :
* l_ok pixcmapAddBlackOrWhite(PIXCMAP*, l_int32, l_int32*)
*/
public static native int pixcmapAddBlackOrWhite(PixColormap cmap, int color, IntBuffer pindex);
/**
* Original signature :
* l_ok pixcmapSetBlackAndWhite(PIXCMAP*, l_int32, l_int32)
*/
public static native int pixcmapSetBlackAndWhite(PixColormap cmap, int setblack, int setwhite);
/**
* Original signature : l_int32 pixcmapGetCount(const PIXCMAP*)
*/
public static native int pixcmapGetCount(PixColormap cmap);
/**
* Original signature : l_int32 pixcmapGetFreeCount(PIXCMAP*)
*/
public static native int pixcmapGetFreeCount(PixColormap cmap);
/**
* Original signature : l_int32 pixcmapGetDepth(PIXCMAP*)
*/
public static native int pixcmapGetDepth(PixColormap cmap);
/**
* Original signature :
* l_ok pixcmapGetMinDepth(PIXCMAP*, l_int32*)
*/
public static native int pixcmapGetMinDepth(PixColormap cmap, IntBuffer pmindepth);
/**
* Original signature : l_ok pixcmapClear(PIXCMAP*)
*/
public static native int pixcmapClear(PixColormap cmap);
/**
* Original signature :
* l_ok pixcmapGetColor(PIXCMAP*, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int pixcmapGetColor(PixColormap cmap, int index, IntBuffer prval, IntBuffer pgval, IntBuffer pbval);
/**
* Original signature :
* l_ok pixcmapGetColor32(PIXCMAP*, l_int32, l_uint32*)
*/
public static native int pixcmapGetColor32(PixColormap cmap, int index, IntBuffer pval32);
/**
* Original signature :
* l_ok pixcmapGetRGBA(PIXCMAP*, l_int32, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixcmapGetRGBA(PixColormap cmap, int index, IntBuffer prval, IntBuffer pgval, IntBuffer pbval, IntBuffer paval);
/**
* Original signature :
* l_ok pixcmapGetRGBA32(PIXCMAP*, l_int32, l_uint32*)
*/
public static native int pixcmapGetRGBA32(PixColormap cmap, int index, IntBuffer pval32);
/**
* Original signature :
* l_ok pixcmapResetColor(PIXCMAP*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixcmapResetColor(PixColormap cmap, int index, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixcmapSetAlpha(PIXCMAP*, l_int32, l_int32)
*/
public static native int pixcmapSetAlpha(PixColormap cmap, int index, int aval);
/**
* Original signature :
* l_int32 pixcmapGetIndex(PIXCMAP*, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixcmapGetIndex(PixColormap cmap, int rval, int gval, int bval, IntBuffer pindex);
/**
* Original signature :
* l_ok pixcmapHasColor(PIXCMAP*, l_int32*)
*/
public static native int pixcmapHasColor(PixColormap cmap, IntBuffer pcolor);
/**
* Original signature :
* l_ok pixcmapIsOpaque(PIXCMAP*, l_int32*)
*/
public static native int pixcmapIsOpaque(PixColormap cmap, IntBuffer popaque);
/**
* Original signature :
* l_ok pixcmapIsBlackAndWhite(PIXCMAP*, l_int32*)
*/
public static native int pixcmapIsBlackAndWhite(PixColormap cmap, IntBuffer pblackwhite);
/**
* Original signature :
* l_ok pixcmapCountGrayColors(PIXCMAP*, l_int32*)
*/
public static native int pixcmapCountGrayColors(PixColormap cmap, IntBuffer pngray);
/**
* Original signature :
* l_ok pixcmapGetRankIntensity(PIXCMAP*, l_float32, l_int32*)
*/
public static native int pixcmapGetRankIntensity(PixColormap cmap, float rankval, IntBuffer pindex);
/**
* Original signature :
* l_ok pixcmapGetNearestIndex(PIXCMAP*, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixcmapGetNearestIndex(PixColormap cmap, int rval, int gval, int bval, IntBuffer pindex);
/**
* Original signature :
* l_ok pixcmapGetNearestGrayIndex(PIXCMAP*, l_int32, l_int32*)
*/
public static native int pixcmapGetNearestGrayIndex(PixColormap cmap, int val, IntBuffer pindex);
/**
* Original signature :
* l_ok pixcmapGetDistanceToColor(PIXCMAP*, l_int32, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixcmapGetDistanceToColor(PixColormap cmap, int index, int rval, int gval, int bval, IntBuffer pdist);
/**
* Original signature :
* l_ok pixcmapGetRangeValues(PIXCMAP*, l_int32, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixcmapGetRangeValues(PixColormap cmap, int select, IntBuffer pminval, IntBuffer pmaxval, IntBuffer pminindex, IntBuffer pmaxindex);
/**
* Original signature : PIXCMAP* pixcmapGrayToColor(l_uint32)
*/
public static native PixColormap pixcmapGrayToColor(int color);
/**
* Original signature :
* PIXCMAP* pixcmapColorToGray(PIXCMAP*, l_float32, l_float32, l_float32)
*/
public static native PixColormap pixcmapColorToGray(PixColormap cmaps, float rwt, float gwt, float bwt);
/**
* Original signature : PIXCMAP* pixcmapConvertTo4(PIXCMAP*)
*/
public static native PixColormap pixcmapConvertTo4(PixColormap cmaps);
/**
* Original signature : PIXCMAP* pixcmapConvertTo8(PIXCMAP*)
*/
public static native PixColormap pixcmapConvertTo8(PixColormap cmaps);
/**
* Original signature : PIXCMAP* pixcmapRead(const char*)
*/
public static native PixColormap pixcmapRead(String filename);
/**
* Original signature : PIXCMAP* pixcmapReadStream(FILE*)
*/
public static native PixColormap pixcmapReadStream(FILE fp);
/**
* Original signature :
* PIXCMAP* pixcmapReadMem(const l_uint8*, size_t)
*/
public static native PixColormap pixcmapReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature :
* l_ok pixcmapWrite(const char*, const PIXCMAP*)
*/
public static native int pixcmapWrite(String filename, PixColormap cmap);
/**
* Original signature :
* l_ok pixcmapWriteStream(FILE*, const PIXCMAP*)
*/
public static native int pixcmapWriteStream(FILE fp, PixColormap cmap);
/**
* Original signature :
* l_ok pixcmapWriteMem(l_uint8**, size_t*, const PIXCMAP*)
*/
public static native int pixcmapWriteMem(PointerByReference pdata, NativeSizeByReference psize, PixColormap cmap);
/**
* Original signature :
* l_ok pixcmapToArrays(const PIXCMAP*, l_int32**, l_int32**, l_int32**, l_int32**)
*/
public static native int pixcmapToArrays(PixColormap cmap, PointerByReference prmap, PointerByReference pgmap, PointerByReference pbmap, PointerByReference pamap);
/**
* Original signature :
* l_ok pixcmapToRGBTable(PIXCMAP*, l_uint32**, l_int32*)
*/
public static native int pixcmapToRGBTable(PixColormap cmap, PointerByReference ptab, IntBuffer pncolors);
/**
* Original signature :
* l_ok pixcmapSerializeToMemory(PIXCMAP*, l_int32, l_int32*, l_uint8**)
*/
public static native int pixcmapSerializeToMemory(PixColormap cmap, int cpc, IntBuffer pncolors, PointerByReference pdata);
/**
* Original signature :
* PIXCMAP* pixcmapDeserializeFromMemory(l_uint8*, l_int32, l_int32)
*/
public static native PixColormap pixcmapDeserializeFromMemory(ByteBuffer data, int cpc, int ncolors);
/**
* Original signature :
* char* pixcmapConvertToHex(l_uint8*, l_int32)
*/
public static native Pointer pixcmapConvertToHex(ByteBuffer data, int ncolors);
/**
* Original signature :
* l_ok pixcmapGammaTRC(PIXCMAP*, l_float32, l_int32, l_int32)
*/
public static native int pixcmapGammaTRC(PixColormap cmap, float gamma, int minval, int maxval);
/**
* Original signature :
* l_ok pixcmapContrastTRC(PIXCMAP*, l_float32)
*/
public static native int pixcmapContrastTRC(PixColormap cmap, float factor);
/**
* Original signature :
* l_ok pixcmapShiftIntensity(PIXCMAP*, l_float32)
*/
public static native int pixcmapShiftIntensity(PixColormap cmap, float fraction);
/**
* Original signature :
* l_ok pixcmapShiftByComponent(PIXCMAP*, l_uint32, l_uint32)
*/
public static native int pixcmapShiftByComponent(PixColormap cmap, int srcval, int dstval);
/**
* Original signature :
* PIX* pixColorMorph(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixColorMorph(Pix pixs, int type, int hsize, int vsize);
/**
* Original signature :
* PIX* pixOctreeColorQuant(PIX*, l_int32, l_int32)
*/
public static native Pix pixOctreeColorQuant(Pix pixs, int colors, int ditherflag);
/**
* Original signature :
* PIX* pixOctreeColorQuantGeneral(PIX*, l_int32, l_int32, l_float32, l_float32)
*/
public static native Pix pixOctreeColorQuantGeneral(Pix pixs, int colors, int ditherflag, float validthresh, float colorthresh);
/**
* Original signature :
* l_ok makeRGBToIndexTables(l_int32, l_uint32**, l_uint32**, l_uint32**)
*/
public static native int makeRGBToIndexTables(int cqlevels, PointerByReference prtab, PointerByReference pgtab, PointerByReference pbtab);
/**
* Original signature :
* void getOctcubeIndexFromRGB(l_int32, l_int32, l_int32, l_uint32*, l_uint32*, l_uint32*, l_uint32*)
*/
public static native void getOctcubeIndexFromRGB(int rval, int gval, int bval, IntBuffer rtab, IntBuffer gtab, IntBuffer btab, IntBuffer pindex);
/**
* Original signature :
* PIX* pixOctreeQuantByPopulation(PIX*, l_int32, l_int32)
*/
public static native Pix pixOctreeQuantByPopulation(Pix pixs, int level, int ditherflag);
/**
* Original signature :
* PIX* pixOctreeQuantNumColors(PIX*, l_int32, l_int32)
*/
public static native Pix pixOctreeQuantNumColors(Pix pixs, int maxcolors, int subsample);
/**
* Original signature :
* PIX* pixOctcubeQuantMixedWithGray(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixOctcubeQuantMixedWithGray(Pix pixs, int depth, int graylevels, int delta);
/**
* Original signature :
* PIX* pixFixedOctcubeQuant256(PIX*, l_int32)
*/
public static native Pix pixFixedOctcubeQuant256(Pix pixs, int ditherflag);
/**
* Original signature :
* PIX* pixFewColorsOctcubeQuant1(PIX*, l_int32)
*/
public static native Pix pixFewColorsOctcubeQuant1(Pix pixs, int level);
/**
* Original signature :
* PIX* pixFewColorsOctcubeQuant2(PIX*, l_int32, NUMA*, l_int32, l_int32*)
*/
public static native Pix pixFewColorsOctcubeQuant2(Pix pixs, int level, Numa na, int ncolors, IntBuffer pnerrors);
/**
* Original signature :
* PIX* pixFewColorsOctcubeQuantMixed(PIX*, l_int32, l_int32, l_int32, l_int32, l_float32, l_int32)
*/
public static native Pix pixFewColorsOctcubeQuantMixed(Pix pixs, int level, int darkthresh, int lightthresh, int diffthresh, float minfract, int maxspan);
/**
* Original signature :
* PIX* pixFixedOctcubeQuantGenRGB(PIX*, l_int32)
*/
public static native Pix pixFixedOctcubeQuantGenRGB(Pix pixs, int level);
/**
* Original signature :
* PIX* pixQuantFromCmap(PIX*, PIXCMAP*, l_int32, l_int32, l_int32)
*/
public static native Pix pixQuantFromCmap(Pix pixs, PixColormap cmap, int mindepth, int level, int metric);
/**
* Original signature :
* PIX* pixOctcubeQuantFromCmap(PIX*, PIXCMAP*, l_int32, l_int32, l_int32)
*/
public static native Pix pixOctcubeQuantFromCmap(Pix pixs, PixColormap cmap, int mindepth, int level, int metric);
/**
* Original signature :
* NUMA* pixOctcubeHistogram(PIX*, l_int32, l_int32*)
*/
public static native Numa pixOctcubeHistogram(Pix pixs, int level, IntBuffer pncolors);
/**
* Original signature :
* l_int32* pixcmapToOctcubeLUT(PIXCMAP*, l_int32, l_int32)
*/
public static native IntByReference pixcmapToOctcubeLUT(PixColormap cmap, int level, int metric);
/**
* Original signature : l_ok pixRemoveUnusedColors(PIX*)
*/
public static native int pixRemoveUnusedColors(Pix pixs);
/**
* Original signature :
* l_ok pixNumberOccupiedOctcubes(PIX*, l_int32, l_int32, l_float32, l_int32*)
*/
public static native int pixNumberOccupiedOctcubes(Pix pix, int level, int mincount, float minfract, IntBuffer pncolors);
/**
* Original signature : PIX* pixMedianCutQuant(PIX*, l_int32)
*/
public static native Pix pixMedianCutQuant(Pix pixs, int ditherflag);
/**
* Original signature :
* PIX* pixMedianCutQuantGeneral(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixMedianCutQuantGeneral(Pix pixs, int ditherflag, int outdepth, int maxcolors, int sigbits, int maxsub, int checkbw);
/**
* Original signature :
* PIX* pixMedianCutQuantMixed(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixMedianCutQuantMixed(Pix pixs, int ncolor, int ngray, int darkthresh, int lightthresh, int diffthresh);
/**
* Original signature :
* PIX* pixFewColorsMedianCutQuantMixed(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixFewColorsMedianCutQuantMixed(Pix pixs, int ncolor, int ngray, int maxncolors, int darkthresh, int lightthresh, int diffthresh);
/**
* Original signature :
* l_int32* pixMedianCutHisto(PIX*, l_int32, l_int32)
*/
public static native IntByReference pixMedianCutHisto(Pix pixs, int sigbits, int subsample);
/**
* Original signature :
* PIX* pixColorSegment(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixColorSegment(Pix pixs, int maxdist, int maxcolors, int selsize, int finalcolors, int debugflag);
/**
* Original signature :
* PIX* pixColorSegmentCluster(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixColorSegmentCluster(Pix pixs, int maxdist, int maxcolors, int debugflag);
/**
* Original signature :
* l_ok pixAssignToNearestColor(PIX*, PIX*, PIX*, l_int32, l_int32*)
*/
public static native int pixAssignToNearestColor(Pix pixd, Pix pixs, Pix pixm, int level, IntBuffer countarray);
/**
* Original signature :
* l_ok pixColorSegmentClean(PIX*, l_int32, l_int32*)
*/
public static native int pixColorSegmentClean(Pix pixs, int selsize, IntBuffer countarray);
/**
* Original signature :
* l_ok pixColorSegmentRemoveColors(PIX*, PIX*, l_int32)
*/
public static native int pixColorSegmentRemoveColors(Pix pixd, Pix pixs, int finalcolors);
/**
* Original signature : PIX* pixConvertRGBToHSV(PIX*, PIX*)
*/
public static native Pix pixConvertRGBToHSV(Pix pixd, Pix pixs);
/**
* Original signature : PIX* pixConvertHSVToRGB(PIX*, PIX*)
*/
public static native Pix pixConvertHSVToRGB(Pix pixd, Pix pixs);
/**
* Original signature :
* l_ok convertRGBToHSV(l_int32, l_int32, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int convertRGBToHSV(int rval, int gval, int bval, IntBuffer phval, IntBuffer psval, IntBuffer pvval);
/**
* Original signature :
* l_ok convertHSVToRGB(l_int32, l_int32, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int convertHSVToRGB(int hval, int sval, int vval, IntBuffer prval, IntBuffer pgval, IntBuffer pbval);
/**
* Original signature : l_ok pixcmapConvertRGBToHSV(PIXCMAP*)
*/
public static native int pixcmapConvertRGBToHSV(PixColormap cmap);
/**
* Original signature : l_ok pixcmapConvertHSVToRGB(PIXCMAP*)
*/
public static native int pixcmapConvertHSVToRGB(PixColormap cmap);
/**
* Original signature : PIX* pixConvertRGBToHue(PIX*)
*/
public static native Pix pixConvertRGBToHue(Pix pixs);
/**
* Original signature : PIX* pixConvertRGBToSaturation(PIX*)
*/
public static native Pix pixConvertRGBToSaturation(Pix pixs);
/**
* Original signature : PIX* pixConvertRGBToValue(PIX*)
*/
public static native Pix pixConvertRGBToValue(Pix pixs);
/**
* Original signature :
* PIX* pixMakeRangeMaskHS(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixMakeRangeMaskHS(Pix pixs, int huecenter, int huehw, int satcenter, int sathw, int regionflag);
/**
* Original signature :
* PIX* pixMakeRangeMaskHV(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixMakeRangeMaskHV(Pix pixs, int huecenter, int huehw, int valcenter, int valhw, int regionflag);
/**
* Original signature :
* PIX* pixMakeRangeMaskSV(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixMakeRangeMaskSV(Pix pixs, int satcenter, int sathw, int valcenter, int valhw, int regionflag);
/**
* Original signature :
* PIX* pixMakeHistoHS(PIX*, l_int32, NUMA**, NUMA**)
*/
public static native Pix pixMakeHistoHS(Pix pixs, int factor, PointerByReference pnahue, PointerByReference pnasat);
/**
* Original signature :
* PIX* pixMakeHistoHV(PIX*, l_int32, NUMA**, NUMA**)
*/
public static native Pix pixMakeHistoHV(Pix pixs, int factor, PointerByReference pnahue, PointerByReference pnaval);
/**
* Original signature :
* PIX* pixMakeHistoSV(PIX*, l_int32, NUMA**, NUMA**)
*/
public static native Pix pixMakeHistoSV(Pix pixs, int factor, PointerByReference pnasat, PointerByReference pnaval);
/**
* Original signature :
* l_ok pixFindHistoPeaksHSV(PIX*, l_int32, l_int32, l_int32, l_int32, l_float32, PTA**, NUMA**, PIXA**)
*/
public static native int pixFindHistoPeaksHSV(Pix pixs, int type, int width, int height, int npeaks, float erasefactor, PointerByReference ppta, PointerByReference pnatot, PointerByReference ppixa);
/**
* Original signature :
* PIX* displayHSVColorRange(l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix displayHSVColorRange(int hval, int sval, int vval, int huehw, int sathw, int nsamp, int factor);
/**
* Original signature : PIX* pixConvertRGBToYUV(PIX*, PIX*)
*/
public static native Pix pixConvertRGBToYUV(Pix pixd, Pix pixs);
/**
* Original signature : PIX* pixConvertYUVToRGB(PIX*, PIX*)
*/
public static native Pix pixConvertYUVToRGB(Pix pixd, Pix pixs);
/**
* Original signature :
* l_ok convertRGBToYUV(l_int32, l_int32, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int convertRGBToYUV(int rval, int gval, int bval, IntBuffer pyval, IntBuffer puval, IntBuffer pvval);
/**
* Original signature :
* l_ok convertYUVToRGB(l_int32, l_int32, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int convertYUVToRGB(int yval, int uval, int vval, IntBuffer prval, IntBuffer pgval, IntBuffer pbval);
/**
* Original signature : l_ok pixcmapConvertRGBToYUV(PIXCMAP*)
*/
public static native int pixcmapConvertRGBToYUV(PixColormap cmap);
/**
* Original signature : l_ok pixcmapConvertYUVToRGB(PIXCMAP*)
*/
public static native int pixcmapConvertYUVToRGB(PixColormap cmap);
/**
* Original signature : FPIXA* pixConvertRGBToXYZ(PIX*)
*/
public static native FPixa pixConvertRGBToXYZ(Pix pixs);
/**
* Original signature : PIX* fpixaConvertXYZToRGB(FPIXA*)
*/
public static native Pix fpixaConvertXYZToRGB(FPixa fpixa);
/**
* Original signature :
* l_ok convertRGBToXYZ(l_int32, l_int32, l_int32, l_float32*, l_float32*, l_float32*)
*/
public static native int convertRGBToXYZ(int rval, int gval, int bval, FloatBuffer pfxval, FloatBuffer pfyval, FloatBuffer pfzval);
/**
* Original signature :
* l_ok convertXYZToRGB(l_float32, l_float32, l_float32, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int convertXYZToRGB(float fxval, float fyval, float fzval, int blackout, IntBuffer prval, IntBuffer pgval, IntBuffer pbval);
/**
* Original signature : FPIXA* fpixaConvertXYZToLAB(FPIXA*)
*/
public static native FPixa fpixaConvertXYZToLAB(FPixa fpixas);
/**
* Original signature : FPIXA* fpixaConvertLABToXYZ(FPIXA*)
*/
public static native FPixa fpixaConvertLABToXYZ(FPixa fpixas);
/**
* Original signature :
* l_ok convertXYZToLAB(l_float32, l_float32, l_float32, l_float32*, l_float32*, l_float32*)
*/
public static native int convertXYZToLAB(float xval, float yval, float zval, FloatBuffer plval, FloatBuffer paval, FloatBuffer pbval);
/**
* Original signature :
* l_ok convertLABToXYZ(l_float32, l_float32, l_float32, l_float32*, l_float32*, l_float32*)
*/
public static native int convertLABToXYZ(float lval, float aval, float bval, FloatBuffer pxval, FloatBuffer pyval, FloatBuffer pzval);
/**
* Original signature : FPIXA* pixConvertRGBToLAB(PIX*)
*/
public static native FPixa pixConvertRGBToLAB(Pix pixs);
/**
* Original signature : PIX* fpixaConvertLABToRGB(FPIXA*)
*/
public static native Pix fpixaConvertLABToRGB(FPixa fpixa);
/**
* Original signature :
* l_ok convertRGBToLAB(l_int32, l_int32, l_int32, l_float32*, l_float32*, l_float32*)
*/
public static native int convertRGBToLAB(int rval, int gval, int bval, FloatBuffer pflval, FloatBuffer pfaval, FloatBuffer pfbval);
/**
* Original signature :
* l_ok convertLABToRGB(l_float32, l_float32, l_float32, l_int32*, l_int32*, l_int32*)
*/
public static native int convertLABToRGB(float flval, float faval, float fbval, IntBuffer prval, IntBuffer pgval, IntBuffer pbval);
/**
* Original signature : l_ok pixEqual(PIX*, PIX*, l_int32*)
*/
public static native int pixEqual(Pix pix1, Pix pix2, IntBuffer psame);
/**
* Original signature :
* l_ok pixEqualWithAlpha(PIX*, PIX*, l_int32, l_int32*)
*/
public static native int pixEqualWithAlpha(Pix pix1, Pix pix2, int use_alpha, IntBuffer psame);
/**
* Original signature :
* l_ok pixEqualWithCmap(PIX*, PIX*, l_int32*)
*/
public static native int pixEqualWithCmap(Pix pix1, Pix pix2, IntBuffer psame);
/**
* Original signature :
* l_ok cmapEqual(PIXCMAP*, PIXCMAP*, l_int32, l_int32*)
*/
public static native int cmapEqual(PixColormap cmap1, PixColormap cmap2, int ncomps, IntBuffer psame);
/**
* Original signature : l_ok pixUsesCmapColor(PIX*, l_int32*)
*/
public static native int pixUsesCmapColor(Pix pixs, IntBuffer pcolor);
/**
* Original signature :
* l_ok pixCorrelationBinary(PIX*, PIX*, l_float32*)
*/
public static native int pixCorrelationBinary(Pix pix1, Pix pix2, FloatBuffer pval);
/**
* Original signature : PIX* pixDisplayDiffBinary(PIX*, PIX*)
*/
public static native Pix pixDisplayDiffBinary(Pix pix1, Pix pix2);
/**
* Original signature :
* l_ok pixCompareBinary(PIX*, PIX*, l_int32, l_float32*, PIX**)
*/
public static native int pixCompareBinary(Pix pix1, Pix pix2, int comptype, FloatBuffer pfract, PointerByReference ppixdiff);
/**
* Original signature :
* l_ok pixCompareBinary(PIX*, PIX*, l_int32, l_float32*, PIX**)
*/
public static native int pixCompareBinary(Pix pix1, Pix pix2, int comptype, FloatByReference pfract, PointerByReference ppixdiff);
/**
* Original signature :
* l_ok pixCompareGrayOrRGB(PIX*, PIX*, l_int32, l_int32, l_int32*, l_float32*, l_float32*, PIX**)
*/
public static native int pixCompareGrayOrRGB(Pix pix1, Pix pix2, int comptype, int plottype, IntBuffer psame, FloatBuffer pdiff, FloatBuffer prmsdiff, PointerByReference ppixdiff);
/**
* Original signature :
* l_ok pixCompareGrayOrRGB(PIX*, PIX*, l_int32, l_int32, l_int32*, l_float32*, l_float32*, PIX**)
*/
public static native int pixCompareGrayOrRGB(Pix pix1, Pix pix2, int comptype, int plottype, IntByReference psame, FloatByReference pdiff, FloatByReference prmsdiff, PointerByReference ppixdiff);
/**
* Original signature :
* l_ok pixCompareGray(PIX*, PIX*, l_int32, l_int32, l_int32*, l_float32*, l_float32*, PIX**)
*/
public static native int pixCompareGray(Pix pix1, Pix pix2, int comptype, int plottype, IntBuffer psame, FloatBuffer pdiff, FloatBuffer prmsdiff, PointerByReference ppixdiff);
/**
* Original signature :
* l_ok pixCompareGray(PIX*, PIX*, l_int32, l_int32, l_int32*, l_float32*, l_float32*, PIX**)
*/
public static native int pixCompareGray(Pix pix1, Pix pix2, int comptype, int plottype, IntByReference psame, FloatByReference pdiff, FloatByReference prmsdiff, PointerByReference ppixdiff);
/**
* Original signature :
* l_ok pixCompareRGB(PIX*, PIX*, l_int32, l_int32, l_int32*, l_float32*, l_float32*, PIX**)
*/
public static native int pixCompareRGB(Pix pix1, Pix pix2, int comptype, int plottype, IntBuffer psame, FloatBuffer pdiff, FloatBuffer prmsdiff, PointerByReference ppixdiff);
/**
* Original signature :
* l_ok pixCompareRGB(PIX*, PIX*, l_int32, l_int32, l_int32*, l_float32*, l_float32*, PIX**)
*/
public static native int pixCompareRGB(Pix pix1, Pix pix2, int comptype, int plottype, IntByReference psame, FloatByReference pdiff, FloatByReference prmsdiff, PointerByReference ppixdiff);
/**
* Original signature :
* l_ok pixCompareTiled(PIX*, PIX*, l_int32, l_int32, l_int32, PIX**)
*/
public static native int pixCompareTiled(Pix pix1, Pix pix2, int sx, int sy, int type, PointerByReference ppixdiff);
/**
* Original signature :
* NUMA* pixCompareRankDifference(PIX*, PIX*, l_int32)
*/
public static native Numa pixCompareRankDifference(Pix pix1, Pix pix2, int factor);
/**
* Original signature :
* l_ok pixTestForSimilarity(PIX*, PIX*, l_int32, l_int32, l_float32, l_float32, l_int32*, l_int32)
*/
public static native int pixTestForSimilarity(Pix pix1, Pix pix2, int factor, int mindiff, float maxfract, float maxave, IntBuffer psimilar, int details);
/**
* Original signature :
* l_ok pixGetDifferenceStats(PIX*, PIX*, l_int32, l_int32, l_float32*, l_float32*, l_int32)
*/
public static native int pixGetDifferenceStats(Pix pix1, Pix pix2, int factor, int mindiff, FloatBuffer pfractdiff, FloatBuffer pavediff, int details);
/**
* Original signature :
* NUMA* pixGetDifferenceHistogram(PIX*, PIX*, l_int32)
*/
public static native Numa pixGetDifferenceHistogram(Pix pix1, Pix pix2, int factor);
/**
* Original signature :
* l_ok pixGetPerceptualDiff(PIX*, PIX*, l_int32, l_int32, l_int32, l_float32*, PIX**, PIX**)
*/
public static native int pixGetPerceptualDiff(Pix pixs1, Pix pixs2, int sampling, int dilation, int mindiff, FloatBuffer pfract, PointerByReference ppixdiff1, PointerByReference ppixdiff2);
/**
* Original signature :
* l_ok pixGetPerceptualDiff(PIX*, PIX*, l_int32, l_int32, l_int32, l_float32*, PIX**, PIX**)
*/
public static native int pixGetPerceptualDiff(Pix pixs1, Pix pixs2, int sampling, int dilation, int mindiff, FloatByReference pfract, PointerByReference ppixdiff1, PointerByReference ppixdiff2);
/**
* Original signature :
* l_ok pixGetPSNR(PIX*, PIX*, l_int32, l_float32*)
*/
public static native int pixGetPSNR(Pix pix1, Pix pix2, int factor, FloatBuffer ppsnr);
/**
* Original signature :
* l_ok pixaComparePhotoRegionsByHisto(PIXA*, l_float32, l_float32, l_int32, l_int32, l_float32, NUMA**, l_float32**, PIX**, l_int32)
*/
public static native int pixaComparePhotoRegionsByHisto(Pixa pixa, float minratio, float textthresh, int factor, int n, float simthresh, PointerByReference pnai, PointerByReference pscores, PointerByReference ppixd, int debug);
/**
* Original signature :
* l_ok pixComparePhotoRegionsByHisto(PIX*, PIX*, BOX*, BOX*, l_float32, l_int32, l_int32, l_float32*, l_int32)
*/
public static native int pixComparePhotoRegionsByHisto(Pix pix1, Pix pix2, Box box1, Box box2, float minratio, int factor, int n, FloatBuffer pscore, int debugflag);
/**
* Original signature :
* l_ok pixGenPhotoHistos(PIX*, BOX*, l_int32, l_float32, l_int32, NUMAA**, l_int32*, l_int32*, l_int32)
*/
public static native int pixGenPhotoHistos(Pix pixs, Box box, int factor, float thresh, int n, PointerByReference pnaa, IntBuffer pw, IntBuffer ph, int debugindex);
/**
* Original signature :
* l_ok pixGenPhotoHistos(PIX*, BOX*, l_int32, l_float32, l_int32, NUMAA**, l_int32*, l_int32*, l_int32)
*/
public static native int pixGenPhotoHistos(Pix pixs, Box box, int factor, float thresh, int n, PointerByReference pnaa, IntByReference pw, IntByReference ph, int debugindex);
/**
* Original signature :
* PIX* pixPadToCenterCentroid(PIX*, l_int32)
*/
public static native Pix pixPadToCenterCentroid(Pix pixs, int factor);
/**
* Original signature :
* l_ok pixCentroid8(PIX*, l_int32, l_float32*, l_float32*)
*/
public static native int pixCentroid8(Pix pixs, int factor, FloatBuffer pcx, FloatBuffer pcy);
/**
* Original signature :
* l_ok pixDecideIfPhotoImage(PIX*, l_int32, l_float32, l_int32, NUMAA**, PIXA*)
*/
public static native int pixDecideIfPhotoImage(Pix pix, int factor, float thresh, int n, PointerByReference pnaa, Pixa pixadebug);
/**
* Original signature :
* l_ok compareTilesByHisto(NUMAA*, NUMAA*, l_float32, l_int32, l_int32, l_int32, l_int32, l_float32*, PIXA*)
*/
public static native int compareTilesByHisto(Numaa naa1, Numaa naa2, float minratio, int w1, int h1, int w2, int h2, FloatBuffer pscore, Pixa pixadebug);
/**
* Original signature :
* l_ok pixCompareGrayByHisto(PIX*, PIX*, BOX*, BOX*, l_float32, l_int32, l_int32, l_int32, l_float32*, l_int32)
*/
public static native int pixCompareGrayByHisto(Pix pix1, Pix pix2, Box box1, Box box2, float minratio, int maxgray, int factor, int n, FloatBuffer pscore, int debugflag);
/**
* Original signature :
* l_ok pixCropAlignedToCentroid(PIX*, PIX*, l_int32, BOX**, BOX**)
*/
public static native int pixCropAlignedToCentroid(Pix pix1, Pix pix2, int factor, PointerByReference pbox1, PointerByReference pbox2);
/**
* Original signature :
* l_uint8* l_compressGrayHistograms(NUMAA*, l_int32, l_int32, size_t*)
*/
public static native Pointer l_compressGrayHistograms(Numaa naa, int w, int h, NativeSizeByReference psize);
/**
* Original signature :
* NUMAA* l_uncompressGrayHistograms(l_uint8*, size_t, l_int32*, l_int32*)
*/
public static native Numaa l_uncompressGrayHistograms(ByteBuffer bytea, NativeSize size, IntBuffer pw, IntBuffer ph);
/**
* Original signature :
* l_ok pixCompareWithTranslation(PIX*, PIX*, l_int32, l_int32*, l_int32*, l_float32*, l_int32)
*/
public static native int pixCompareWithTranslation(Pix pix1, Pix pix2, int thresh, IntBuffer pdelx, IntBuffer pdely, FloatBuffer pscore, int debugflag);
/**
* Original signature :
* l_ok pixBestCorrelation(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32*, l_int32*, l_int32*, l_float32*, l_int32)
*/
public static native int pixBestCorrelation(Pix pix1, Pix pix2, int area1, int area2, int etransx, int etransy, int maxshift, IntBuffer tab8, IntBuffer pdelx, IntBuffer pdely, FloatBuffer pscore, int debugflag);
/**
* Original signature :
* BOXA* pixConnComp(PIX*, PIXA**, l_int32)
*/
public static native Boxa pixConnComp(Pix pixs, PointerByReference ppixa, int connectivity);
/**
* Original signature :
* BOXA* pixConnCompPixa(PIX*, PIXA**, l_int32)
*/
public static native Boxa pixConnCompPixa(Pix pixs, PointerByReference ppixa, int connectivity);
/**
* Original signature : BOXA* pixConnCompBB(PIX*, l_int32)
*/
public static native Boxa pixConnCompBB(Pix pixs, int connectivity);
/**
* Original signature :
* l_ok pixCountConnComp(PIX*, l_int32, l_int32*)
*/
public static native int pixCountConnComp(Pix pixs, int connectivity, IntBuffer pcount);
/**
* Original signature :
* l_int32 nextOnPixelInRaster(PIX*, l_int32, l_int32, l_int32*, l_int32*)
*/
public static native int nextOnPixelInRaster(Pix pixs, int xstart, int ystart, IntBuffer px, IntBuffer py);
/**
* Original signature :
* BOX* pixSeedfillBB(PIX*, L_STACK*, l_int32, l_int32, l_int32)
*/
public static native Box pixSeedfillBB(Pix pixs, L_Stack stack, int x, int y, int connectivity);
/**
* Original signature :
* BOX* pixSeedfill4BB(PIX*, L_STACK*, l_int32, l_int32)
*/
public static native Box pixSeedfill4BB(Pix pixs, L_Stack stack, int x, int y);
/**
* Original signature :
* BOX* pixSeedfill8BB(PIX*, L_STACK*, l_int32, l_int32)
*/
public static native Box pixSeedfill8BB(Pix pixs, L_Stack stack, int x, int y);
/**
* Original signature :
* l_ok pixSeedfill(PIX*, L_STACK*, l_int32, l_int32, l_int32)
*/
public static native int pixSeedfill(Pix pixs, L_Stack stack, int x, int y, int connectivity);
/**
* Original signature :
* l_ok pixSeedfill4(PIX*, L_STACK*, l_int32, l_int32)
*/
public static native int pixSeedfill4(Pix pixs, L_Stack stack, int x, int y);
/**
* Original signature :
* l_ok pixSeedfill8(PIX*, L_STACK*, l_int32, l_int32)
*/
public static native int pixSeedfill8(Pix pixs, L_Stack stack, int x, int y);
/**
* Original signature :
* l_ok convertFilesTo1bpp(const char*, const char*, l_int32, l_int32, l_int32, l_int32, const char*, l_int32)
*/
public static native int convertFilesTo1bpp(String dirin, String substr, int upscaling, int thresh, int firstpage, int npages, String dirout, int outformat);
/**
* Original signature :
* PIX* pixBlockconv(PIX*, l_int32, l_int32)
*/
public static native Pix pixBlockconv(Pix pix, int wc, int hc);
/**
* Original signature :
* PIX* pixBlockconvGray(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixBlockconvGray(Pix pixs, Pix pixacc, int wc, int hc);
/**
* Original signature : PIX* pixBlockconvAccum(PIX*)
*/
public static native Pix pixBlockconvAccum(Pix pixs);
/**
* Original signature :
* PIX* pixBlockconvGrayUnnormalized(PIX*, l_int32, l_int32)
*/
public static native Pix pixBlockconvGrayUnnormalized(Pix pixs, int wc, int hc);
/**
* Original signature :
* PIX* pixBlockconvTiled(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixBlockconvTiled(Pix pix, int wc, int hc, int nx, int ny);
/**
* Original signature :
* PIX* pixBlockconvGrayTile(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixBlockconvGrayTile(Pix pixs, Pix pixacc, int wc, int hc);
/**
* Original signature :
* l_ok pixWindowedStats(PIX*, l_int32, l_int32, l_int32, PIX**, PIX**, FPIX**, FPIX**)
*/
public static native int pixWindowedStats(Pix pixs, int wc, int hc, int hasborder, PointerByReference ppixm, PointerByReference ppixms, PointerByReference pfpixv, PointerByReference pfpixrv);
/**
* Original signature :
* PIX* pixWindowedMean(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixWindowedMean(Pix pixs, int wc, int hc, int hasborder, int normflag);
/**
* Original signature :
* PIX* pixWindowedMeanSquare(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixWindowedMeanSquare(Pix pixs, int wc, int hc, int hasborder);
/**
* Original signature :
* l_ok pixWindowedVariance(PIX*, PIX*, FPIX**, FPIX**)
*/
public static native int pixWindowedVariance(Pix pixm, Pix pixms, PointerByReference pfpixv, PointerByReference pfpixrv);
/**
* Original signature : DPIX* pixMeanSquareAccum(PIX*)
*/
public static native DPix pixMeanSquareAccum(Pix pixs);
/**
* Original signature :
* PIX* pixBlockrank(PIX*, PIX*, l_int32, l_int32, l_float32)
*/
public static native Pix pixBlockrank(Pix pixs, Pix pixacc, int wc, int hc, float rank);
/**
* Original signature :
* PIX* pixBlocksum(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixBlocksum(Pix pixs, Pix pixacc, int wc, int hc);
/**
* Original signature :
* PIX* pixCensusTransform(PIX*, l_int32, PIX*)
*/
public static native Pix pixCensusTransform(Pix pixs, int halfsize, Pix pixacc);
/**
* Original signature :
* PIX* pixConvolve(PIX*, L_KERNEL*, l_int32, l_int32)
*/
public static native Pix pixConvolve(Pix pixs, L_Kernel kel, int outdepth, int normflag);
/**
* Original signature :
* PIX* pixConvolveSep(PIX*, L_KERNEL*, L_KERNEL*, l_int32, l_int32)
*/
public static native Pix pixConvolveSep(Pix pixs, L_Kernel kelx, L_Kernel kely, int outdepth, int normflag);
/**
* Original signature : PIX* pixConvolveRGB(PIX*, L_KERNEL*)
*/
public static native Pix pixConvolveRGB(Pix pixs, L_Kernel kel);
/**
* Original signature :
* PIX* pixConvolveRGBSep(PIX*, L_KERNEL*, L_KERNEL*)
*/
public static native Pix pixConvolveRGBSep(Pix pixs, L_Kernel kelx, L_Kernel kely);
/**
* Original signature :
* FPIX* fpixConvolve(FPIX*, L_KERNEL*, l_int32)
*/
public static native FPix fpixConvolve(FPix fpixs, L_Kernel kel, int normflag);
/**
* Original signature :
* FPIX* fpixConvolveSep(FPIX*, L_KERNEL*, L_KERNEL*, l_int32)
*/
public static native FPix fpixConvolveSep(FPix fpixs, L_Kernel kelx, L_Kernel kely, int normflag);
/**
* Original signature :
* PIX* pixConvolveWithBias(PIX*, L_KERNEL*, L_KERNEL*, l_int32, l_int32*)
*/
public static native Pix pixConvolveWithBias(Pix pixs, L_Kernel kel1, L_Kernel kel2, int force8, IntBuffer pbias);
/**
* Original signature :
* void l_setConvolveSampling(l_int32, l_int32)
*/
public static native void l_setConvolveSampling(int xfact, int yfact);
/**
* Original signature :
* PIX* pixAddGaussianNoise(PIX*, l_float32)
*/
public static native Pix pixAddGaussianNoise(Pix pixs, float stdev);
/**
* Original signature : l_float32 gaussDistribSampling()
*/
public static native float gaussDistribSampling();
/**
* Original signature :
* l_ok pixCorrelationScore(PIX*, PIX*, l_int32, l_int32, l_float32, l_float32, l_int32, l_int32, l_int32*, l_float32*)
*/
public static native int pixCorrelationScore(Pix pix1, Pix pix2, int area1, int area2, float delx, float dely, int maxdiffw, int maxdiffh, IntBuffer tab, FloatBuffer pscore);
/**
* Original signature :
* l_int32 pixCorrelationScoreThresholded(PIX*, PIX*, l_int32, l_int32, l_float32, l_float32, l_int32, l_int32, l_int32*, l_int32*, l_float32)
*/
public static native int pixCorrelationScoreThresholded(Pix pix1, Pix pix2, int area1, int area2, float delx, float dely, int maxdiffw, int maxdiffh, IntBuffer tab, IntBuffer downcount, float score_threshold);
/**
* Original signature :
* l_ok pixCorrelationScoreSimple(PIX*, PIX*, l_int32, l_int32, l_float32, l_float32, l_int32, l_int32, l_int32*, l_float32*)
*/
public static native int pixCorrelationScoreSimple(Pix pix1, Pix pix2, int area1, int area2, float delx, float dely, int maxdiffw, int maxdiffh, IntBuffer tab, FloatBuffer pscore);
/**
* Original signature :
* l_ok pixCorrelationScoreShifted(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32*, l_float32*)
*/
public static native int pixCorrelationScoreShifted(Pix pix1, Pix pix2, int area1, int area2, int delx, int dely, IntBuffer tab, FloatBuffer pscore);
/**
* Original signature : L_DEWARP* dewarpCreate(PIX*, l_int32)
*/
public static native L_Dewarp dewarpCreate(Pix pixs, int pageno);
/**
* Original signature :
* L_DEWARP* dewarpCreateRef(l_int32, l_int32)
*/
public static native L_Dewarp dewarpCreateRef(int pageno, int refpage);
/**
* Original signature : void dewarpDestroy(L_DEWARP**)
*/
public static native void dewarpDestroy(PointerByReference pdew);
/**
* Original signature :
* L_DEWARPA* dewarpaCreate(l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native L_Dewarpa dewarpaCreate(int nptrs, int sampling, int redfactor, int minlines, int maxdist);
/**
* Original signature :
* L_DEWARPA* dewarpaCreateFromPixacomp(PIXAC*, l_int32, l_int32, l_int32, l_int32)
*/
public static native L_Dewarpa dewarpaCreateFromPixacomp(PixaComp pixac, int useboth, int sampling, int minlines, int maxdist);
/**
* Original signature : void dewarpaDestroy(L_DEWARPA**)
*/
public static native void dewarpaDestroy(PointerByReference pdewa);
/**
* Original signature :
* l_ok dewarpaDestroyDewarp(L_DEWARPA*, l_int32)
*/
public static native int dewarpaDestroyDewarp(L_Dewarpa dewa, int pageno);
/**
* Original signature :
* l_ok dewarpaInsertDewarp(L_DEWARPA*, L_DEWARP*)
*/
public static native int dewarpaInsertDewarp(L_Dewarpa dewa, L_Dewarp dew);
/**
* Original signature :
* L_DEWARP* dewarpaGetDewarp(L_DEWARPA*, l_int32)
*/
public static native L_Dewarp dewarpaGetDewarp(L_Dewarpa dewa, int index);
/**
* Original signature :
* l_ok dewarpaSetCurvatures(L_DEWARPA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int dewarpaSetCurvatures(L_Dewarpa dewa, int max_linecurv, int min_diff_linecurv, int max_diff_linecurv, int max_edgecurv, int max_diff_edgecurv, int max_edgeslope);
/**
* Original signature :
* l_ok dewarpaUseBothArrays(L_DEWARPA*, l_int32)
*/
public static native int dewarpaUseBothArrays(L_Dewarpa dewa, int useboth);
/**
* Original signature :
* l_ok dewarpaSetCheckColumns(L_DEWARPA*, l_int32)
*/
public static native int dewarpaSetCheckColumns(L_Dewarpa dewa, int check_columns);
/**
* Original signature :
* l_ok dewarpaSetMaxDistance(L_DEWARPA*, l_int32)
*/
public static native int dewarpaSetMaxDistance(L_Dewarpa dewa, int maxdist);
/**
* Original signature : L_DEWARP* dewarpRead(const char*)
*/
public static native L_Dewarp dewarpRead(String filename);
/**
* Original signature : L_DEWARP* dewarpReadStream(FILE*)
*/
public static native L_Dewarp dewarpReadStream(FILE fp);
/**
* Original signature :
* L_DEWARP* dewarpReadMem(const l_uint8*, size_t)
*/
public static native L_Dewarp dewarpReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature :
* l_ok dewarpWrite(const char*, L_DEWARP*)
*/
public static native int dewarpWrite(String filename, L_Dewarp dew);
/**
* Original signature :
* l_ok dewarpWriteStream(FILE*, L_DEWARP*)
*/
public static native int dewarpWriteStream(FILE fp, L_Dewarp dew);
/**
* Original signature :
* l_ok dewarpWriteMem(l_uint8**, size_t*, L_DEWARP*)
*/
public static native int dewarpWriteMem(PointerByReference pdata, NativeSizeByReference psize, L_Dewarp dew);
/**
* Original signature : L_DEWARPA* dewarpaRead(const char*)
*/
public static native L_Dewarpa dewarpaRead(String filename);
/**
* Original signature : L_DEWARPA* dewarpaReadStream(FILE*)
*/
public static native L_Dewarpa dewarpaReadStream(FILE fp);
/**
* Original signature :
* L_DEWARPA* dewarpaReadMem(const l_uint8*, size_t)
*/
public static native L_Dewarpa dewarpaReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature :
* l_ok dewarpaWrite(const char*, L_DEWARPA*)
*/
public static native int dewarpaWrite(String filename, L_Dewarpa dewa);
/**
* Original signature :
* l_ok dewarpaWriteStream(FILE*, L_DEWARPA*)
*/
public static native int dewarpaWriteStream(FILE fp, L_Dewarpa dewa);
/**
* Original signature :
* l_ok dewarpaWriteMem(l_uint8**, size_t*, L_DEWARPA*)
*/
public static native int dewarpaWriteMem(PointerByReference pdata, NativeSizeByReference psize, L_Dewarpa dewa);
/**
* Original signature :
* l_ok dewarpBuildPageModel(L_DEWARP*, const char*)
*/
public static native int dewarpBuildPageModel(L_Dewarp dew, String debugfile);
/**
* Original signature :
* l_ok dewarpFindVertDisparity(L_DEWARP*, PTAA*, l_int32)
*/
public static native int dewarpFindVertDisparity(L_Dewarp dew, Ptaa ptaa, int rotflag);
/**
* Original signature :
* l_ok dewarpFindHorizDisparity(L_DEWARP*, PTAA*)
*/
public static native int dewarpFindHorizDisparity(L_Dewarp dew, Ptaa ptaa);
/**
* Original signature :
* PTAA* dewarpGetTextlineCenters(PIX*, l_int32)
*/
public static native Ptaa dewarpGetTextlineCenters(Pix pixs, int debugflag);
/**
* Original signature :
* PTAA* dewarpRemoveShortLines(PIX*, PTAA*, l_float32, l_int32)
*/
public static native Ptaa dewarpRemoveShortLines(Pix pixs, Ptaa ptaas, float fract, int debugflag);
/**
* Original signature :
* l_ok dewarpFindHorizSlopeDisparity(L_DEWARP*, PIX*, l_float32, l_int32)
*/
public static native int dewarpFindHorizSlopeDisparity(L_Dewarp dew, Pix pixb, float fractthresh, int parity);
/**
* Original signature :
* l_ok dewarpBuildLineModel(L_DEWARP*, l_int32, const char*)
*/
public static native int dewarpBuildLineModel(L_Dewarp dew, int opensize, String debugfile);
/**
* Original signature :
* l_ok dewarpaModelStatus(L_DEWARPA*, l_int32, l_int32*, l_int32*)
*/
public static native int dewarpaModelStatus(L_Dewarpa dewa, int pageno, IntBuffer pvsuccess, IntBuffer phsuccess);
/**
* Original signature :
* l_ok dewarpaApplyDisparity(L_DEWARPA*, l_int32, PIX*, l_int32, l_int32, l_int32, PIX**, const char*)
*/
public static native int dewarpaApplyDisparity(L_Dewarpa dewa, int pageno, Pix pixs, int grayin, int x, int y, PointerByReference ppixd, String debugfile);
/**
* Original signature :
* l_ok dewarpaApplyDisparity(L_DEWARPA*, l_int32, PIX*, l_int32, l_int32, l_int32, PIX**, const char*)
*/
public static native int dewarpaApplyDisparity(L_Dewarpa dewa, int pageno, Pix pixs, int grayin, int x, int y, PointerByReference ppixd, Pointer debugfile);
/**
* Original signature :
* l_ok dewarpaApplyDisparityBoxa(L_DEWARPA*, l_int32, PIX*, BOXA*, l_int32, l_int32, l_int32, BOXA**, const char*)
*/
public static native int dewarpaApplyDisparityBoxa(L_Dewarpa dewa, int pageno, Pix pixs, Boxa boxas, int mapdir, int x, int y, PointerByReference pboxad, String debugfile);
/**
* Original signature :
* l_ok dewarpaApplyDisparityBoxa(L_DEWARPA*, l_int32, PIX*, BOXA*, l_int32, l_int32, l_int32, BOXA**, const char*)
*/
public static native int dewarpaApplyDisparityBoxa(L_Dewarpa dewa, int pageno, Pix pixs, Boxa boxas, int mapdir, int x, int y, PointerByReference pboxad, Pointer debugfile);
/**
* Original signature : l_ok dewarpMinimize(L_DEWARP*)
*/
public static native int dewarpMinimize(L_Dewarp dew);
/**
* Original signature :
* l_ok dewarpPopulateFullRes(L_DEWARP*, PIX*, l_int32, l_int32)
*/
public static native int dewarpPopulateFullRes(L_Dewarp dew, Pix pix, int x, int y);
/**
* Original signature :
* l_ok dewarpSinglePage(PIX*, l_int32, l_int32, l_int32, l_int32, PIX**, L_DEWARPA**, l_int32)
*/
public static native int dewarpSinglePage(Pix pixs, int thresh, int adaptive, int useboth, int check_columns, PointerByReference ppixd, PointerByReference pdewa, int debug);
/**
* Original signature :
* l_ok dewarpSinglePageInit(PIX*, l_int32, l_int32, l_int32, l_int32, PIX**, L_DEWARPA**)
*/
public static native int dewarpSinglePageInit(Pix pixs, int thresh, int adaptive, int useboth, int check_columns, PointerByReference ppixb, PointerByReference pdewa);
/**
* Original signature :
* l_ok dewarpSinglePageRun(PIX*, PIX*, L_DEWARPA*, PIX**, l_int32)
*/
public static native int dewarpSinglePageRun(Pix pixs, Pix pixb, L_Dewarpa dewa, PointerByReference ppixd, int debug);
/**
* Original signature : l_ok dewarpaListPages(L_DEWARPA*)
*/
public static native int dewarpaListPages(L_Dewarpa dewa);
/**
* Original signature :
* l_ok dewarpaSetValidModels(L_DEWARPA*, l_int32, l_int32)
*/
public static native int dewarpaSetValidModels(L_Dewarpa dewa, int notests, int debug);
/**
* Original signature :
* l_ok dewarpaInsertRefModels(L_DEWARPA*, l_int32, l_int32)
*/
public static native int dewarpaInsertRefModels(L_Dewarpa dewa, int notests, int debug);
/**
* Original signature : l_ok dewarpaStripRefModels(L_DEWARPA*)
*/
public static native int dewarpaStripRefModels(L_Dewarpa dewa);
/**
* Original signature : l_ok dewarpaRestoreModels(L_DEWARPA*)
*/
public static native int dewarpaRestoreModels(L_Dewarpa dewa);
/**
* Original signature : l_ok dewarpaInfo(FILE*, L_DEWARPA*)
*/
public static native int dewarpaInfo(FILE fp, L_Dewarpa dewa);
/**
* Original signature :
* l_ok dewarpaModelStats(L_DEWARPA*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int dewarpaModelStats(L_Dewarpa dewa, IntBuffer pnnone, IntBuffer pnvsuccess, IntBuffer pnvvalid, IntBuffer pnhsuccess, IntBuffer pnhvalid, IntBuffer pnref);
/**
* Original signature :
* l_ok dewarpaShowArrays(L_DEWARPA*, l_float32, l_int32, l_int32)
*/
public static native int dewarpaShowArrays(L_Dewarpa dewa, float scalefact, int first, int last);
/**
* Original signature :
* l_ok dewarpDebug(L_DEWARP*, const char*, l_int32)
*/
public static native int dewarpDebug(L_Dewarp dew, String subdirs, int index);
/**
* Original signature :
* l_ok dewarpShowResults(L_DEWARPA*, SARRAY*, BOXA*, l_int32, l_int32, const char*)
*/
public static native int dewarpShowResults(L_Dewarpa dewa, Sarray sa, Boxa boxa, int firstpage, int lastpage, String pdfout);
/**
* Original signature : L_DNA* l_dnaCreate(l_int32)
*/
public static native L_Dna l_dnaCreate(int n);
/**
* Original signature :
* L_DNA* l_dnaCreateFromIArray(l_int32*, l_int32)
*/
public static native L_Dna l_dnaCreateFromIArray(IntBuffer iarray, int size);
/**
* Original signature :
* L_DNA* l_dnaCreateFromDArray(l_float64*, l_int32, l_int32)
*/
public static native L_Dna l_dnaCreateFromDArray(DoubleBuffer darray, int size, int copyflag);
/**
* Original signature :
* L_DNA* l_dnaMakeSequence(l_float64, l_float64, l_int32)
*/
public static native L_Dna l_dnaMakeSequence(double startval, double increment, int size);
/**
* Original signature : void l_dnaDestroy(L_DNA**)
*/
public static native void l_dnaDestroy(PointerByReference pda);
/**
* Original signature : L_DNA* l_dnaCopy(L_DNA*)
*/
public static native L_Dna l_dnaCopy(L_Dna da);
/**
* Original signature : L_DNA* l_dnaClone(L_DNA*)
*/
public static native L_Dna l_dnaClone(L_Dna da);
/**
* Original signature : l_ok l_dnaEmpty(L_DNA*)
*/
public static native int l_dnaEmpty(L_Dna da);
/**
* Original signature : l_ok l_dnaAddNumber(L_DNA*, l_float64)
*/
public static native int l_dnaAddNumber(L_Dna da, double val);
/**
* Original signature :
* l_ok l_dnaInsertNumber(L_DNA*, l_int32, l_float64)
*/
public static native int l_dnaInsertNumber(L_Dna da, int index, double val);
/**
* Original signature : l_ok l_dnaRemoveNumber(L_DNA*, l_int32)
*/
public static native int l_dnaRemoveNumber(L_Dna da, int index);
/**
* Original signature :
* l_ok l_dnaReplaceNumber(L_DNA*, l_int32, l_float64)
*/
public static native int l_dnaReplaceNumber(L_Dna da, int index, double val);
/**
* Original signature : l_int32 l_dnaGetCount(L_DNA*)
*/
public static native int l_dnaGetCount(L_Dna da);
/**
* Original signature : l_ok l_dnaSetCount(L_DNA*, l_int32)
*/
public static native int l_dnaSetCount(L_Dna da, int newcount);
/**
* Original signature :
* l_ok l_dnaGetDValue(L_DNA*, l_int32, l_float64*)
*/
public static native int l_dnaGetDValue(L_Dna da, int index, DoubleBuffer pval);
/**
* Original signature :
* l_ok l_dnaGetIValue(L_DNA*, l_int32, l_int32*)
*/
public static native int l_dnaGetIValue(L_Dna da, int index, IntBuffer pival);
/**
* Original signature :
* l_ok l_dnaSetValue(L_DNA*, l_int32, l_float64)
*/
public static native int l_dnaSetValue(L_Dna da, int index, double val);
/**
* Original signature :
* l_ok l_dnaShiftValue(L_DNA*, l_int32, l_float64)
*/
public static native int l_dnaShiftValue(L_Dna da, int index, double diff);
/**
* Original signature : l_int32* l_dnaGetIArray(L_DNA*)
*/
public static native IntByReference l_dnaGetIArray(L_Dna da);
/**
* Original signature :
* l_float64* l_dnaGetDArray(L_DNA*, l_int32)
*/
public static native DoubleByReference l_dnaGetDArray(L_Dna da, int copyflag);
/**
* Original signature : l_int32 l_dnaGetRefcount(L_DNA*)
*/
public static native int l_dnaGetRefcount(L_Dna da);
/**
* Original signature :
* l_ok l_dnaChangeRefcount(L_DNA*, l_int32)
*/
public static native int l_dnaChangeRefcount(L_Dna da, int delta);
/**
* Original signature :
* l_ok l_dnaGetParameters(L_DNA*, l_float64*, l_float64*)
*/
public static native int l_dnaGetParameters(L_Dna da, DoubleBuffer pstartx, DoubleBuffer pdelx);
/**
* Original signature :
* l_ok l_dnaSetParameters(L_DNA*, l_float64, l_float64)
*/
public static native int l_dnaSetParameters(L_Dna da, double startx, double delx);
/**
* Original signature :
* l_ok l_dnaCopyParameters(L_DNA*, L_DNA*)
*/
public static native int l_dnaCopyParameters(L_Dna dad, L_Dna das);
/**
* Original signature : L_DNA* l_dnaRead(const char*)
*/
public static native L_Dna l_dnaRead(String filename);
/**
* Original signature : L_DNA* l_dnaReadStream(FILE*)
*/
public static native L_Dna l_dnaReadStream(FILE fp);
/**
* Original signature : l_ok l_dnaWrite(const char*, L_DNA*)
*/
public static native int l_dnaWrite(String filename, L_Dna da);
/**
* Original signature : l_ok l_dnaWriteStream(FILE*, L_DNA*)
*/
public static native int l_dnaWriteStream(FILE fp, L_Dna da);
/**
* Original signature : L_DNAA* l_dnaaCreate(l_int32)
*/
public static native L_Dnaa l_dnaaCreate(int n);
/**
* Original signature :
* L_DNAA* l_dnaaCreateFull(l_int32, l_int32)
*/
public static native L_Dnaa l_dnaaCreateFull(int nptr, int n);
/**
* Original signature : l_ok l_dnaaTruncate(L_DNAA*)
*/
public static native int l_dnaaTruncate(L_Dnaa daa);
/**
* Original signature : void l_dnaaDestroy(L_DNAA**)
*/
public static native void l_dnaaDestroy(PointerByReference pdaa);
/**
* Original signature :
* l_ok l_dnaaAddDna(L_DNAA*, L_DNA*, l_int32)
*/
public static native int l_dnaaAddDna(L_Dnaa daa, L_Dna da, int copyflag);
/**
* Original signature : l_int32 l_dnaaGetCount(L_DNAA*)
*/
public static native int l_dnaaGetCount(L_Dnaa daa);
/**
* Original signature :
* l_int32 l_dnaaGetDnaCount(L_DNAA*, l_int32)
*/
public static native int l_dnaaGetDnaCount(L_Dnaa daa, int index);
/**
* Original signature : l_int32 l_dnaaGetNumberCount(L_DNAA*)
*/
public static native int l_dnaaGetNumberCount(L_Dnaa daa);
/**
* Original signature :
* L_DNA* l_dnaaGetDna(L_DNAA*, l_int32, l_int32)
*/
public static native L_Dna l_dnaaGetDna(L_Dnaa daa, int index, int accessflag);
/**
* Original signature :
* l_ok l_dnaaReplaceDna(L_DNAA*, l_int32, L_DNA*)
*/
public static native int l_dnaaReplaceDna(L_Dnaa daa, int index, L_Dna da);
/**
* Original signature :
* l_ok l_dnaaGetValue(L_DNAA*, l_int32, l_int32, l_float64*)
*/
public static native int l_dnaaGetValue(L_Dnaa daa, int i, int j, DoubleBuffer pval);
/**
* Original signature :
* l_ok l_dnaaAddNumber(L_DNAA*, l_int32, l_float64)
*/
public static native int l_dnaaAddNumber(L_Dnaa daa, int index, double val);
/**
* Original signature : L_DNAA* l_dnaaRead(const char*)
*/
public static native L_Dnaa l_dnaaRead(String filename);
/**
* Original signature : L_DNAA* l_dnaaReadStream(FILE*)
*/
public static native L_Dnaa l_dnaaReadStream(FILE fp);
/**
* Original signature : l_ok l_dnaaWrite(const char*, L_DNAA*)
*/
public static native int l_dnaaWrite(String filename, L_Dnaa daa);
/**
* Original signature : l_ok l_dnaaWriteStream(FILE*, L_DNAA*)
*/
public static native int l_dnaaWriteStream(FILE fp, L_Dnaa daa);
/**
* Original signature :
* l_ok l_dnaJoin(L_DNA*, L_DNA*, l_int32, l_int32)
*/
public static native int l_dnaJoin(L_Dna dad, L_Dna das, int istart, int iend);
/**
* Original signature : L_DNA* l_dnaaFlattenToDna(L_DNAA*)
*/
public static native L_Dna l_dnaaFlattenToDna(L_Dnaa daa);
/**
* Original signature : NUMA* l_dnaConvertToNuma(L_DNA*)
*/
public static native Numa l_dnaConvertToNuma(L_Dna da);
/**
* Original signature : L_DNA* numaConvertToDna(NUMA*)
*/
public static native L_Dna numaConvertToDna(Numa na);
/**
* Original signature : L_DNA* l_dnaUnionByAset(L_DNA*, L_DNA*)
*/
public static native L_Dna l_dnaUnionByAset(L_Dna da1, L_Dna da2);
/**
* Original signature : L_DNA* l_dnaRemoveDupsByAset(L_DNA*)
*/
public static native L_Dna l_dnaRemoveDupsByAset(L_Dna das);
/**
* Original signature :
* L_DNA* l_dnaIntersectionByAset(L_DNA*, L_DNA*)
*/
public static native L_Dna l_dnaIntersectionByAset(L_Dna da1, L_Dna da2);
/**
* Original signature : L_ASET* l_asetCreateFromDna(L_DNA*)
*/
public static native L_Rbtree l_asetCreateFromDna(L_Dna da);
/**
* Original signature : L_DNA* l_dnaDiffAdjValues(L_DNA*)
*/
public static native L_Dna l_dnaDiffAdjValues(L_Dna das);
/**
* Original signature :
* L_DNAHASH* l_dnaHashCreate(l_int32, l_int32)
*/
public static native L_DnaHash l_dnaHashCreate(int nbuckets, int initsize);
/**
* Original signature : void l_dnaHashDestroy(L_DNAHASH**)
*/
public static native void l_dnaHashDestroy(PointerByReference pdahash);
/**
* Original signature : l_int32 l_dnaHashGetCount(L_DNAHASH*)
*/
public static native int l_dnaHashGetCount(L_DnaHash dahash);
/**
* Original signature :
* l_int32 l_dnaHashGetTotalCount(L_DNAHASH*)
*/
public static native int l_dnaHashGetTotalCount(L_DnaHash dahash);
/**
* Original signature :
* L_DNA* l_dnaHashGetDna(L_DNAHASH*, l_uint64, l_int32)
*/
public static native L_Dna l_dnaHashGetDna(L_DnaHash dahash, long key, int copyflag);
/**
* Original signature :
* l_ok l_dnaHashAdd(L_DNAHASH*, l_uint64, l_float64)
*/
public static native int l_dnaHashAdd(L_DnaHash dahash, long key, double value);
/**
* Original signature :
* L_DNAHASH* l_dnaHashCreateFromDna(L_DNA*)
*/
public static native L_DnaHash l_dnaHashCreateFromDna(L_Dna da);
/**
* Original signature :
* l_ok l_dnaRemoveDupsByHash(L_DNA*, L_DNA**, L_DNAHASH**)
*/
public static native int l_dnaRemoveDupsByHash(L_Dna das, PointerByReference pdad, PointerByReference pdahash);
/**
* Original signature :
* l_ok l_dnaMakeHistoByHash(L_DNA*, L_DNAHASH**, L_DNA**, L_DNA**)
*/
public static native int l_dnaMakeHistoByHash(L_Dna das, PointerByReference pdahash, PointerByReference pdav, PointerByReference pdac);
/**
* Original signature :
* L_DNA* l_dnaIntersectionByHash(L_DNA*, L_DNA*)
*/
public static native L_Dna l_dnaIntersectionByHash(L_Dna da1, L_Dna da2);
/**
* Original signature :
* l_ok l_dnaFindValByHash(L_DNA*, L_DNAHASH*, l_float64, l_int32*)
*/
public static native int l_dnaFindValByHash(L_Dna da, L_DnaHash dahash, double val, IntBuffer pindex);
/**
* Original signature :
* PIX* pixMorphDwa_2(PIX*, PIX*, l_int32, char*)
*/
public static native Pix pixMorphDwa_2(Pix pixd, Pix pixs, int operation, ByteBuffer selname);
/**
* Original signature :
* PIX* pixFMorphopGen_2(PIX*, PIX*, l_int32, char*)
*/
public static native Pix pixFMorphopGen_2(Pix pixd, Pix pixs, int operation, ByteBuffer selname);
/**
* Original signature :
* l_int32 fmorphopgen_low_2(l_uint32*, l_int32, l_int32, l_int32, l_uint32*, l_int32, l_int32)
*/
public static native int fmorphopgen_low_2(IntBuffer datad, int w, int h, int wpld, IntBuffer datas, int wpls, int index);
/**
* Original signature : PIX* pixSobelEdgeFilter(PIX*, l_int32)
*/
public static native Pix pixSobelEdgeFilter(Pix pixs, int orientflag);
/**
* Original signature :
* PIX* pixTwoSidedEdgeFilter(PIX*, l_int32)
*/
public static native Pix pixTwoSidedEdgeFilter(Pix pixs, int orientflag);
/**
* Original signature :
* l_ok pixMeasureEdgeSmoothness(PIX*, l_int32, l_int32, l_int32, l_float32*, l_float32*, l_float32*, const char*)
*/
public static native int pixMeasureEdgeSmoothness(Pix pixs, int side, int minjump, int minreversal, FloatBuffer pjpl, FloatBuffer pjspl, FloatBuffer prpl, String debugfile);
/**
* Original signature :
* NUMA* pixGetEdgeProfile(PIX*, l_int32, const char*)
*/
public static native Numa pixGetEdgeProfile(Pix pixs, int side, String debugfile);
/**
* Original signature :
* l_ok pixGetLastOffPixelInRun(PIX*, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixGetLastOffPixelInRun(Pix pixs, int x, int y, int direction, IntBuffer ploc);
/**
* Original signature :
* l_int32 pixGetLastOnPixelInRun(PIX*, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixGetLastOnPixelInRun(Pix pixs, int x, int y, int direction, IntBuffer ploc);
/**
* Original signature :
* char* encodeBase64(const l_uint8*, l_int32, l_int32*)
*/
public static native Pointer encodeBase64(ByteBuffer inarray, int insize, IntBuffer poutsize);
/**
* Original signature :
* l_uint8* decodeBase64(const char*, l_int32, l_int32*)
*/
public static native Pointer decodeBase64(String inarray, int insize, IntBuffer poutsize);
/**
* Original signature :
* char* encodeAscii85(const l_uint8*, l_int32, l_int32*)
*/
public static native Pointer encodeAscii85(ByteBuffer inarray, int insize, IntBuffer poutsize);
/**
* Original signature :
* l_uint8* decodeAscii85(const char*, l_int32, l_int32*)
*/
public static native Pointer decodeAscii85(String inarray, int insize, IntBuffer poutsize);
/**
* Original signature :
* char* reformatPacked64(const char*, l_int32, l_int32, l_int32, l_int32, l_int32*)
*/
public static native Pointer reformatPacked64(String inarray, int insize, int leadspace, int linechars, int addquotes, IntBuffer poutsize);
/**
* Original signature :
* PIX* pixGammaTRC(PIX*, PIX*, l_float32, l_int32, l_int32)
*/
public static native Pix pixGammaTRC(Pix pixd, Pix pixs, float gamma, int minval, int maxval);
/**
* Original signature :
* PIX* pixGammaTRCMasked(PIX*, PIX*, PIX*, l_float32, l_int32, l_int32)
*/
public static native Pix pixGammaTRCMasked(Pix pixd, Pix pixs, Pix pixm, float gamma, int minval, int maxval);
/**
* Original signature :
* PIX* pixGammaTRCWithAlpha(PIX*, PIX*, l_float32, l_int32, l_int32)
*/
public static native Pix pixGammaTRCWithAlpha(Pix pixd, Pix pixs, float gamma, int minval, int maxval);
/**
* Original signature :
* NUMA* numaGammaTRC(l_float32, l_int32, l_int32)
*/
public static native Numa numaGammaTRC(float gamma, int minval, int maxval);
/**
* Original signature :
* PIX* pixContrastTRC(PIX*, PIX*, l_float32)
*/
public static native Pix pixContrastTRC(Pix pixd, Pix pixs, float factor);
/**
* Original signature :
* PIX* pixContrastTRCMasked(PIX*, PIX*, PIX*, l_float32)
*/
public static native Pix pixContrastTRCMasked(Pix pixd, Pix pixs, Pix pixm, float factor);
/**
* Original signature : NUMA* numaContrastTRC(l_float32)
*/
public static native Numa numaContrastTRC(float factor);
/**
* Original signature :
* PIX* pixEqualizeTRC(PIX*, PIX*, l_float32, l_int32)
*/
public static native Pix pixEqualizeTRC(Pix pixd, Pix pixs, float fract, int factor);
/**
* Original signature :
* NUMA* numaEqualizeTRC(PIX*, l_float32, l_int32)
*/
public static native Numa numaEqualizeTRC(Pix pix, float fract, int factor);
/**
* Original signature : l_int32 pixTRCMap(PIX*, PIX*, NUMA*)
*/
public static native int pixTRCMap(Pix pixs, Pix pixm, Numa na);
/**
* Original signature :
* l_int32 pixTRCMapGeneral(PIX*, PIX*, NUMA*, NUMA*, NUMA*)
*/
public static native int pixTRCMapGeneral(Pix pixs, Pix pixm, Numa nar, Numa nag, Numa nab);
/**
* Original signature :
* PIX* pixUnsharpMasking(PIX*, l_int32, l_float32)
*/
public static native Pix pixUnsharpMasking(Pix pixs, int halfwidth, float fract);
/**
* Original signature :
* PIX* pixUnsharpMaskingGray(PIX*, l_int32, l_float32)
*/
public static native Pix pixUnsharpMaskingGray(Pix pixs, int halfwidth, float fract);
/**
* Original signature :
* PIX* pixUnsharpMaskingFast(PIX*, l_int32, l_float32, l_int32)
*/
public static native Pix pixUnsharpMaskingFast(Pix pixs, int halfwidth, float fract, int direction);
/**
* Original signature :
* PIX* pixUnsharpMaskingGrayFast(PIX*, l_int32, l_float32, l_int32)
*/
public static native Pix pixUnsharpMaskingGrayFast(Pix pixs, int halfwidth, float fract, int direction);
/**
* Original signature :
* PIX* pixUnsharpMaskingGray1D(PIX*, l_int32, l_float32, l_int32)
*/
public static native Pix pixUnsharpMaskingGray1D(Pix pixs, int halfwidth, float fract, int direction);
/**
* Original signature :
* PIX* pixUnsharpMaskingGray2D(PIX*, l_int32, l_float32)
*/
public static native Pix pixUnsharpMaskingGray2D(Pix pixs, int halfwidth, float fract);
/**
* Original signature :
* PIX* pixModifyHue(PIX*, PIX*, l_float32)
*/
public static native Pix pixModifyHue(Pix pixd, Pix pixs, float fract);
/**
* Original signature :
* PIX* pixModifySaturation(PIX*, PIX*, l_float32)
*/
public static native Pix pixModifySaturation(Pix pixd, Pix pixs, float fract);
/**
* Original signature :
* l_int32 pixMeasureSaturation(PIX*, l_int32, l_float32*)
*/
public static native int pixMeasureSaturation(Pix pixs, int factor, FloatBuffer psat);
/**
* Original signature :
* PIX* pixModifyBrightness(PIX*, PIX*, l_float32)
*/
public static native Pix pixModifyBrightness(Pix pixd, Pix pixs, float fract);
/**
* Original signature :
* PIX* pixMosaicColorShiftRGB(PIX*, l_float32, l_float32, l_float32, l_float32, l_int32)
*/
public static native Pix pixMosaicColorShiftRGB(Pix pixs, float roff, float goff, float boff, float delta, int nincr);
/**
* Original signature :
* PIX* pixColorShiftRGB(PIX*, l_float32, l_float32, l_float32)
*/
public static native Pix pixColorShiftRGB(Pix pixs, float rfract, float gfract, float bfract);
/**
* Original signature :
* PIX* pixDarkenGray(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixDarkenGray(Pix pixd, Pix pixs, int thresh, int satlimit);
/**
* Original signature :
* PIX* pixMultConstantColor(PIX*, l_float32, l_float32, l_float32)
*/
public static native Pix pixMultConstantColor(Pix pixs, float rfact, float gfact, float bfact);
/**
* Original signature :
* PIX* pixMultMatrixColor(PIX*, L_KERNEL*)
*/
public static native Pix pixMultMatrixColor(Pix pixs, L_Kernel kel);
/**
* Original signature :
* PIX* pixHalfEdgeByBandpass(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixHalfEdgeByBandpass(Pix pixs, int sm1h, int sm1v, int sm2h, int sm2v);
/**
* Original signature :
* l_ok fhmtautogen(SELA*, l_int32, const char*)
*/
public static native int fhmtautogen(Sela sela, int fileindex, String filename);
/**
* Original signature :
* l_ok fhmtautogen1(SELA*, l_int32, const char*)
*/
public static native int fhmtautogen1(Sela sela, int fileindex, String filename);
/**
* Original signature :
* l_ok fhmtautogen2(SELA*, l_int32, const char*)
*/
public static native int fhmtautogen2(Sela sela, int fileindex, String filename);
/**
* Original signature :
* PIX* pixHMTDwa_1(PIX*, PIX*, const char*)
*/
public static native Pix pixHMTDwa_1(Pix pixd, Pix pixs, String selname);
/**
* Original signature :
* PIX* pixFHMTGen_1(PIX*, PIX*, const char*)
*/
public static native Pix pixFHMTGen_1(Pix pixd, Pix pixs, String selname);
/**
* Original signature :
* l_int32 fhmtgen_low_1(l_uint32*, l_int32, l_int32, l_int32, l_uint32*, l_int32, l_int32)
*/
public static native int fhmtgen_low_1(IntBuffer datad, int w, int h, int wpld, IntBuffer datas, int wpls, int index);
/**
* Original signature :
* l_ok pixItalicWords(PIX*, BOXA*, PIX*, BOXA**, l_int32)
*/
public static native int pixItalicWords(Pix pixs, Boxa boxaw, Pix pixw, PointerByReference pboxa, int debugflag);
/**
* Original signature :
* PIX* pixOrientCorrect(PIX*, l_float32, l_float32, l_float32*, l_float32*, l_int32*, l_int32)
*/
public static native Pix pixOrientCorrect(Pix pixs, float minupconf, float minratio, FloatBuffer pupconf, FloatBuffer pleftconf, IntBuffer protation, int debug);
/**
* Original signature :
* l_ok pixOrientDetect(PIX*, l_float32*, l_float32*, l_int32, l_int32)
*/
public static native int pixOrientDetect(Pix pixs, FloatBuffer pupconf, FloatBuffer pleftconf, int mincount, int debug);
/**
* Original signature :
* l_ok makeOrientDecision(l_float32, l_float32, l_float32, l_float32, l_int32*, l_int32)
*/
public static native int makeOrientDecision(float upconf, float leftconf, float minupconf, float minratio, IntBuffer porient, int debug);
/**
* Original signature :
* l_ok pixUpDownDetect(PIX*, l_float32*, l_int32, l_int32)
*/
public static native int pixUpDownDetect(Pix pixs, FloatBuffer pconf, int mincount, int debug);
/**
* Original signature :
* l_ok pixUpDownDetectGeneral(PIX*, l_float32*, l_int32, l_int32, l_int32)
*/
public static native int pixUpDownDetectGeneral(Pix pixs, FloatBuffer pconf, int mincount, int npixels, int debug);
/**
* Original signature :
* l_ok pixOrientDetectDwa(PIX*, l_float32*, l_float32*, l_int32, l_int32)
*/
public static native int pixOrientDetectDwa(Pix pixs, FloatBuffer pupconf, FloatBuffer pleftconf, int mincount, int debug);
/**
* Original signature :
* l_ok pixUpDownDetectDwa(PIX*, l_float32*, l_int32, l_int32)
*/
public static native int pixUpDownDetectDwa(Pix pixs, FloatBuffer pconf, int mincount, int debug);
/**
* Original signature :
* l_ok pixUpDownDetectGeneralDwa(PIX*, l_float32*, l_int32, l_int32, l_int32)
*/
public static native int pixUpDownDetectGeneralDwa(Pix pixs, FloatBuffer pconf, int mincount, int npixels, int debug);
/**
* Original signature :
* l_ok pixMirrorDetect(PIX*, l_float32*, l_int32, l_int32)
*/
public static native int pixMirrorDetect(Pix pixs, FloatBuffer pconf, int mincount, int debug);
/**
* Original signature :
* l_ok pixMirrorDetectDwa(PIX*, l_float32*, l_int32, l_int32)
*/
public static native int pixMirrorDetectDwa(Pix pixs, FloatBuffer pconf, int mincount, int debug);
/**
* Original signature :
* PIX* pixFlipFHMTGen(PIX*, PIX*, const char*)
*/
public static native Pix pixFlipFHMTGen(Pix pixd, Pix pixs, String selname);
/**
* Original signature :
* l_ok fmorphautogen(SELA*, l_int32, const char*)
*/
public static native int fmorphautogen(Sela sela, int fileindex, String filename);
/**
* Original signature :
* l_ok fmorphautogen1(SELA*, l_int32, const char*)
*/
public static native int fmorphautogen1(Sela sela, int fileindex, String filename);
/**
* Original signature :
* l_int32 fmorphautogen2(SELA*, l_int32, const char*)
*/
public static native int fmorphautogen2(Sela sela, int fileindex, String filename);
/**
* Original signature :
* PIX* pixMorphDwa_1(PIX*, PIX*, l_int32, char*)
*/
public static native Pix pixMorphDwa_1(Pix pixd, Pix pixs, int operation, ByteBuffer selname);
/**
* Original signature :
* PIX* pixFMorphopGen_1(PIX*, PIX*, l_int32, char*)
*/
public static native Pix pixFMorphopGen_1(Pix pixd, Pix pixs, int operation, ByteBuffer selname);
/**
* Original signature :
* l_int32 fmorphopgen_low_1(l_uint32*, l_int32, l_int32, l_int32, l_uint32*, l_int32, l_int32)
*/
public static native int fmorphopgen_low_1(IntBuffer datad, int w, int h, int wpld, IntBuffer datas, int wpls, int index);
/**
* Original signature : FPIX* fpixCreate(l_int32, l_int32)
*/
public static native FPix fpixCreate(int width, int height);
/**
* Original signature : FPIX* fpixCreateTemplate(FPIX*)
*/
public static native FPix fpixCreateTemplate(FPix fpixs);
/**
* Original signature : FPIX* fpixClone(FPIX*)
*/
public static native FPix fpixClone(FPix fpix);
/**
* Original signature : FPIX* fpixCopy(FPIX*, FPIX*)
*/
public static native FPix fpixCopy(FPix fpixd, FPix fpixs);
/**
* Original signature : l_ok fpixResizeImageData(FPIX*, FPIX*)
*/
public static native int fpixResizeImageData(FPix fpixd, FPix fpixs);
/**
* Original signature : void fpixDestroy(FPIX**)
*/
public static native void fpixDestroy(PointerByReference pfpix);
/**
* Original signature :
* l_ok fpixGetDimensions(FPIX*, l_int32*, l_int32*)
*/
public static native int fpixGetDimensions(FPix fpix, IntBuffer pw, IntBuffer ph);
/**
* Original signature :
* l_ok fpixSetDimensions(FPIX*, l_int32, l_int32)
*/
public static native int fpixSetDimensions(FPix fpix, int w, int h);
/**
* Original signature : l_int32 fpixGetWpl(FPIX*)
*/
public static native int fpixGetWpl(FPix fpix);
/**
* Original signature : l_ok fpixSetWpl(FPIX*, l_int32)
*/
public static native int fpixSetWpl(FPix fpix, int wpl);
/**
* Original signature : l_int32 fpixGetRefcount(FPIX*)
*/
public static native int fpixGetRefcount(FPix fpix);
/**
* Original signature : l_ok fpixChangeRefcount(FPIX*, l_int32)
*/
public static native int fpixChangeRefcount(FPix fpix, int delta);
/**
* Original signature :
* l_ok fpixGetResolution(FPIX*, l_int32*, l_int32*)
*/
public static native int fpixGetResolution(FPix fpix, IntBuffer pxres, IntBuffer pyres);
/**
* Original signature :
* l_ok fpixSetResolution(FPIX*, l_int32, l_int32)
*/
public static native int fpixSetResolution(FPix fpix, int xres, int yres);
/**
* Original signature : l_ok fpixCopyResolution(FPIX*, FPIX*)
*/
public static native int fpixCopyResolution(FPix fpixd, FPix fpixs);
/**
* Original signature : l_float32* fpixGetData(FPIX*)
*/
public static native FloatByReference fpixGetData(FPix fpix);
/**
* Original signature : l_ok fpixSetData(FPIX*, l_float32*)
*/
public static native int fpixSetData(FPix fpix, FloatBuffer data);
/**
* Original signature :
* l_ok fpixGetPixel(FPIX*, l_int32, l_int32, l_float32*)
*/
public static native int fpixGetPixel(FPix fpix, int x, int y, FloatBuffer pval);
/**
* Original signature :
* l_ok fpixSetPixel(FPIX*, l_int32, l_int32, l_float32)
*/
public static native int fpixSetPixel(FPix fpix, int x, int y, float val);
/**
* Original signature : FPIXA* fpixaCreate(l_int32)
*/
public static native FPixa fpixaCreate(int n);
/**
* Original signature : FPIXA* fpixaCopy(FPIXA*, l_int32)
*/
public static native FPixa fpixaCopy(FPixa fpixa, int copyflag);
/**
* Original signature : void fpixaDestroy(FPIXA**)
*/
public static native void fpixaDestroy(PointerByReference pfpixa);
/**
* Original signature :
* l_ok fpixaAddFPix(FPIXA*, FPIX*, l_int32)
*/
public static native int fpixaAddFPix(FPixa fpixa, FPix fpix, int copyflag);
/**
* Original signature : l_int32 fpixaGetCount(FPIXA*)
*/
public static native int fpixaGetCount(FPixa fpixa);
/**
* Original signature :
* l_ok fpixaChangeRefcount(FPIXA*, l_int32)
*/
public static native int fpixaChangeRefcount(FPixa fpixa, int delta);
/**
* Original signature :
* FPIX* fpixaGetFPix(FPIXA*, l_int32, l_int32)
*/
public static native FPix fpixaGetFPix(FPixa fpixa, int index, int accesstype);
/**
* Original signature :
* l_ok fpixaGetFPixDimensions(FPIXA*, l_int32, l_int32*, l_int32*)
*/
public static native int fpixaGetFPixDimensions(FPixa fpixa, int index, IntBuffer pw, IntBuffer ph);
/**
* Original signature :
* l_float32* fpixaGetData(FPIXA*, l_int32)
*/
public static native FloatByReference fpixaGetData(FPixa fpixa, int index);
/**
* Original signature :
* l_ok fpixaGetPixel(FPIXA*, l_int32, l_int32, l_int32, l_float32*)
*/
public static native int fpixaGetPixel(FPixa fpixa, int index, int x, int y, FloatBuffer pval);
/**
* Original signature :
* l_ok fpixaSetPixel(FPIXA*, l_int32, l_int32, l_int32, l_float32)
*/
public static native int fpixaSetPixel(FPixa fpixa, int index, int x, int y, float val);
/**
* Original signature : DPIX* dpixCreate(l_int32, l_int32)
*/
public static native DPix dpixCreate(int width, int height);
/**
* Original signature : DPIX* dpixCreateTemplate(DPIX*)
*/
public static native DPix dpixCreateTemplate(DPix dpixs);
/**
* Original signature : DPIX* dpixClone(DPIX*)
*/
public static native DPix dpixClone(DPix dpix);
/**
* Original signature : DPIX* dpixCopy(DPIX*, DPIX*)
*/
public static native DPix dpixCopy(DPix dpixd, DPix dpixs);
/**
* Original signature : l_ok dpixResizeImageData(DPIX*, DPIX*)
*/
public static native int dpixResizeImageData(DPix dpixd, DPix dpixs);
/**
* Original signature : void dpixDestroy(DPIX**)
*/
public static native void dpixDestroy(PointerByReference pdpix);
/**
* Original signature :
* l_ok dpixGetDimensions(DPIX*, l_int32*, l_int32*)
*/
public static native int dpixGetDimensions(DPix dpix, IntBuffer pw, IntBuffer ph);
/**
* Original signature :
* l_ok dpixSetDimensions(DPIX*, l_int32, l_int32)
*/
public static native int dpixSetDimensions(DPix dpix, int w, int h);
/**
* Original signature : l_int32 dpixGetWpl(DPIX*)
*/
public static native int dpixGetWpl(DPix dpix);
/**
* Original signature : l_ok dpixSetWpl(DPIX*, l_int32)
*/
public static native int dpixSetWpl(DPix dpix, int wpl);
/**
* Original signature : l_int32 dpixGetRefcount(DPIX*)
*/
public static native int dpixGetRefcount(DPix dpix);
/**
* Original signature : l_ok dpixChangeRefcount(DPIX*, l_int32)
*/
public static native int dpixChangeRefcount(DPix dpix, int delta);
/**
* Original signature :
* l_ok dpixGetResolution(DPIX*, l_int32*, l_int32*)
*/
public static native int dpixGetResolution(DPix dpix, IntBuffer pxres, IntBuffer pyres);
/**
* Original signature :
* l_ok dpixSetResolution(DPIX*, l_int32, l_int32)
*/
public static native int dpixSetResolution(DPix dpix, int xres, int yres);
/**
* Original signature : l_ok dpixCopyResolution(DPIX*, DPIX*)
*/
public static native int dpixCopyResolution(DPix dpixd, DPix dpixs);
/**
* Original signature : l_float64* dpixGetData(DPIX*)
*/
public static native DoubleByReference dpixGetData(DPix dpix);
/**
* Original signature : l_ok dpixSetData(DPIX*, l_float64*)
*/
public static native int dpixSetData(DPix dpix, DoubleBuffer data);
/**
* Original signature :
* l_ok dpixGetPixel(DPIX*, l_int32, l_int32, l_float64*)
*/
public static native int dpixGetPixel(DPix dpix, int x, int y, DoubleBuffer pval);
/**
* Original signature :
* l_ok dpixSetPixel(DPIX*, l_int32, l_int32, l_float64)
*/
public static native int dpixSetPixel(DPix dpix, int x, int y, double val);
/**
* Original signature : FPIX* fpixRead(const char*)
*/
public static native FPix fpixRead(String filename);
/**
* Original signature : FPIX* fpixReadStream(FILE*)
*/
public static native FPix fpixReadStream(FILE fp);
/**
* Original signature :
* FPIX* fpixReadMem(const l_uint8*, size_t)
*/
public static native FPix fpixReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok fpixWrite(const char*, FPIX*)
*/
public static native int fpixWrite(String filename, FPix fpix);
/**
* Original signature : l_ok fpixWriteStream(FILE*, FPIX*)
*/
public static native int fpixWriteStream(FILE fp, FPix fpix);
/**
* Original signature :
* l_ok fpixWriteMem(l_uint8**, size_t*, FPIX*)
*/
public static native int fpixWriteMem(PointerByReference pdata, NativeSizeByReference psize, FPix fpix);
/**
* Original signature : FPIX* fpixEndianByteSwap(FPIX*, FPIX*)
*/
public static native FPix fpixEndianByteSwap(FPix fpixd, FPix fpixs);
/**
* Original signature : DPIX* dpixRead(const char*)
*/
public static native DPix dpixRead(String filename);
/**
* Original signature : DPIX* dpixReadStream(FILE*)
*/
public static native DPix dpixReadStream(FILE fp);
/**
* Original signature :
* DPIX* dpixReadMem(const l_uint8*, size_t)
*/
public static native DPix dpixReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok dpixWrite(const char*, DPIX*)
*/
public static native int dpixWrite(String filename, DPix dpix);
/**
* Original signature : l_ok dpixWriteStream(FILE*, DPIX*)
*/
public static native int dpixWriteStream(FILE fp, DPix dpix);
/**
* Original signature :
* l_ok dpixWriteMem(l_uint8**, size_t*, DPIX*)
*/
public static native int dpixWriteMem(PointerByReference pdata, NativeSizeByReference psize, DPix dpix);
/**
* Original signature : DPIX* dpixEndianByteSwap(DPIX*, DPIX*)
*/
public static native DPix dpixEndianByteSwap(DPix dpixd, DPix dpixs);
/**
* Original signature :
* l_ok fpixPrintStream(FILE*, FPIX*, l_int32)
*/
public static native int fpixPrintStream(FILE fp, FPix fpix, int factor);
/**
* Original signature : FPIX* pixConvertToFPix(PIX*, l_int32)
*/
public static native FPix pixConvertToFPix(Pix pixs, int ncomps);
/**
* Original signature : DPIX* pixConvertToDPix(PIX*, l_int32)
*/
public static native DPix pixConvertToDPix(Pix pixs, int ncomps);
/**
* Original signature :
* PIX* fpixConvertToPix(FPIX*, l_int32, l_int32, l_int32)
*/
public static native Pix fpixConvertToPix(FPix fpixs, int outdepth, int negvals, int errorflag);
/**
* Original signature : PIX* fpixDisplayMaxDynamicRange(FPIX*)
*/
public static native Pix fpixDisplayMaxDynamicRange(FPix fpixs);
/**
* Original signature : DPIX* fpixConvertToDPix(FPIX*)
*/
public static native DPix fpixConvertToDPix(FPix fpix);
/**
* Original signature :
* PIX* dpixConvertToPix(DPIX*, l_int32, l_int32, l_int32)
*/
public static native Pix dpixConvertToPix(DPix dpixs, int outdepth, int negvals, int errorflag);
/**
* Original signature : FPIX* dpixConvertToFPix(DPIX*)
*/
public static native FPix dpixConvertToFPix(DPix dpix);
/**
* Original signature :
* l_ok fpixGetMin(FPIX*, l_float32*, l_int32*, l_int32*)
*/
public static native int fpixGetMin(FPix fpix, FloatBuffer pminval, IntBuffer pxminloc, IntBuffer pyminloc);
/**
* Original signature :
* l_ok fpixGetMax(FPIX*, l_float32*, l_int32*, l_int32*)
*/
public static native int fpixGetMax(FPix fpix, FloatBuffer pmaxval, IntBuffer pxmaxloc, IntBuffer pymaxloc);
/**
* Original signature :
* l_ok dpixGetMin(DPIX*, l_float64*, l_int32*, l_int32*)
*/
public static native int dpixGetMin(DPix dpix, DoubleBuffer pminval, IntBuffer pxminloc, IntBuffer pyminloc);
/**
* Original signature :
* l_ok dpixGetMax(DPIX*, l_float64*, l_int32*, l_int32*)
*/
public static native int dpixGetMax(DPix dpix, DoubleBuffer pmaxval, IntBuffer pxmaxloc, IntBuffer pymaxloc);
/**
* Original signature :
* FPIX* fpixScaleByInteger(FPIX*, l_int32)
*/
public static native FPix fpixScaleByInteger(FPix fpixs, int factor);
/**
* Original signature :
* DPIX* dpixScaleByInteger(DPIX*, l_int32)
*/
public static native DPix dpixScaleByInteger(DPix dpixs, int factor);
/**
* Original signature :
* FPIX* fpixLinearCombination(FPIX*, FPIX*, FPIX*, l_float32, l_float32)
*/
public static native FPix fpixLinearCombination(FPix fpixd, FPix fpixs1, FPix fpixs2, float a, float b);
/**
* Original signature :
* l_ok fpixAddMultConstant(FPIX*, l_float32, l_float32)
*/
public static native int fpixAddMultConstant(FPix fpix, float addc, float multc);
/**
* Original signature :
* DPIX* dpixLinearCombination(DPIX*, DPIX*, DPIX*, l_float32, l_float32)
*/
public static native DPix dpixLinearCombination(DPix dpixd, DPix dpixs1, DPix dpixs2, float a, float b);
/**
* Original signature :
* l_ok dpixAddMultConstant(DPIX*, l_float64, l_float64)
*/
public static native int dpixAddMultConstant(DPix dpix, double addc, double multc);
/**
* Original signature :
* l_ok fpixSetAllArbitrary(FPIX*, l_float32)
*/
public static native int fpixSetAllArbitrary(FPix fpix, float inval);
/**
* Original signature :
* l_ok dpixSetAllArbitrary(DPIX*, l_float64)
*/
public static native int dpixSetAllArbitrary(DPix dpix, double inval);
/**
* Original signature :
* FPIX* fpixAddBorder(FPIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native FPix fpixAddBorder(FPix fpixs, int left, int right, int top, int bot);
/**
* Original signature :
* FPIX* fpixRemoveBorder(FPIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native FPix fpixRemoveBorder(FPix fpixs, int left, int right, int top, int bot);
/**
* Original signature :
* FPIX* fpixAddMirroredBorder(FPIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native FPix fpixAddMirroredBorder(FPix fpixs, int left, int right, int top, int bot);
/**
* Original signature :
* FPIX* fpixAddContinuedBorder(FPIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native FPix fpixAddContinuedBorder(FPix fpixs, int left, int right, int top, int bot);
/**
* Original signature :
* FPIX* fpixAddSlopeBorder(FPIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native FPix fpixAddSlopeBorder(FPix fpixs, int left, int right, int top, int bot);
/**
* Original signature :
* l_ok fpixRasterop(FPIX*, l_int32, l_int32, l_int32, l_int32, FPIX*, l_int32, l_int32)
*/
public static native int fpixRasterop(FPix fpixd, int dx, int dy, int dw, int dh, FPix fpixs, int sx, int sy);
/**
* Original signature : FPIX* fpixRotateOrth(FPIX*, l_int32)
*/
public static native FPix fpixRotateOrth(FPix fpixs, int quads);
/**
* Original signature : FPIX* fpixRotate180(FPIX*, FPIX*)
*/
public static native FPix fpixRotate180(FPix fpixd, FPix fpixs);
/**
* Original signature : FPIX* fpixRotate90(FPIX*, l_int32)
*/
public static native FPix fpixRotate90(FPix fpixs, int direction);
/**
* Original signature : FPIX* fpixFlipLR(FPIX*, FPIX*)
*/
public static native FPix fpixFlipLR(FPix fpixd, FPix fpixs);
/**
* Original signature : FPIX* fpixFlipTB(FPIX*, FPIX*)
*/
public static native FPix fpixFlipTB(FPix fpixd, FPix fpixs);
/**
* Original signature :
* FPIX* fpixAffinePta(FPIX*, PTA*, PTA*, l_int32, l_float32)
*/
public static native FPix fpixAffinePta(FPix fpixs, Pta ptad, Pta ptas, int border, float inval);
/**
* Original signature :
* FPIX* fpixAffine(FPIX*, l_float32*, l_float32)
*/
public static native FPix fpixAffine(FPix fpixs, FloatBuffer vc, float inval);
/**
* Original signature :
* FPIX* fpixProjectivePta(FPIX*, PTA*, PTA*, l_int32, l_float32)
*/
public static native FPix fpixProjectivePta(FPix fpixs, Pta ptad, Pta ptas, int border, float inval);
/**
* Original signature :
* FPIX* fpixProjective(FPIX*, l_float32*, l_float32)
*/
public static native FPix fpixProjective(FPix fpixs, FloatBuffer vc, float inval);
/**
* Original signature :
* l_ok linearInterpolatePixelFloat(l_float32*, l_int32, l_int32, l_float32, l_float32, l_float32, l_float32*)
*/
public static native int linearInterpolatePixelFloat(FloatBuffer datas, int w, int h, float x, float y, float inval, FloatBuffer pval);
/**
* Original signature :
* PIX* fpixThresholdToPix(FPIX*, l_float32)
*/
public static native Pix fpixThresholdToPix(FPix fpix, float thresh);
/**
* Original signature :
* FPIX* pixComponentFunction(PIX*, l_float32, l_float32, l_float32, l_float32, l_float32, l_float32)
*/
public static native FPix pixComponentFunction(Pix pix, float rnum, float gnum, float bnum, float rdenom, float gdenom, float bdenom);
/**
* Original signature : PIX* pixReadStreamGif(FILE*)
*/
public static native Pix pixReadStreamGif(FILE fp);
/**
* Original signature :
* PIX* pixReadMemGif(const l_uint8*, size_t)
*/
public static native Pix pixReadMemGif(ByteBuffer cdata, NativeSize size);
/**
* Original signature : l_ok pixWriteStreamGif(FILE*, PIX*)
*/
public static native int pixWriteStreamGif(FILE fp, Pix pix);
/**
* Original signature :
* l_ok pixWriteMemGif(l_uint8**, size_t*, PIX*)
*/
public static native int pixWriteMemGif(PointerByReference pdata, NativeSizeByReference psize, Pix pix);
/**
* Original signature :
* GPLOT* gplotCreate(const char*, l_int32, const char*, const char*, const char*)
*/
public static native GPlot gplotCreate(String rootname, int outformat, String title, String xlabel, String ylabel);
/**
* Original signature : void gplotDestroy(GPLOT**)
*/
public static native void gplotDestroy(PointerByReference pgplot);
/**
* Original signature :
* l_ok gplotAddPlot(GPLOT*, NUMA*, NUMA*, l_int32, const char*)
*/
public static native int gplotAddPlot(GPlot gplot, Numa nax, Numa nay, int plotstyle, String plotlabel);
/**
* Original signature : l_ok gplotSetScaling(GPLOT*, l_int32)
*/
public static native int gplotSetScaling(GPlot gplot, int scaling);
/**
* Original signature : PIX* gplotMakeOutputPix(GPLOT*)
*/
public static native Pix gplotMakeOutputPix(GPlot gplot);
/**
* Original signature : l_ok gplotMakeOutput(GPLOT*)
*/
public static native int gplotMakeOutput(GPlot gplot);
/**
* Original signature : l_ok gplotGenCommandFile(GPLOT*)
*/
public static native int gplotGenCommandFile(GPlot gplot);
/**
* Original signature : l_ok gplotGenDataFiles(GPLOT*)
*/
public static native int gplotGenDataFiles(GPlot gplot);
/**
* Original signature :
* l_ok gplotSimple1(NUMA*, l_int32, const char*, const char*)
*/
public static native int gplotSimple1(Numa na, int outformat, String outroot, String title);
/**
* Original signature :
* l_ok gplotSimple2(NUMA*, NUMA*, l_int32, const char*, const char*)
*/
public static native int gplotSimple2(Numa na1, Numa na2, int outformat, String outroot, String title);
/**
* Original signature :
* l_ok gplotSimpleN(NUMAA*, l_int32, const char*, const char*)
*/
public static native int gplotSimpleN(Numaa naa, int outformat, String outroot, String title);
/**
* Original signature :
* PIX* gplotSimplePix1(NUMA*, const char*)
*/
public static native Pix gplotSimplePix1(Numa na, String title);
/**
* Original signature :
* PIX* gplotSimplePix2(NUMA*, NUMA*, const char*)
*/
public static native Pix gplotSimplePix2(Numa na1, Numa na2, String title);
/**
* Original signature :
* PIX* gplotSimplePixN(NUMAA*, const char*)
*/
public static native Pix gplotSimplePixN(Numaa naa, String title);
/**
* Original signature :
* GPLOT* gplotSimpleXY1(NUMA*, NUMA*, l_int32, l_int32, const char*, const char*)
*/
public static native GPlot gplotSimpleXY1(Numa nax, Numa nay, int plotstyle, int outformat, String outroot, String title);
/**
* Original signature :
* GPLOT* gplotSimpleXY2(NUMA*, NUMA*, NUMA*, l_int32, l_int32, const char*, const char*)
*/
public static native GPlot gplotSimpleXY2(Numa nax, Numa nay1, Numa nay2, int plotstyle, int outformat, String outroot, String title);
/**
* Original signature :
* GPLOT* gplotSimpleXYN(NUMA*, NUMAA*, l_int32, l_int32, const char*, const char*)
*/
public static native GPlot gplotSimpleXYN(Numa nax, Numaa naay, int plotstyle, int outformat, String outroot, String title);
/**
* Original signature :
* PIX* gplotGeneralPix1(NUMA*, l_int32, const char*, const char*, const char*, const char*)
*/
public static native Pix gplotGeneralPix1(Numa na, int plotstyle, String rootname, String title, String xlabel, String ylabel);
/**
* Original signature :
* PIX* gplotGeneralPix2(NUMA*, NUMA*, l_int32, const char*, const char*, const char*, const char*)
*/
public static native Pix gplotGeneralPix2(Numa na1, Numa na2, int plotstyle, String rootname, String title, String xlabel, String ylabel);
/**
* Original signature :
* PIX* gplotGeneralPixN(NUMA*, NUMAA*, l_int32, const char*, const char*, const char*, const char*)
*/
public static native Pix gplotGeneralPixN(Numa nax, Numaa naay, int plotstyle, String rootname, String title, String xlabel, String ylabel);
/**
* Original signature : GPLOT* gplotRead(const char*)
*/
public static native GPlot gplotRead(String filename);
/**
* Original signature : l_ok gplotWrite(const char*, GPLOT*)
*/
public static native int gplotWrite(String filename, GPlot gplot);
/**
* Original signature :
* PTA* generatePtaLine(l_int32, l_int32, l_int32, l_int32)
*/
public static native Pta generatePtaLine(int x1, int y1, int x2, int y2);
/**
* Original signature :
* PTA* generatePtaWideLine(l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pta generatePtaWideLine(int x1, int y1, int x2, int y2, int width);
/**
* Original signature : PTA* generatePtaBox(BOX*, l_int32)
*/
public static native Pta generatePtaBox(Box box, int width);
/**
* Original signature :
* PTA* generatePtaBoxa(BOXA*, l_int32, l_int32)
*/
public static native Pta generatePtaBoxa(Boxa boxa, int width, int removedups);
/**
* Original signature :
* PTA* generatePtaHashBox(BOX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pta generatePtaHashBox(Box box, int spacing, int width, int orient, int outline);
/**
* Original signature :
* PTA* generatePtaHashBoxa(BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pta generatePtaHashBoxa(Boxa boxa, int spacing, int width, int orient, int outline, int removedups);
/**
* Original signature : PTAA* generatePtaaBoxa(BOXA*)
*/
public static native Ptaa generatePtaaBoxa(Boxa boxa);
/**
* Original signature :
* PTAA* generatePtaaHashBoxa(BOXA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Ptaa generatePtaaHashBoxa(Boxa boxa, int spacing, int width, int orient, int outline);
/**
* Original signature :
* PTA* generatePtaPolyline(PTA*, l_int32, l_int32, l_int32)
*/
public static native Pta generatePtaPolyline(Pta ptas, int width, int closeflag, int removedups);
/**
* Original signature :
* PTA* generatePtaGrid(l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pta generatePtaGrid(int w, int h, int nx, int ny, int width);
/**
* Original signature : PTA* convertPtaLineTo4cc(PTA*)
*/
public static native Pta convertPtaLineTo4cc(Pta ptas);
/**
* Original signature : PTA* generatePtaFilledCircle(l_int32)
*/
public static native Pta generatePtaFilledCircle(int radius);
/**
* Original signature : PTA* generatePtaFilledSquare(l_int32)
*/
public static native Pta generatePtaFilledSquare(int side);
/**
* Original signature :
* PTA* generatePtaLineFromPt(l_int32, l_int32, l_float64, l_float64)
*/
public static native Pta generatePtaLineFromPt(int x, int y, double length, double radang);
/**
* Original signature :
* l_ok locatePtRadially(l_int32, l_int32, l_float64, l_float64, l_float64*, l_float64*)
*/
public static native int locatePtRadially(int xr, int yr, double dist, double radang, DoubleBuffer px, DoubleBuffer py);
/**
* Original signature :
* l_ok pixRenderPlotFromNuma(PIX**, NUMA*, l_int32, l_int32, l_int32, l_uint32)
*/
public static native int pixRenderPlotFromNuma(PointerByReference ppix, Numa na, int plotloc, int linewidth, int max, int color);
/**
* Original signature :
* PTA* makePlotPtaFromNuma(NUMA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pta makePlotPtaFromNuma(Numa na, int size, int plotloc, int linewidth, int max);
/**
* Original signature :
* l_ok pixRenderPlotFromNumaGen(PIX**, NUMA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_uint32)
*/
public static native int pixRenderPlotFromNumaGen(PointerByReference ppix, Numa na, int orient, int linewidth, int refpos, int max, int drawref, int color);
/**
* Original signature :
* PTA* makePlotPtaFromNumaGen(NUMA*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pta makePlotPtaFromNumaGen(Numa na, int orient, int linewidth, int refpos, int max, int drawref);
/**
* Original signature : l_ok pixRenderPta(PIX*, PTA*, l_int32)
*/
public static native int pixRenderPta(Pix pix, Pta pta, int op);
/**
* Original signature :
* l_ok pixRenderPtaArb(PIX*, PTA*, l_uint8, l_uint8, l_uint8)
*/
public static native int pixRenderPtaArb(Pix pix, Pta pta, byte rval, byte gval, byte bval);
/**
* Original signature :
* l_ok pixRenderPtaBlend(PIX*, PTA*, l_uint8, l_uint8, l_uint8, l_float32)
*/
public static native int pixRenderPtaBlend(Pix pix, Pta pta, byte rval, byte gval, byte bval, float fract);
/**
* Original signature :
* l_ok pixRenderLine(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixRenderLine(Pix pix, int x1, int y1, int x2, int y2, int width, int op);
/**
* Original signature :
* l_ok pixRenderLineArb(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_uint8, l_uint8, l_uint8)
*/
public static native int pixRenderLineArb(Pix pix, int x1, int y1, int x2, int y2, int width, byte rval, byte gval, byte bval);
/**
* Original signature :
* l_ok pixRenderLineBlend(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_uint8, l_uint8, l_uint8, l_float32)
*/
public static native int pixRenderLineBlend(Pix pix, int x1, int y1, int x2, int y2, int width, byte rval, byte gval, byte bval, float fract);
/**
* Original signature :
* l_ok pixRenderBox(PIX*, BOX*, l_int32, l_int32)
*/
public static native int pixRenderBox(Pix pix, Box box, int width, int op);
/**
* Original signature :
* l_ok pixRenderBoxArb(PIX*, BOX*, l_int32, l_uint8, l_uint8, l_uint8)
*/
public static native int pixRenderBoxArb(Pix pix, Box box, int width, byte rval, byte gval, byte bval);
/**
* Original signature :
* l_ok pixRenderBoxBlend(PIX*, BOX*, l_int32, l_uint8, l_uint8, l_uint8, l_float32)
*/
public static native int pixRenderBoxBlend(Pix pix, Box box, int width, byte rval, byte gval, byte bval, float fract);
/**
* Original signature :
* l_ok pixRenderBoxa(PIX*, BOXA*, l_int32, l_int32)
*/
public static native int pixRenderBoxa(Pix pix, Boxa boxa, int width, int op);
/**
* Original signature :
* l_ok pixRenderBoxaArb(PIX*, BOXA*, l_int32, l_uint8, l_uint8, l_uint8)
*/
public static native int pixRenderBoxaArb(Pix pix, Boxa boxa, int width, byte rval, byte gval, byte bval);
/**
* Original signature :
* l_ok pixRenderBoxaBlend(PIX*, BOXA*, l_int32, l_uint8, l_uint8, l_uint8, l_float32, l_int32)
*/
public static native int pixRenderBoxaBlend(Pix pix, Boxa boxa, int width, byte rval, byte gval, byte bval, float fract, int removedups);
/**
* Original signature :
* l_ok pixRenderHashBox(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixRenderHashBox(Pix pix, Box box, int spacing, int width, int orient, int outline, int op);
/**
* Original signature :
* l_ok pixRenderHashBoxArb(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixRenderHashBoxArb(Pix pix, Box box, int spacing, int width, int orient, int outline, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixRenderHashBoxBlend(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_float32)
*/
public static native int pixRenderHashBoxBlend(Pix pix, Box box, int spacing, int width, int orient, int outline, int rval, int gval, int bval, float fract);
/**
* Original signature :
* l_ok pixRenderHashMaskArb(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixRenderHashMaskArb(Pix pix, Pix pixm, int x, int y, int spacing, int width, int orient, int outline, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixRenderHashBoxa(PIX*, BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixRenderHashBoxa(Pix pix, Boxa boxa, int spacing, int width, int orient, int outline, int op);
/**
* Original signature :
* l_ok pixRenderHashBoxaArb(PIX*, BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixRenderHashBoxaArb(Pix pix, Boxa boxa, int spacing, int width, int orient, int outline, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixRenderHashBoxaBlend(PIX*, BOXA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_float32)
*/
public static native int pixRenderHashBoxaBlend(Pix pix, Boxa boxa, int spacing, int width, int orient, int outline, int rval, int gval, int bval, float fract);
/**
* Original signature :
* l_ok pixRenderPolyline(PIX*, PTA*, l_int32, l_int32, l_int32)
*/
public static native int pixRenderPolyline(Pix pix, Pta ptas, int width, int op, int closeflag);
/**
* Original signature :
* l_ok pixRenderPolylineArb(PIX*, PTA*, l_int32, l_uint8, l_uint8, l_uint8, l_int32)
*/
public static native int pixRenderPolylineArb(Pix pix, Pta ptas, int width, byte rval, byte gval, byte bval, int closeflag);
/**
* Original signature :
* l_ok pixRenderPolylineBlend(PIX*, PTA*, l_int32, l_uint8, l_uint8, l_uint8, l_float32, l_int32, l_int32)
*/
public static native int pixRenderPolylineBlend(Pix pix, Pta ptas, int width, byte rval, byte gval, byte bval, float fract, int closeflag, int removedups);
/**
* Original signature :
* l_ok pixRenderGridArb(PIX*, l_int32, l_int32, l_int32, l_uint8, l_uint8, l_uint8)
*/
public static native int pixRenderGridArb(Pix pix, int nx, int ny, int width, byte rval, byte gval, byte bval);
/**
* Original signature :
* PIX* pixRenderRandomCmapPtaa(PIX*, PTAA*, l_int32, l_int32, l_int32)
*/
public static native Pix pixRenderRandomCmapPtaa(Pix pix, Ptaa ptaa, int polyflag, int width, int closeflag);
/**
* Original signature :
* PIX* pixRenderPolygon(PTA*, l_int32, l_int32*, l_int32*)
*/
public static native Pix pixRenderPolygon(Pta ptas, int width, IntBuffer pxmin, IntBuffer pymin);
/**
* Original signature :
* PIX* pixFillPolygon(PIX*, PTA*, l_int32, l_int32)
*/
public static native Pix pixFillPolygon(Pix pixs, Pta pta, int xmin, int ymin);
/**
* Original signature :
* PIX* pixRenderContours(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixRenderContours(Pix pixs, int startval, int incr, int outdepth);
/**
* Original signature :
* PIX* fpixAutoRenderContours(FPIX*, l_int32)
*/
public static native Pix fpixAutoRenderContours(FPix fpix, int ncontours);
/**
* Original signature :
* PIX* fpixRenderContours(FPIX*, l_float32, l_float32)
*/
public static native Pix fpixRenderContours(FPix fpixs, float incr, float proxim);
/**
* Original signature :
* PTA* pixGeneratePtaBoundary(PIX*, l_int32)
*/
public static native Pta pixGeneratePtaBoundary(Pix pixs, int width);
/**
* Original signature :
* PIX* pixErodeGray(PIX*, l_int32, l_int32)
*/
public static native Pix pixErodeGray(Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixDilateGray(PIX*, l_int32, l_int32)
*/
public static native Pix pixDilateGray(Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixOpenGray(PIX*, l_int32, l_int32)
*/
public static native Pix pixOpenGray(Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixCloseGray(PIX*, l_int32, l_int32)
*/
public static native Pix pixCloseGray(Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixErodeGray3(PIX*, l_int32, l_int32)
*/
public static native Pix pixErodeGray3(Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixDilateGray3(PIX*, l_int32, l_int32)
*/
public static native Pix pixDilateGray3(Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixOpenGray3(PIX*, l_int32, l_int32)
*/
public static native Pix pixOpenGray3(Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixCloseGray3(PIX*, l_int32, l_int32)
*/
public static native Pix pixCloseGray3(Pix pixs, int hsize, int vsize);
/**
* Original signature : PIX* pixDitherToBinary(PIX*)
*/
public static native Pix pixDitherToBinary(Pix pixs);
/**
* Original signature :
* PIX* pixDitherToBinarySpec(PIX*, l_int32, l_int32)
*/
public static native Pix pixDitherToBinarySpec(Pix pixs, int lowerclip, int upperclip);
/**
* Original signature :
* void ditherToBinaryLineLow(l_uint32*, l_int32, l_uint32*, l_uint32*, l_int32, l_int32, l_int32)
*/
public static native void ditherToBinaryLineLow(IntBuffer lined, int w, IntBuffer bufs1, IntBuffer bufs2, int lowerclip, int upperclip, int lastlineflag);
/**
* Original signature :
* PIX* pixThresholdToBinary(PIX*, l_int32)
*/
public static native Pix pixThresholdToBinary(Pix pixs, int thresh);
/**
* Original signature :
* void thresholdToBinaryLineLow(l_uint32*, l_int32, l_uint32*, l_int32, l_int32)
*/
public static native void thresholdToBinaryLineLow(IntBuffer lined, int w, IntBuffer lines, int d, int thresh);
/**
* Original signature :
* PIX* pixVarThresholdToBinary(PIX*, PIX*)
*/
public static native Pix pixVarThresholdToBinary(Pix pixs, Pix pixg);
/**
* Original signature :
* PIX* pixAdaptThresholdToBinary(PIX*, PIX*, l_float32)
*/
public static native Pix pixAdaptThresholdToBinary(Pix pixs, Pix pixm, float gamma);
/**
* Original signature :
* PIX* pixAdaptThresholdToBinaryGen(PIX*, PIX*, l_float32, l_int32, l_int32, l_int32)
*/
public static native Pix pixAdaptThresholdToBinaryGen(Pix pixs, Pix pixm, float gamma, int blackval, int whiteval, int thresh);
/**
* Original signature :
* PIX* pixGenerateMaskByValue(PIX*, l_int32, l_int32)
*/
public static native Pix pixGenerateMaskByValue(Pix pixs, int val, int usecmap);
/**
* Original signature :
* PIX* pixGenerateMaskByBand(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixGenerateMaskByBand(Pix pixs, int lower, int upper, int inband, int usecmap);
/**
* Original signature : PIX* pixDitherTo2bpp(PIX*, l_int32)
*/
public static native Pix pixDitherTo2bpp(Pix pixs, int cmapflag);
/**
* Original signature :
* PIX* pixDitherTo2bppSpec(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixDitherTo2bppSpec(Pix pixs, int lowerclip, int upperclip, int cmapflag);
/**
* Original signature :
* PIX* pixThresholdTo2bpp(PIX*, l_int32, l_int32)
*/
public static native Pix pixThresholdTo2bpp(Pix pixs, int nlevels, int cmapflag);
/**
* Original signature :
* PIX* pixThresholdTo4bpp(PIX*, l_int32, l_int32)
*/
public static native Pix pixThresholdTo4bpp(Pix pixs, int nlevels, int cmapflag);
/**
* Original signature :
* PIX* pixThresholdOn8bpp(PIX*, l_int32, l_int32)
*/
public static native Pix pixThresholdOn8bpp(Pix pixs, int nlevels, int cmapflag);
/**
* Original signature :
* PIX* pixThresholdGrayArb(PIX*, const char*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixThresholdGrayArb(Pix pixs, String edgevals, int outdepth, int use_average, int setblack, int setwhite);
/**
* Original signature :
* l_int32* makeGrayQuantIndexTable(l_int32)
*/
public static native IntByReference makeGrayQuantIndexTable(int nlevels);
/**
* Original signature :
* l_ok makeGrayQuantTableArb(NUMA*, l_int32, l_int32**, PIXCMAP**)
*/
public static native int makeGrayQuantTableArb(Numa na, int outdepth, PointerByReference ptab, PointerByReference pcmap);
/**
* Original signature :
* PIX* pixGenerateMaskByBand32(PIX*, l_uint32, l_int32, l_int32, l_float32, l_float32)
*/
public static native Pix pixGenerateMaskByBand32(Pix pixs, int refval, int delm, int delp, float fractm, float fractp);
/**
* Original signature :
* PIX* pixGenerateMaskByDiscr32(PIX*, l_uint32, l_uint32, l_int32)
*/
public static native Pix pixGenerateMaskByDiscr32(Pix pixs, int refval1, int refval2, int distflag);
/**
* Original signature :
* PIX* pixGrayQuantFromHisto(PIX*, PIX*, PIX*, l_float32, l_int32)
*/
public static native Pix pixGrayQuantFromHisto(Pix pixd, Pix pixs, Pix pixm, float minfract, int maxsize);
/**
* Original signature :
* PIX* pixGrayQuantFromCmap(PIX*, PIXCMAP*, l_int32)
*/
public static native Pix pixGrayQuantFromCmap(Pix pixs, PixColormap cmap, int mindepth);
/**
* Original signature : L_HEAP* lheapCreate(l_int32, l_int32)
*/
public static native L_Heap lheapCreate(int n, int direction);
/**
* Original signature : void lheapDestroy(L_HEAP**, l_int32)
*/
public static native void lheapDestroy(PointerByReference plh, int freeflag);
/**
* Original signature : l_ok lheapAdd(L_HEAP*, void*)
*/
public static native int lheapAdd(L_Heap lh, Pointer item);
/**
* Original signature : void* lheapRemove(L_HEAP*)
*/
public static native Pointer lheapRemove(L_Heap lh);
/**
* Original signature : l_int32 lheapGetCount(L_HEAP*)
*/
public static native int lheapGetCount(L_Heap lh);
/**
* Original signature : void* lheapGetElement(L_HEAP*, l_int32)
*/
public static native Pointer lheapGetElement(L_Heap lh, int index);
/**
* Original signature : l_ok lheapSort(L_HEAP*)
*/
public static native int lheapSort(L_Heap lh);
/**
* Original signature : l_ok lheapSortStrictOrder(L_HEAP*)
*/
public static native int lheapSortStrictOrder(L_Heap lh);
/**
* Original signature : l_ok lheapPrint(FILE*, L_HEAP*)
*/
public static native int lheapPrint(FILE fp, L_Heap lh);
/**
* Original signature :
* JBCLASSER* jbRankHausInit(l_int32, l_int32, l_int32, l_int32, l_float32)
*/
public static native JbClasser jbRankHausInit(int components, int maxwidth, int maxheight, int size, float rank);
/**
* Original signature :
* JBCLASSER* jbCorrelationInit(l_int32, l_int32, l_int32, l_float32, l_float32)
*/
public static native JbClasser jbCorrelationInit(int components, int maxwidth, int maxheight, float thresh, float weightfactor);
/**
* Original signature :
* JBCLASSER* jbCorrelationInitWithoutComponents(l_int32, l_int32, l_int32, l_float32, l_float32)
*/
public static native JbClasser jbCorrelationInitWithoutComponents(int components, int maxwidth, int maxheight, float thresh, float weightfactor);
/**
* Original signature : l_ok jbAddPages(JBCLASSER*, SARRAY*)
*/
public static native int jbAddPages(JbClasser classer, Sarray safiles);
/**
* Original signature : l_ok jbAddPage(JBCLASSER*, PIX*)
*/
public static native int jbAddPage(JbClasser classer, Pix pixs);
/**
* Original signature :
* l_ok jbAddPageComponents(JBCLASSER*, PIX*, BOXA*, PIXA*)
*/
public static native int jbAddPageComponents(JbClasser classer, Pix pixs, Boxa boxas, Pixa pixas);
/**
* Original signature :
* l_ok jbClassifyRankHaus(JBCLASSER*, BOXA*, PIXA*)
*/
public static native int jbClassifyRankHaus(JbClasser classer, Boxa boxa, Pixa pixas);
/**
* Original signature :
* l_int32 pixHaustest(PIX*, PIX*, PIX*, PIX*, l_float32, l_float32, l_int32, l_int32)
*/
public static native int pixHaustest(Pix pix1, Pix pix2, Pix pix3, Pix pix4, float delx, float dely, int maxdiffw, int maxdiffh);
/**
* Original signature :
* l_int32 pixRankHaustest(PIX*, PIX*, PIX*, PIX*, l_float32, l_float32, l_int32, l_int32, l_int32, l_int32, l_float32, l_int32*)
*/
public static native int pixRankHaustest(Pix pix1, Pix pix2, Pix pix3, Pix pix4, float delx, float dely, int maxdiffw, int maxdiffh, int area1, int area3, float rank, IntBuffer tab8);
/**
* Original signature :
* l_ok jbClassifyCorrelation(JBCLASSER*, BOXA*, PIXA*)
*/
public static native int jbClassifyCorrelation(JbClasser classer, Boxa boxa, Pixa pixas);
/**
* Original signature :
* l_ok jbGetComponents(PIX*, l_int32, l_int32, l_int32, BOXA**, PIXA**)
*/
public static native int jbGetComponents(Pix pixs, int components, int maxwidth, int maxheight, PointerByReference pboxad, PointerByReference ppixad);
/**
* Original signature :
* l_ok pixWordMaskByDilation(PIX*, PIX**, l_int32*, PIXA*)
*/
public static native int pixWordMaskByDilation(Pix pixs, PointerByReference ppixm, IntBuffer psize, Pixa pixadb);
/**
* Original signature :
* l_ok pixWordMaskByDilation(PIX*, PIX**, l_int32*, PIXA*)
*/
public static native int pixWordMaskByDilation(Pix pixs, PointerByReference ppixm, IntByReference psize, Pixa pixadb);
/**
* Original signature :
* l_ok pixWordBoxesByDilation(PIX*, l_int32, l_int32, l_int32, l_int32, BOXA**, l_int32*, PIXA*)
*/
public static native int pixWordBoxesByDilation(Pix pixs, int minwidth, int minheight, int maxwidth, int maxheight, PointerByReference pboxa, IntBuffer psize, Pixa pixadb);
/**
* Original signature :
* l_ok pixWordBoxesByDilation(PIX*, l_int32, l_int32, l_int32, l_int32, BOXA**, l_int32*, PIXA*)
*/
public static native int pixWordBoxesByDilation(Pix pixs, int minwidth, int minheight, int maxwidth, int maxheight, PointerByReference pboxa, IntByReference psize, Pixa pixadb);
/**
* Original signature :
* PIXA* jbAccumulateComposites(PIXAA*, NUMA**, PTA**)
*/
public static native Pixa jbAccumulateComposites(Pixaa pixaa, PointerByReference pna, PointerByReference pptat);
/**
* Original signature :
* PIXA* jbTemplatesFromComposites(PIXA*, NUMA*)
*/
public static native Pixa jbTemplatesFromComposites(Pixa pixac, Numa na);
/**
* Original signature :
* JBCLASSER* jbClasserCreate(l_int32, l_int32)
*/
public static native JbClasser jbClasserCreate(int method, int components);
/**
* Original signature : void jbClasserDestroy(JBCLASSER**)
*/
public static native void jbClasserDestroy(PointerByReference pclasser);
/**
* Original signature : JBDATA* jbDataSave(JBCLASSER*)
*/
public static native JbData jbDataSave(JbClasser classer);
/**
* Original signature : void jbDataDestroy(JBDATA**)
*/
public static native void jbDataDestroy(PointerByReference pdata);
/**
* Original signature : l_ok jbDataWrite(const char*, JBDATA*)
*/
public static native int jbDataWrite(String rootout, JbData jbdata);
/**
* Original signature : JBDATA* jbDataRead(const char*)
*/
public static native JbData jbDataRead(String rootname);
/**
* Original signature : PIXA* jbDataRender(JBDATA*, l_int32)
*/
public static native Pixa jbDataRender(JbData data, int debugflag);
/**
* Original signature :
* l_ok jbGetULCorners(JBCLASSER*, PIX*, BOXA*)
*/
public static native int jbGetULCorners(JbClasser classer, Pix pixs, Boxa boxa);
/**
* Original signature : l_ok jbGetLLCorners(JBCLASSER*)
*/
public static native int jbGetLLCorners(JbClasser classer);
/**
* Original signature :
* l_ok readHeaderJp2k(const char*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderJp2k(String filename, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp);
/**
* Original signature :
* l_ok freadHeaderJp2k(FILE*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int freadHeaderJp2k(FILE fp, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp);
/**
* Original signature :
* l_ok readHeaderMemJp2k(const l_uint8*, size_t, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderMemJp2k(ByteBuffer data, NativeSize size, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp);
/**
* Original signature :
* l_int32 fgetJp2kResolution(FILE*, l_int32*, l_int32*)
*/
public static native int fgetJp2kResolution(FILE fp, IntBuffer pxres, IntBuffer pyres);
/**
* Original signature :
* PIX* pixReadJp2k(const char*, l_uint32, BOX*, l_int32, l_int32)
*/
public static native Pix pixReadJp2k(String filename, int reduction, Box box, int hint, int debug);
/**
* Original signature :
* PIX* pixReadStreamJp2k(FILE*, l_uint32, BOX*, l_int32, l_int32)
*/
public static native Pix pixReadStreamJp2k(FILE fp, int reduction, Box box, int hint, int debug);
/**
* Original signature :
* l_ok pixWriteJp2k(const char*, PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixWriteJp2k(String filename, Pix pix, int quality, int nlevels, int hint, int debug);
/**
* Original signature :
* l_ok pixWriteStreamJp2k(FILE*, PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixWriteStreamJp2k(FILE fp, Pix pix, int quality, int nlevels, int hint, int debug);
/**
* Original signature :
* PIX* pixReadMemJp2k(const l_uint8*, size_t, l_uint32, BOX*, l_int32, l_int32)
*/
public static native Pix pixReadMemJp2k(ByteBuffer data, NativeSize size, int reduction, Box box, int hint, int debug);
/**
* Original signature :
* l_ok pixWriteMemJp2k(l_uint8**, size_t*, PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixWriteMemJp2k(PointerByReference pdata, NativeSizeByReference psize, Pix pix, int quality, int nlevels, int hint, int debug);
/**
* Original signature :
* PIX* pixReadJpeg(const char*, l_int32, l_int32, l_int32*, l_int32)
*/
public static native Pix pixReadJpeg(String filename, int cmapflag, int reduction, IntBuffer pnwarn, int hint);
/**
* Original signature :
* PIX* pixReadStreamJpeg(FILE*, l_int32, l_int32, l_int32*, l_int32)
*/
public static native Pix pixReadStreamJpeg(FILE fp, int cmapflag, int reduction, IntBuffer pnwarn, int hint);
/**
* Original signature :
* l_ok readHeaderJpeg(const char*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderJpeg(String filename, IntBuffer pw, IntBuffer ph, IntBuffer pspp, IntBuffer pycck, IntBuffer pcmyk);
/**
* Original signature :
* l_ok freadHeaderJpeg(FILE*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int freadHeaderJpeg(FILE fp, IntBuffer pw, IntBuffer ph, IntBuffer pspp, IntBuffer pycck, IntBuffer pcmyk);
/**
* Original signature :
* l_int32 fgetJpegResolution(FILE*, l_int32*, l_int32*)
*/
public static native int fgetJpegResolution(FILE fp, IntBuffer pxres, IntBuffer pyres);
/**
* Original signature :
* l_int32 fgetJpegComment(FILE*, l_uint8**)
*/
public static native int fgetJpegComment(FILE fp, PointerByReference pcomment);
/**
* Original signature :
* l_ok pixWriteJpeg(const char*, PIX*, l_int32, l_int32)
*/
public static native int pixWriteJpeg(String filename, Pix pix, int quality, int progressive);
/**
* Original signature :
* l_ok pixWriteStreamJpeg(FILE*, PIX*, l_int32, l_int32)
*/
public static native int pixWriteStreamJpeg(FILE fp, Pix pixs, int quality, int progressive);
/**
* Original signature :
* PIX* pixReadMemJpeg(const l_uint8*, size_t, l_int32, l_int32, l_int32*, l_int32)
*/
public static native Pix pixReadMemJpeg(ByteBuffer data, NativeSize size, int cmflag, int reduction, IntBuffer pnwarn, int hint);
/**
* Original signature :
* l_ok readHeaderMemJpeg(const l_uint8*, size_t, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderMemJpeg(ByteBuffer data, NativeSize size, IntBuffer pw, IntBuffer ph, IntBuffer pspp, IntBuffer pycck, IntBuffer pcmyk);
/**
* Original signature :
* l_ok readResolutionMemJpeg(const l_uint8*, size_t, l_int32*, l_int32*)
*/
public static native int readResolutionMemJpeg(ByteBuffer data, NativeSize size, IntBuffer pxres, IntBuffer pyres);
/**
* Original signature :
* l_ok pixWriteMemJpeg(l_uint8**, size_t*, PIX*, l_int32, l_int32)
*/
public static native int pixWriteMemJpeg(PointerByReference pdata, NativeSizeByReference psize, Pix pix, int quality, int progressive);
/**
* Original signature :
* l_ok pixSetChromaSampling(PIX*, l_int32)
*/
public static native int pixSetChromaSampling(Pix pix, int sampling);
/**
* Original signature :
* L_KERNEL* kernelCreate(l_int32, l_int32)
*/
public static native L_Kernel kernelCreate(int height, int width);
/**
* Original signature : void kernelDestroy(L_KERNEL**)
*/
public static native void kernelDestroy(PointerByReference pkel);
/**
* Original signature : L_KERNEL* kernelCopy(L_KERNEL*)
*/
public static native L_Kernel kernelCopy(L_Kernel kels);
/**
* Original signature :
* l_ok kernelGetElement(L_KERNEL*, l_int32, l_int32, l_float32*)
*/
public static native int kernelGetElement(L_Kernel kel, int row, int col, FloatBuffer pval);
/**
* Original signature :
* l_ok kernelSetElement(L_KERNEL*, l_int32, l_int32, l_float32)
*/
public static native int kernelSetElement(L_Kernel kel, int row, int col, float val);
/**
* Original signature :
* l_ok kernelGetParameters(L_KERNEL*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int kernelGetParameters(L_Kernel kel, IntBuffer psy, IntBuffer psx, IntBuffer pcy, IntBuffer pcx);
/**
* Original signature :
* l_ok kernelSetOrigin(L_KERNEL*, l_int32, l_int32)
*/
public static native int kernelSetOrigin(L_Kernel kel, int cy, int cx);
/**
* Original signature :
* l_ok kernelGetSum(L_KERNEL*, l_float32*)
*/
public static native int kernelGetSum(L_Kernel kel, FloatBuffer psum);
/**
* Original signature :
* l_ok kernelGetMinMax(L_KERNEL*, l_float32*, l_float32*)
*/
public static native int kernelGetMinMax(L_Kernel kel, FloatBuffer pmin, FloatBuffer pmax);
/**
* Original signature :
* L_KERNEL* kernelNormalize(L_KERNEL*, l_float32)
*/
public static native L_Kernel kernelNormalize(L_Kernel kels, float normsum);
/**
* Original signature : L_KERNEL* kernelInvert(L_KERNEL*)
*/
public static native L_Kernel kernelInvert(L_Kernel kels);
/**
* Original signature :
* l_float32** create2dFloatArray(l_int32, l_int32)
*/
public static native PointerByReference create2dFloatArray(int sy, int sx);
/**
* Original signature : L_KERNEL* kernelRead(const char*)
*/
public static native L_Kernel kernelRead(String fname);
/**
* Original signature : L_KERNEL* kernelReadStream(FILE*)
*/
public static native L_Kernel kernelReadStream(FILE fp);
/**
* Original signature :
* l_ok kernelWrite(const char*, L_KERNEL*)
*/
public static native int kernelWrite(String fname, L_Kernel kel);
/**
* Original signature :
* l_ok kernelWriteStream(FILE*, L_KERNEL*)
*/
public static native int kernelWriteStream(FILE fp, L_Kernel kel);
/**
* Original signature :
* L_KERNEL* kernelCreateFromString(l_int32, l_int32, l_int32, l_int32, const char*)
*/
public static native L_Kernel kernelCreateFromString(int h, int w, int cy, int cx, String kdata);
/**
* Original signature :
* L_KERNEL* kernelCreateFromFile(const char*)
*/
public static native L_Kernel kernelCreateFromFile(String filename);
/**
* Original signature :
* L_KERNEL* kernelCreateFromPix(PIX*, l_int32, l_int32)
*/
public static native L_Kernel kernelCreateFromPix(Pix pix, int cy, int cx);
/**
* Original signature :
* PIX* kernelDisplayInPix(L_KERNEL*, l_int32, l_int32)
*/
public static native Pix kernelDisplayInPix(L_Kernel kel, int size, int gthick);
/**
* Original signature :
* NUMA* parseStringForNumbers(const char*, const char*)
*/
public static native Numa parseStringForNumbers(String str, String seps);
/**
* Original signature :
* L_KERNEL* makeFlatKernel(l_int32, l_int32, l_int32, l_int32)
*/
public static native L_Kernel makeFlatKernel(int height, int width, int cy, int cx);
/**
* Original signature :
* L_KERNEL* makeGaussianKernel(l_int32, l_int32, l_float32, l_float32)
*/
public static native L_Kernel makeGaussianKernel(int halfh, int halfw, float stdev, float max);
/**
* Original signature :
* l_ok makeGaussianKernelSep(l_int32, l_int32, l_float32, l_float32, L_KERNEL**, L_KERNEL**)
*/
public static native int makeGaussianKernelSep(int halfh, int halfw, float stdev, float max, PointerByReference pkelx, PointerByReference pkely);
/**
* Original signature :
* L_KERNEL* makeDoGKernel(l_int32, l_int32, l_float32, l_float32)
*/
public static native L_Kernel makeDoGKernel(int halfh, int halfw, float stdev, float ratio);
/**
* Original signature : char* getImagelibVersions()
*/
public static native Pointer getImagelibVersions();
/**
* Original signature : void listDestroy(DLLIST**)
*/
public static native void listDestroy(PointerByReference phead);
/**
* Original signature : l_ok listAddToHead(DLLIST**, void*)
*/
public static native int listAddToHead(PointerByReference phead, Pointer data);
/**
* Original signature :
* l_ok listAddToTail(DLLIST**, DLLIST**, void*)
*/
public static native int listAddToTail(PointerByReference phead, PointerByReference ptail, Pointer data);
/**
* Original signature :
* l_ok listInsertBefore(DLLIST**, DLLIST*, void*)
*/
public static native int listInsertBefore(PointerByReference phead, DoubleLinkedList elem, Pointer data);
/**
* Original signature :
* l_ok listInsertAfter(DLLIST**, DLLIST*, void*)
*/
public static native int listInsertAfter(PointerByReference phead, DoubleLinkedList elem, Pointer data);
/**
* Original signature :
* void* listRemoveElement(DLLIST**, DLLIST*)
*/
public static native Pointer listRemoveElement(PointerByReference phead, DoubleLinkedList elem);
/**
* Original signature : void* listRemoveFromHead(DLLIST**)
*/
public static native Pointer listRemoveFromHead(PointerByReference phead);
/**
* Original signature :
* void* listRemoveFromTail(DLLIST**, DLLIST**)
*/
public static native Pointer listRemoveFromTail(PointerByReference phead, PointerByReference ptail);
/**
* Original signature : DLLIST* listFindElement(DLLIST*, void*)
*/
public static native DoubleLinkedList listFindElement(DoubleLinkedList head, Pointer data);
/**
* Original signature : DLLIST* listFindTail(DLLIST*)
*/
public static native DoubleLinkedList listFindTail(DoubleLinkedList head);
/**
* Original signature : l_int32 listGetCount(DLLIST*)
*/
public static native int listGetCount(DoubleLinkedList head);
/**
* Original signature : l_ok listReverse(DLLIST**)
*/
public static native int listReverse(PointerByReference phead);
/**
* Original signature : l_ok listJoin(DLLIST**, DLLIST**)
*/
public static native int listJoin(PointerByReference phead1, PointerByReference phead2);
/**
* Original signature : L_AMAP* l_amapCreate(l_int32)
*/
public static native L_Rbtree l_amapCreate(int keytype);
/**
* Original signature : RB_TYPE* l_amapFind(L_AMAP*, RB_TYPE)
*/
public static native Rb_Type l_amapFind(L_Rbtree m, Rb_Type.ByValue key);
/**
* Original signature :
* void l_amapInsert(L_AMAP*, RB_TYPE, RB_TYPE)
*/
public static native void l_amapInsert(L_Rbtree m, Rb_Type.ByValue key, Rb_Type.ByValue value);
/**
* Original signature : void l_amapDelete(L_AMAP*, RB_TYPE)
*/
public static native void l_amapDelete(L_Rbtree m, Rb_Type.ByValue key);
/**
* Original signature : void l_amapDestroy(L_AMAP**)
*/
public static native void l_amapDestroy(PointerByReference pm);
/**
* Original signature : L_AMAP_NODE* l_amapGetFirst(L_AMAP*)
*/
public static native L_Rbtree_Node l_amapGetFirst(L_Rbtree m);
/**
* Original signature :
* L_AMAP_NODE* l_amapGetNext(L_AMAP_NODE*)
*/
public static native L_Rbtree_Node l_amapGetNext(L_Rbtree_Node n);
/**
* Original signature : L_AMAP_NODE* l_amapGetLast(L_AMAP*)
*/
public static native L_Rbtree_Node l_amapGetLast(L_Rbtree m);
/**
* Original signature :
* L_AMAP_NODE* l_amapGetPrev(L_AMAP_NODE*)
*/
public static native L_Rbtree_Node l_amapGetPrev(L_Rbtree_Node n);
/**
* Original signature : l_int32 l_amapSize(L_AMAP*)
*/
public static native int l_amapSize(L_Rbtree m);
/**
* Original signature : L_ASET* l_asetCreate(l_int32)
*/
public static native L_Rbtree l_asetCreate(int keytype);
/**
* Original signature : RB_TYPE* l_asetFind(L_ASET*, RB_TYPE)
*/
public static native Rb_Type l_asetFind(L_Rbtree s, Rb_Type.ByValue key);
/**
* Original signature : void l_asetInsert(L_ASET*, RB_TYPE)
*/
public static native void l_asetInsert(L_Rbtree s, Rb_Type.ByValue key);
/**
* Original signature : void l_asetDelete(L_ASET*, RB_TYPE)
*/
public static native void l_asetDelete(L_Rbtree s, Rb_Type.ByValue key);
/**
* Original signature : void l_asetDestroy(L_ASET**)
*/
public static native void l_asetDestroy(PointerByReference ps);
/**
* Original signature : L_ASET_NODE* l_asetGetFirst(L_ASET*)
*/
public static native L_Rbtree_Node l_asetGetFirst(L_Rbtree s);
/**
* Original signature :
* L_ASET_NODE* l_asetGetNext(L_ASET_NODE*)
*/
public static native L_Rbtree_Node l_asetGetNext(L_Rbtree_Node n);
/**
* Original signature : L_ASET_NODE* l_asetGetLast(L_ASET*)
*/
public static native L_Rbtree_Node l_asetGetLast(L_Rbtree s);
/**
* Original signature :
* L_ASET_NODE* l_asetGetPrev(L_ASET_NODE*)
*/
public static native L_Rbtree_Node l_asetGetPrev(L_Rbtree_Node n);
/**
* Original signature : l_int32 l_asetSize(L_ASET*)
*/
public static native int l_asetSize(L_Rbtree s);
/**
* Original signature :
* PIX* generateBinaryMaze(l_int32, l_int32, l_int32, l_int32, l_float32, l_float32)
*/
public static native Pix generateBinaryMaze(int w, int h, int xi, int yi, float wallps, float ranis);
/**
* Original signature :
* PTA* pixSearchBinaryMaze(PIX*, l_int32, l_int32, l_int32, l_int32, PIX**)
*/
public static native Pta pixSearchBinaryMaze(Pix pixs, int xi, int yi, int xf, int yf, PointerByReference ppixd);
/**
* Original signature :
* PTA* pixSearchGrayMaze(PIX*, l_int32, l_int32, l_int32, l_int32, PIX**)
*/
public static native Pta pixSearchGrayMaze(Pix pixs, int xi, int yi, int xf, int yf, PointerByReference ppixd);
/**
* Original signature : PIX* pixDilate(PIX*, PIX*, SEL*)
*/
public static native Pix pixDilate(Pix pixd, Pix pixs, Pointer sel);
/**
* Original signature : PIX* pixErode(PIX*, PIX*, SEL*)
*/
public static native Pix pixErode(Pix pixd, Pix pixs, Pointer sel);
/**
* Original signature : PIX* pixHMT(PIX*, PIX*, SEL*)
*/
public static native Pix pixHMT(Pix pixd, Pix pixs, Pointer sel);
/**
* Original signature : PIX* pixOpen(PIX*, PIX*, SEL*)
*/
public static native Pix pixOpen(Pix pixd, Pix pixs, Pointer sel);
/**
* Original signature : PIX* pixClose(PIX*, PIX*, SEL*)
*/
public static native Pix pixClose(Pix pixd, Pix pixs, Pointer sel);
/**
* Original signature : PIX* pixCloseSafe(PIX*, PIX*, SEL*)
*/
public static native Pix pixCloseSafe(Pix pixd, Pix pixs, Pointer sel);
/**
* Original signature :
* PIX* pixOpenGeneralized(PIX*, PIX*, SEL*)
*/
public static native Pix pixOpenGeneralized(Pix pixd, Pix pixs, Pointer sel);
/**
* Original signature :
* PIX* pixCloseGeneralized(PIX*, PIX*, SEL*)
*/
public static native Pix pixCloseGeneralized(Pix pixd, Pix pixs, Pointer sel);
/**
* Original signature :
* PIX* pixDilateBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixDilateBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixErodeBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixErodeBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixOpenBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixOpenBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixCloseBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixCloseBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixCloseSafeBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixCloseSafeBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* l_int32 selectComposableSels(l_int32, l_int32, SEL**, SEL**)
*/
public static native int selectComposableSels(int size, int direction, PointerByReference psel1, PointerByReference psel2);
/**
* Original signature :
* l_ok selectComposableSizes(l_int32, l_int32*, l_int32*)
*/
public static native int selectComposableSizes(int size, IntBuffer pfactor1, IntBuffer pfactor2);
/**
* Original signature :
* PIX* pixDilateCompBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixDilateCompBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixErodeCompBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixErodeCompBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixOpenCompBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixOpenCompBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixCloseCompBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixCloseCompBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixCloseSafeCompBrick(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixCloseSafeCompBrick(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* void resetMorphBoundaryCondition(l_int32)
*/
public static native void resetMorphBoundaryCondition(int bc);
/**
* Original signature :
* l_uint32 getMorphBorderPixelColor(l_int32, l_int32)
*/
public static native int getMorphBorderPixelColor(int type, int depth);
/**
* Original signature : PIX* pixExtractBoundary(PIX*, l_int32)
*/
public static native Pix pixExtractBoundary(Pix pixs, int type);
/**
* Original signature :
* PIX* pixMorphSequenceMasked(PIX*, PIX*, const char*, l_int32)
*/
public static native Pix pixMorphSequenceMasked(Pix pixs, Pix pixm, String sequence, int dispsep);
/**
* Original signature :
* PIX* pixMorphSequenceByComponent(PIX*, const char*, l_int32, l_int32, l_int32, BOXA**)
*/
public static native Pix pixMorphSequenceByComponent(Pix pixs, String sequence, int connectivity, int minw, int minh, PointerByReference pboxa);
/**
* Original signature :
* PIX* pixMorphSequenceByComponent(PIX*, const char*, l_int32, l_int32, l_int32, BOXA**)
*/
public static native Pix pixMorphSequenceByComponent(Pix pixs, Pointer sequence, int connectivity, int minw, int minh, PointerByReference pboxa);
/**
* Original signature :
* PIXA* pixaMorphSequenceByComponent(PIXA*, const char*, l_int32, l_int32)
*/
public static native Pixa pixaMorphSequenceByComponent(Pixa pixas, String sequence, int minw, int minh);
/**
* Original signature :
* PIX* pixMorphSequenceByRegion(PIX*, PIX*, const char*, l_int32, l_int32, l_int32, BOXA**)
*/
public static native Pix pixMorphSequenceByRegion(Pix pixs, Pix pixm, String sequence, int connectivity, int minw, int minh, PointerByReference pboxa);
/**
* Original signature :
* PIX* pixMorphSequenceByRegion(PIX*, PIX*, const char*, l_int32, l_int32, l_int32, BOXA**)
*/
public static native Pix pixMorphSequenceByRegion(Pix pixs, Pix pixm, Pointer sequence, int connectivity, int minw, int minh, PointerByReference pboxa);
/**
* Original signature :
* PIXA* pixaMorphSequenceByRegion(PIX*, PIXA*, const char*, l_int32, l_int32)
*/
public static native Pixa pixaMorphSequenceByRegion(Pix pixs, Pixa pixam, String sequence, int minw, int minh);
/**
* Original signature :
* PIX* pixUnionOfMorphOps(PIX*, SELA*, l_int32)
*/
public static native Pix pixUnionOfMorphOps(Pix pixs, Sela sela, int type);
/**
* Original signature :
* PIX* pixIntersectionOfMorphOps(PIX*, SELA*, l_int32)
*/
public static native Pix pixIntersectionOfMorphOps(Pix pixs, Sela sela, int type);
/**
* Original signature :
* PIX* pixSelectiveConnCompFill(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixSelectiveConnCompFill(Pix pixs, int connectivity, int minw, int minh);
/**
* Original signature :
* l_ok pixRemoveMatchedPattern(PIX*, PIX*, PIX*, l_int32, l_int32, l_int32)
*/
public static native int pixRemoveMatchedPattern(Pix pixs, Pix pixp, Pix pixe, int x0, int y0, int dsize);
/**
* Original signature :
* PIX* pixDisplayMatchedPattern(PIX*, PIX*, PIX*, l_int32, l_int32, l_uint32, l_float32, l_int32)
*/
public static native Pix pixDisplayMatchedPattern(Pix pixs, Pix pixp, Pix pixe, int x0, int y0, int color, float scale, int nlevels);
/**
* Original signature :
* PIXA* pixaExtendByMorph(PIXA*, l_int32, l_int32, SEL*, l_int32)
*/
public static native Pixa pixaExtendByMorph(Pixa pixas, int type, int niters, Pointer sel, int include);
/**
* Original signature :
* PIXA* pixaExtendByScaling(PIXA*, NUMA*, l_int32, l_int32)
*/
public static native Pixa pixaExtendByScaling(Pixa pixas, Numa nasc, int type, int include);
/**
* Original signature :
* PIX* pixSeedfillMorph(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixSeedfillMorph(Pix pixs, Pix pixm, int maxiters, int connectivity);
/**
* Original signature :
* NUMA* pixRunHistogramMorph(PIX*, l_int32, l_int32, l_int32)
*/
public static native Numa pixRunHistogramMorph(Pix pixs, int runtype, int direction, int maxsize);
/**
* Original signature :
* PIX* pixTophat(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixTophat(Pix pixs, int hsize, int vsize, int type);
/**
* Original signature : PIX* pixHDome(PIX*, l_int32, l_int32)
*/
public static native Pix pixHDome(Pix pixs, int height, int connectivity);
/**
* Original signature :
* PIX* pixFastTophat(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixFastTophat(Pix pixs, int xsize, int ysize, int type);
/**
* Original signature :
* PIX* pixMorphGradient(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixMorphGradient(Pix pixs, int hsize, int vsize, int smoothing);
/**
* Original signature : PTA* pixaCentroids(PIXA*)
*/
public static native Pta pixaCentroids(Pixa pixa);
/**
* Original signature :
* l_ok pixCentroid(PIX*, l_int32*, l_int32*, l_float32*, l_float32*)
*/
public static native int pixCentroid(Pix pix, IntBuffer centtab, IntBuffer sumtab, FloatBuffer pxave, FloatBuffer pyave);
/**
* Original signature :
* PIX* pixDilateBrickDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixDilateBrickDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixErodeBrickDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixErodeBrickDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixOpenBrickDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixOpenBrickDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixCloseBrickDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixCloseBrickDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixDilateCompBrickDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixDilateCompBrickDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixErodeCompBrickDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixErodeCompBrickDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixOpenCompBrickDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixOpenCompBrickDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixCloseCompBrickDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixCloseCompBrickDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixDilateCompBrickExtendDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixDilateCompBrickExtendDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixErodeCompBrickExtendDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixErodeCompBrickExtendDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixOpenCompBrickExtendDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixOpenCompBrickExtendDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* PIX* pixCloseCompBrickExtendDwa(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixCloseCompBrickExtendDwa(Pix pixd, Pix pixs, int hsize, int vsize);
/**
* Original signature :
* l_ok getExtendedCompositeParameters(l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int getExtendedCompositeParameters(int size, IntBuffer pn, IntBuffer pextra, IntBuffer pactualsize);
/**
* Original signature :
* PIX* pixMorphSequence(PIX*, const char*, l_int32)
*/
public static native Pix pixMorphSequence(Pix pixs, String sequence, int dispsep);
/**
* Original signature :
* PIX* pixMorphCompSequence(PIX*, const char*, l_int32)
*/
public static native Pix pixMorphCompSequence(Pix pixs, String sequence, int dispsep);
/**
* Original signature :
* PIX* pixMorphSequenceDwa(PIX*, const char*, l_int32)
*/
public static native Pix pixMorphSequenceDwa(Pix pixs, String sequence, int dispsep);
/**
* Original signature :
* PIX* pixMorphCompSequenceDwa(PIX*, const char*, l_int32)
*/
public static native Pix pixMorphCompSequenceDwa(Pix pixs, String sequence, int dispsep);
/**
* Original signature : l_int32 morphSequenceVerify(SARRAY*)
*/
public static native int morphSequenceVerify(Sarray sa);
/**
* Original signature :
* PIX* pixGrayMorphSequence(PIX*, const char*, l_int32, l_int32)
*/
public static native Pix pixGrayMorphSequence(Pix pixs, String sequence, int dispsep, int dispy);
/**
* Original signature :
* PIX* pixColorMorphSequence(PIX*, const char*, l_int32, l_int32)
*/
public static native Pix pixColorMorphSequence(Pix pixs, String sequence, int dispsep, int dispy);
/**
* Original signature : NUMA* numaCreate(l_int32)
*/
public static native Numa numaCreate(int n);
/**
* Original signature :
* NUMA* numaCreateFromIArray(l_int32*, l_int32)
*/
public static native Numa numaCreateFromIArray(IntBuffer iarray, int size);
/**
* Original signature :
* NUMA* numaCreateFromFArray(l_float32*, l_int32, l_int32)
*/
public static native Numa numaCreateFromFArray(FloatBuffer farray, int size, int copyflag);
/**
* Original signature : NUMA* numaCreateFromString(const char*)
*/
public static native Numa numaCreateFromString(String str);
/**
* Original signature : void numaDestroy(NUMA**)
*/
public static native void numaDestroy(PointerByReference pna);
/**
* Original signature : NUMA* numaCopy(NUMA*)
*/
public static native Numa numaCopy(Numa na);
/**
* Original signature : NUMA* numaClone(NUMA*)
*/
public static native Numa numaClone(Numa na);
/**
* Original signature : l_ok numaEmpty(NUMA*)
*/
public static native int numaEmpty(Numa na);
/**
* Original signature : l_ok numaAddNumber(NUMA*, l_float32)
*/
public static native int numaAddNumber(Numa na, float val);
/**
* Original signature :
* l_ok numaInsertNumber(NUMA*, l_int32, l_float32)
*/
public static native int numaInsertNumber(Numa na, int index, float val);
/**
* Original signature : l_ok numaRemoveNumber(NUMA*, l_int32)
*/
public static native int numaRemoveNumber(Numa na, int index);
/**
* Original signature :
* l_ok numaReplaceNumber(NUMA*, l_int32, l_float32)
*/
public static native int numaReplaceNumber(Numa na, int index, float val);
/**
* Original signature : l_int32 numaGetCount(NUMA*)
*/
public static native int numaGetCount(Numa na);
/**
* Original signature : l_ok numaSetCount(NUMA*, l_int32)
*/
public static native int numaSetCount(Numa na, int newcount);
/**
* Original signature :
* l_ok numaGetFValue(NUMA*, l_int32, l_float32*)
*/
public static native int numaGetFValue(Numa na, int index, FloatBuffer pval);
/**
* Original signature :
* l_ok numaGetIValue(NUMA*, l_int32, l_int32*)
*/
public static native int numaGetIValue(Numa na, int index, IntBuffer pival);
/**
* Original signature :
* l_ok numaSetValue(NUMA*, l_int32, l_float32)
*/
public static native int numaSetValue(Numa na, int index, float val);
/**
* Original signature :
* l_ok numaShiftValue(NUMA*, l_int32, l_float32)
*/
public static native int numaShiftValue(Numa na, int index, float diff);
/**
* Original signature : l_int32* numaGetIArray(NUMA*)
*/
public static native IntByReference numaGetIArray(Numa na);
/**
* Original signature :
* l_float32* numaGetFArray(NUMA*, l_int32)
*/
public static native FloatByReference numaGetFArray(Numa na, int copyflag);
/**
* Original signature : l_int32 numaGetRefcount(NUMA*)
*/
public static native int numaGetRefcount(Numa na);
/**
* Original signature : l_ok numaChangeRefcount(NUMA*, l_int32)
*/
public static native int numaChangeRefcount(Numa na, int delta);
/**
* Original signature :
* l_ok numaGetParameters(NUMA*, l_float32*, l_float32*)
*/
public static native int numaGetParameters(Numa na, FloatBuffer pstartx, FloatBuffer pdelx);
/**
* Original signature :
* l_ok numaSetParameters(NUMA*, l_float32, l_float32)
*/
public static native int numaSetParameters(Numa na, float startx, float delx);
/**
* Original signature : l_ok numaCopyParameters(NUMA*, NUMA*)
*/
public static native int numaCopyParameters(Numa nad, Numa nas);
/**
* Original signature :
* SARRAY* numaConvertToSarray(NUMA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Sarray numaConvertToSarray(Numa na, int size1, int size2, int addzeros, int type);
/**
* Original signature : NUMA* numaRead(const char*)
*/
public static native Numa numaRead(String filename);
/**
* Original signature : NUMA* numaReadStream(FILE*)
*/
public static native Numa numaReadStream(FILE fp);
/**
* Original signature :
* NUMA* numaReadMem(const l_uint8*, size_t)
*/
public static native Numa numaReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok numaWriteDebug(const char*, NUMA*)
*/
public static native int numaWriteDebug(String filename, Numa na);
/**
* Original signature : l_ok numaWrite(const char*, NUMA*)
*/
public static native int numaWrite(String filename, Numa na);
/**
* Original signature : l_ok numaWriteStream(FILE*, NUMA*)
*/
public static native int numaWriteStream(FILE fp, Numa na);
/**
* Original signature : l_ok numaWriteStderr(NUMA*)
*/
public static native int numaWriteStderr(Numa na);
/**
* Original signature :
* l_ok numaWriteMem(l_uint8**, size_t*, NUMA*)
*/
public static native int numaWriteMem(PointerByReference pdata, NativeSizeByReference psize, Numa na);
/**
* Original signature : NUMAA* numaaCreate(l_int32)
*/
public static native Numaa numaaCreate(int n);
/**
* Original signature :
* NUMAA* numaaCreateFull(l_int32, l_int32)
*/
public static native Numaa numaaCreateFull(int nptr, int n);
/**
* Original signature : l_ok numaaTruncate(NUMAA*)
*/
public static native int numaaTruncate(Numaa naa);
/**
* Original signature : void numaaDestroy(NUMAA**)
*/
public static native void numaaDestroy(PointerByReference pnaa);
/**
* Original signature :
* l_ok numaaAddNuma(NUMAA*, NUMA*, l_int32)
*/
public static native int numaaAddNuma(Numaa naa, Numa na, int copyflag);
/**
* Original signature : l_int32 numaaGetCount(NUMAA*)
*/
public static native int numaaGetCount(Numaa naa);
/**
* Original signature :
* l_int32 numaaGetNumaCount(NUMAA*, l_int32)
*/
public static native int numaaGetNumaCount(Numaa naa, int index);
/**
* Original signature : l_int32 numaaGetNumberCount(NUMAA*)
*/
public static native int numaaGetNumberCount(Numaa naa);
/**
* Original signature : NUMA** numaaGetPtrArray(NUMAA*)
*/
public static native PointerByReference numaaGetPtrArray(Numaa naa);
/**
* Original signature :
* NUMA* numaaGetNuma(NUMAA*, l_int32, l_int32)
*/
public static native Numa numaaGetNuma(Numaa naa, int index, int accessflag);
/**
* Original signature :
* l_ok numaaReplaceNuma(NUMAA*, l_int32, NUMA*)
*/
public static native int numaaReplaceNuma(Numaa naa, int index, Numa na);
/**
* Original signature :
* l_ok numaaGetValue(NUMAA*, l_int32, l_int32, l_float32*, l_int32*)
*/
public static native int numaaGetValue(Numaa naa, int i, int j, FloatBuffer pfval, IntBuffer pival);
/**
* Original signature :
* l_ok numaaAddNumber(NUMAA*, l_int32, l_float32)
*/
public static native int numaaAddNumber(Numaa naa, int index, float val);
/**
* Original signature : NUMAA* numaaRead(const char*)
*/
public static native Numaa numaaRead(String filename);
/**
* Original signature : NUMAA* numaaReadStream(FILE*)
*/
public static native Numaa numaaReadStream(FILE fp);
/**
* Original signature :
* NUMAA* numaaReadMem(const l_uint8*, size_t)
*/
public static native Numaa numaaReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok numaaWrite(const char*, NUMAA*)
*/
public static native int numaaWrite(String filename, Numaa naa);
/**
* Original signature : l_ok numaaWriteStream(FILE*, NUMAA*)
*/
public static native int numaaWriteStream(FILE fp, Numaa naa);
/**
* Original signature :
* l_ok numaaWriteMem(l_uint8**, size_t*, NUMAA*)
*/
public static native int numaaWriteMem(PointerByReference pdata, NativeSizeByReference psize, Numaa naa);
/**
* Original signature :
* NUMA* numaArithOp(NUMA*, NUMA*, NUMA*, l_int32)
*/
public static native Numa numaArithOp(Numa nad, Numa na1, Numa na2, int op);
/**
* Original signature :
* NUMA* numaLogicalOp(NUMA*, NUMA*, NUMA*, l_int32)
*/
public static native Numa numaLogicalOp(Numa nad, Numa na1, Numa na2, int op);
/**
* Original signature : NUMA* numaInvert(NUMA*, NUMA*)
*/
public static native Numa numaInvert(Numa nad, Numa nas);
/**
* Original signature :
* l_int32 numaSimilar(NUMA*, NUMA*, l_float32, l_int32*)
*/
public static native int numaSimilar(Numa na1, Numa na2, float maxdiff, IntBuffer psimilar);
/**
* Original signature :
* l_ok numaAddToNumber(NUMA*, l_int32, l_float32)
*/
public static native int numaAddToNumber(Numa na, int index, float val);
/**
* Original signature :
* l_ok numaGetMin(NUMA*, l_float32*, l_int32*)
*/
public static native int numaGetMin(Numa na, FloatBuffer pminval, IntBuffer piminloc);
/**
* Original signature :
* l_ok numaGetMax(NUMA*, l_float32*, l_int32*)
*/
public static native int numaGetMax(Numa na, FloatBuffer pmaxval, IntBuffer pimaxloc);
/**
* Original signature : l_ok numaGetSum(NUMA*, l_float32*)
*/
public static native int numaGetSum(Numa na, FloatBuffer psum);
/**
* Original signature : NUMA* numaGetPartialSums(NUMA*)
*/
public static native Numa numaGetPartialSums(Numa na);
/**
* Original signature :
* l_ok numaGetSumOnInterval(NUMA*, l_int32, l_int32, l_float32*)
*/
public static native int numaGetSumOnInterval(Numa na, int first, int last, FloatBuffer psum);
/**
* Original signature :
* l_ok numaHasOnlyIntegers(NUMA*, l_int32, l_int32*)
*/
public static native int numaHasOnlyIntegers(Numa na, int maxsamples, IntBuffer pallints);
/**
* Original signature : NUMA* numaSubsample(NUMA*, l_int32)
*/
public static native Numa numaSubsample(Numa nas, int subfactor);
/**
* Original signature : NUMA* numaMakeDelta(NUMA*)
*/
public static native Numa numaMakeDelta(Numa nas);
/**
* Original signature :
* NUMA* numaMakeSequence(l_float32, l_float32, l_int32)
*/
public static native Numa numaMakeSequence(float startval, float increment, int size);
/**
* Original signature :
* NUMA* numaMakeConstant(l_float32, l_int32)
*/
public static native Numa numaMakeConstant(float val, int size);
/**
* Original signature : NUMA* numaMakeAbsValue(NUMA*, NUMA*)
*/
public static native Numa numaMakeAbsValue(Numa nad, Numa nas);
/**
* Original signature :
* NUMA* numaAddBorder(NUMA*, l_int32, l_int32, l_float32)
*/
public static native Numa numaAddBorder(Numa nas, int left, int right, float val);
/**
* Original signature :
* NUMA* numaAddSpecifiedBorder(NUMA*, l_int32, l_int32, l_int32)
*/
public static native Numa numaAddSpecifiedBorder(Numa nas, int left, int right, int type);
/**
* Original signature :
* NUMA* numaRemoveBorder(NUMA*, l_int32, l_int32)
*/
public static native Numa numaRemoveBorder(Numa nas, int left, int right);
/**
* Original signature :
* l_ok numaCountNonzeroRuns(NUMA*, l_int32*)
*/
public static native int numaCountNonzeroRuns(Numa na, IntBuffer pcount);
/**
* Original signature :
* l_ok numaGetNonzeroRange(NUMA*, l_float32, l_int32*, l_int32*)
*/
public static native int numaGetNonzeroRange(Numa na, float eps, IntBuffer pfirst, IntBuffer plast);
/**
* Original signature :
* l_ok numaGetCountRelativeToZero(NUMA*, l_int32, l_int32*)
*/
public static native int numaGetCountRelativeToZero(Numa na, int type, IntBuffer pcount);
/**
* Original signature :
* NUMA* numaClipToInterval(NUMA*, l_int32, l_int32)
*/
public static native Numa numaClipToInterval(Numa nas, int first, int last);
/**
* Original signature :
* NUMA* numaMakeThresholdIndicator(NUMA*, l_float32, l_int32)
*/
public static native Numa numaMakeThresholdIndicator(Numa nas, float thresh, int type);
/**
* Original signature :
* NUMA* numaUniformSampling(NUMA*, l_int32)
*/
public static native Numa numaUniformSampling(Numa nas, int nsamp);
/**
* Original signature : NUMA* numaReverse(NUMA*, NUMA*)
*/
public static native Numa numaReverse(Numa nad, Numa nas);
/**
* Original signature :
* NUMA* numaLowPassIntervals(NUMA*, l_float32, l_float32)
*/
public static native Numa numaLowPassIntervals(Numa nas, float thresh, float maxn);
/**
* Original signature :
* NUMA* numaThresholdEdges(NUMA*, l_float32, l_float32, l_float32)
*/
public static native Numa numaThresholdEdges(Numa nas, float thresh1, float thresh2, float maxn);
/**
* Original signature :
* l_int32 numaGetSpanValues(NUMA*, l_int32, l_int32*, l_int32*)
*/
public static native int numaGetSpanValues(Numa na, int span, IntBuffer pstart, IntBuffer pend);
/**
* Original signature :
* l_int32 numaGetEdgeValues(NUMA*, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int numaGetEdgeValues(Numa na, int edge, IntBuffer pstart, IntBuffer pend, IntBuffer psign);
/**
* Original signature :
* l_ok numaInterpolateEqxVal(l_float32, l_float32, NUMA*, l_int32, l_float32, l_float32*)
*/
public static native int numaInterpolateEqxVal(float startx, float deltax, Numa nay, int type, float xval, FloatBuffer pyval);
/**
* Original signature :
* l_ok numaInterpolateArbxVal(NUMA*, NUMA*, l_int32, l_float32, l_float32*)
*/
public static native int numaInterpolateArbxVal(Numa nax, Numa nay, int type, float xval, FloatBuffer pyval);
/**
* Original signature :
* l_ok numaInterpolateEqxInterval(l_float32, l_float32, NUMA*, l_int32, l_float32, l_float32, l_int32, NUMA**, NUMA**)
*/
public static native int numaInterpolateEqxInterval(float startx, float deltax, Numa nasy, int type, float x0, float x1, int npts, PointerByReference pnax, PointerByReference pnay);
/**
* Original signature :
* l_ok numaInterpolateArbxInterval(NUMA*, NUMA*, l_int32, l_float32, l_float32, l_int32, NUMA**, NUMA**)
*/
public static native int numaInterpolateArbxInterval(Numa nax, Numa nay, int type, float x0, float x1, int npts, PointerByReference pnadx, PointerByReference pnady);
/**
* Original signature :
* l_ok numaFitMax(NUMA*, l_float32*, NUMA*, l_float32*)
*/
public static native int numaFitMax(Numa na, FloatBuffer pmaxval, Numa naloc, FloatBuffer pmaxloc);
/**
* Original signature :
* l_ok numaDifferentiateInterval(NUMA*, NUMA*, l_float32, l_float32, l_int32, NUMA**, NUMA**)
*/
public static native int numaDifferentiateInterval(Numa nax, Numa nay, float x0, float x1, int npts, PointerByReference pnadx, PointerByReference pnady);
/**
* Original signature :
* l_ok numaIntegrateInterval(NUMA*, NUMA*, l_float32, l_float32, l_int32, l_float32*)
*/
public static native int numaIntegrateInterval(Numa nax, Numa nay, float x0, float x1, int npts, FloatBuffer psum);
/**
* Original signature :
* l_ok numaSortGeneral(NUMA*, NUMA**, NUMA**, NUMA**, l_int32, l_int32)
*/
public static native int numaSortGeneral(Numa na, PointerByReference pnasort, PointerByReference pnaindex, PointerByReference pnainvert, int sortorder, int sorttype);
/**
* Original signature :
* NUMA* numaSortAutoSelect(NUMA*, l_int32)
*/
public static native Numa numaSortAutoSelect(Numa nas, int sortorder);
/**
* Original signature :
* NUMA* numaSortIndexAutoSelect(NUMA*, l_int32)
*/
public static native Numa numaSortIndexAutoSelect(Numa nas, int sortorder);
/**
* Original signature : l_int32 numaChooseSortType(NUMA*)
*/
public static native int numaChooseSortType(Numa nas);
/**
* Original signature : NUMA* numaSort(NUMA*, NUMA*, l_int32)
*/
public static native Numa numaSort(Numa naout, Numa nain, int sortorder);
/**
* Original signature : NUMA* numaBinSort(NUMA*, l_int32)
*/
public static native Numa numaBinSort(Numa nas, int sortorder);
/**
* Original signature : NUMA* numaGetSortIndex(NUMA*, l_int32)
*/
public static native Numa numaGetSortIndex(Numa na, int sortorder);
/**
* Original signature :
* NUMA* numaGetBinSortIndex(NUMA*, l_int32)
*/
public static native Numa numaGetBinSortIndex(Numa nas, int sortorder);
/**
* Original signature : NUMA* numaSortByIndex(NUMA*, NUMA*)
*/
public static native Numa numaSortByIndex(Numa nas, Numa naindex);
/**
* Original signature :
* l_int32 numaIsSorted(NUMA*, l_int32, l_int32*)
*/
public static native int numaIsSorted(Numa nas, int sortorder, IntBuffer psorted);
/**
* Original signature :
* l_ok numaSortPair(NUMA*, NUMA*, l_int32, NUMA**, NUMA**)
*/
public static native int numaSortPair(Numa nax, Numa nay, int sortorder, PointerByReference pnasx, PointerByReference pnasy);
/**
* Original signature : NUMA* numaInvertMap(NUMA*)
*/
public static native Numa numaInvertMap(Numa nas);
/**
* Original signature :
* NUMA* numaPseudorandomSequence(l_int32, l_int32)
*/
public static native Numa numaPseudorandomSequence(int size, int seed);
/**
* Original signature :
* NUMA* numaRandomPermutation(NUMA*, l_int32)
*/
public static native Numa numaRandomPermutation(Numa nas, int seed);
/**
* Original signature :
* l_ok numaGetRankValue(NUMA*, l_float32, NUMA*, l_int32, l_float32*)
*/
public static native int numaGetRankValue(Numa na, float fract, Numa nasort, int usebins, FloatBuffer pval);
/**
* Original signature : l_ok numaGetMedian(NUMA*, l_float32*)
*/
public static native int numaGetMedian(Numa na, FloatBuffer pval);
/**
* Original signature :
* l_ok numaGetBinnedMedian(NUMA*, l_int32*)
*/
public static native int numaGetBinnedMedian(Numa na, IntBuffer pval);
/**
* Original signature :
* l_ok numaGetMeanDevFromMedian(NUMA*, l_float32, l_float32*)
*/
public static native int numaGetMeanDevFromMedian(Numa na, float med, FloatBuffer pdev);
/**
* Original signature :
* l_ok numaGetMedianDevFromMedian(NUMA*, l_float32*, l_float32*)
*/
public static native int numaGetMedianDevFromMedian(Numa na, FloatBuffer pmed, FloatBuffer pdev);
/**
* Original signature :
* l_ok numaGetMode(NUMA*, l_float32*, l_int32*)
*/
public static native int numaGetMode(Numa na, FloatBuffer pval, IntBuffer pcount);
/**
* Original signature :
* l_ok numaJoin(NUMA*, NUMA*, l_int32, l_int32)
*/
public static native int numaJoin(Numa nad, Numa nas, int istart, int iend);
/**
* Original signature :
* l_ok numaaJoin(NUMAA*, NUMAA*, l_int32, l_int32)
*/
public static native int numaaJoin(Numaa naad, Numaa naas, int istart, int iend);
/**
* Original signature : NUMA* numaaFlattenToNuma(NUMAA*)
*/
public static native Numa numaaFlattenToNuma(Numaa naa);
/**
* Original signature : NUMA* numaErode(NUMA*, l_int32)
*/
public static native Numa numaErode(Numa nas, int size);
/**
* Original signature : NUMA* numaDilate(NUMA*, l_int32)
*/
public static native Numa numaDilate(Numa nas, int size);
/**
* Original signature : NUMA* numaOpen(NUMA*, l_int32)
*/
public static native Numa numaOpen(Numa nas, int size);
/**
* Original signature : NUMA* numaClose(NUMA*, l_int32)
*/
public static native Numa numaClose(Numa nas, int size);
/**
* Original signature :
* NUMA* numaTransform(NUMA*, l_float32, l_float32)
*/
public static native Numa numaTransform(Numa nas, float shift, float scale);
/**
* Original signature :
* l_ok numaSimpleStats(NUMA*, l_int32, l_int32, l_float32*, l_float32*, l_float32*)
*/
public static native int numaSimpleStats(Numa na, int first, int last, FloatBuffer pmean, FloatBuffer pvar, FloatBuffer prvar);
/**
* Original signature :
* l_ok numaWindowedStats(NUMA*, l_int32, NUMA**, NUMA**, NUMA**, NUMA**)
*/
public static native int numaWindowedStats(Numa nas, int wc, PointerByReference pnam, PointerByReference pnams, PointerByReference pnav, PointerByReference pnarv);
/**
* Original signature : NUMA* numaWindowedMean(NUMA*, l_int32)
*/
public static native Numa numaWindowedMean(Numa nas, int wc);
/**
* Original signature :
* NUMA* numaWindowedMeanSquare(NUMA*, l_int32)
*/
public static native Numa numaWindowedMeanSquare(Numa nas, int wc);
/**
* Original signature :
* l_ok numaWindowedVariance(NUMA*, NUMA*, NUMA**, NUMA**)
*/
public static native int numaWindowedVariance(Numa nam, Numa nams, PointerByReference pnav, PointerByReference pnarv);
/**
* Original signature :
* NUMA* numaWindowedMedian(NUMA*, l_int32)
*/
public static native Numa numaWindowedMedian(Numa nas, int halfwin);
/**
* Original signature : NUMA* numaConvertToInt(NUMA*)
*/
public static native Numa numaConvertToInt(Numa nas);
/**
* Original signature :
* NUMA* numaMakeHistogram(NUMA*, l_int32, l_int32*, l_int32*)
*/
public static native Numa numaMakeHistogram(Numa na, int maxbins, IntBuffer pbinsize, IntBuffer pbinstart);
/**
* Original signature :
* NUMA* numaMakeHistogramAuto(NUMA*, l_int32)
*/
public static native Numa numaMakeHistogramAuto(Numa na, int maxbins);
/**
* Original signature :
* NUMA* numaMakeHistogramClipped(NUMA*, l_float32, l_float32)
*/
public static native Numa numaMakeHistogramClipped(Numa na, float binsize, float maxsize);
/**
* Original signature :
* NUMA* numaRebinHistogram(NUMA*, l_int32)
*/
public static native Numa numaRebinHistogram(Numa nas, int newsize);
/**
* Original signature :
* NUMA* numaNormalizeHistogram(NUMA*, l_float32)
*/
public static native Numa numaNormalizeHistogram(Numa nas, float tsum);
/**
* Original signature :
* l_ok numaGetStatsUsingHistogram(NUMA*, l_int32, l_float32*, l_float32*, l_float32*, l_float32*, l_float32*, l_float32, l_float32*, NUMA**)
*/
public static native int numaGetStatsUsingHistogram(Numa na, int maxbins, FloatBuffer pmin, FloatBuffer pmax, FloatBuffer pmean, FloatBuffer pvariance, FloatBuffer pmedian, float rank, FloatBuffer prval, PointerByReference phisto);
/**
* Original signature :
* l_ok numaGetStatsUsingHistogram(NUMA*, l_int32, l_float32*, l_float32*, l_float32*, l_float32*, l_float32*, l_float32, l_float32*, NUMA**)
*/
public static native int numaGetStatsUsingHistogram(Numa na, int maxbins, FloatByReference pmin, FloatByReference pmax, FloatByReference pmean, FloatByReference pvariance, FloatByReference pmedian, float rank, FloatByReference prval, PointerByReference phisto);
/**
* Original signature :
* l_ok numaGetHistogramStats(NUMA*, l_float32, l_float32, l_float32*, l_float32*, l_float32*, l_float32*)
*/
public static native int numaGetHistogramStats(Numa nahisto, float startx, float deltax, FloatBuffer pxmean, FloatBuffer pxmedian, FloatBuffer pxmode, FloatBuffer pxvariance);
/**
* Original signature :
* l_ok numaGetHistogramStatsOnInterval(NUMA*, l_float32, l_float32, l_int32, l_int32, l_float32*, l_float32*, l_float32*, l_float32*)
*/
public static native int numaGetHistogramStatsOnInterval(Numa nahisto, float startx, float deltax, int ifirst, int ilast, FloatBuffer pxmean, FloatBuffer pxmedian, FloatBuffer pxmode, FloatBuffer pxvariance);
/**
* Original signature :
* l_ok numaMakeRankFromHistogram(l_float32, l_float32, NUMA*, l_int32, NUMA**, NUMA**)
*/
public static native int numaMakeRankFromHistogram(float startx, float deltax, Numa nasy, int npts, PointerByReference pnax, PointerByReference pnay);
/**
* Original signature :
* l_ok numaHistogramGetRankFromVal(NUMA*, l_float32, l_float32*)
*/
public static native int numaHistogramGetRankFromVal(Numa na, float rval, FloatBuffer prank);
/**
* Original signature :
* l_ok numaHistogramGetValFromRank(NUMA*, l_float32, l_float32*)
*/
public static native int numaHistogramGetValFromRank(Numa na, float rank, FloatBuffer prval);
/**
* Original signature :
* l_ok numaDiscretizeRankAndIntensity(NUMA*, l_int32, NUMA**, NUMA**, NUMA**, NUMA**)
*/
public static native int numaDiscretizeRankAndIntensity(Numa na, int nbins, PointerByReference pnarbin, PointerByReference pnam, PointerByReference pnar, PointerByReference pnabb);
/**
* Original signature :
* l_ok numaGetRankBinValues(NUMA*, l_int32, NUMA**, NUMA**)
*/
public static native int numaGetRankBinValues(Numa na, int nbins, PointerByReference pnarbin, PointerByReference pnam);
/**
* Original signature :
* l_ok numaSplitDistribution(NUMA*, l_float32, l_int32*, l_float32*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int numaSplitDistribution(Numa na, float scorefract, IntBuffer psplitindex, FloatBuffer pave1, FloatBuffer pave2, FloatBuffer pnum1, FloatBuffer pnum2, PointerByReference pnascore);
/**
* Original signature :
* l_ok numaSplitDistribution(NUMA*, l_float32, l_int32*, l_float32*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int numaSplitDistribution(Numa na, float scorefract, IntByReference psplitindex, FloatByReference pave1, FloatByReference pave2, FloatByReference pnum1, FloatByReference pnum2, PointerByReference pnascore);
/**
* Original signature :
* l_ok grayHistogramsToEMD(NUMAA*, NUMAA*, NUMA**)
*/
public static native int grayHistogramsToEMD(Numaa naa1, Numaa naa2, PointerByReference pnad);
/**
* Original signature :
* l_ok numaEarthMoverDistance(NUMA*, NUMA*, l_float32*)
*/
public static native int numaEarthMoverDistance(Numa na1, Numa na2, FloatBuffer pdist);
/**
* Original signature :
* l_ok grayInterHistogramStats(NUMAA*, l_int32, NUMA**, NUMA**, NUMA**, NUMA**)
*/
public static native int grayInterHistogramStats(Numaa naa, int wc, PointerByReference pnam, PointerByReference pnams, PointerByReference pnav, PointerByReference pnarv);
/**
* Original signature :
* NUMA* numaFindPeaks(NUMA*, l_int32, l_float32, l_float32)
*/
public static native Numa numaFindPeaks(Numa nas, int nmax, float fract1, float fract2);
/**
* Original signature :
* NUMA* numaFindExtrema(NUMA*, l_float32, NUMA**)
*/
public static native Numa numaFindExtrema(Numa nas, float delta, PointerByReference pnav);
/**
* Original signature :
* l_ok numaFindLocForThreshold(NUMA*, l_int32, l_int32*, l_float32*)
*/
public static native int numaFindLocForThreshold(Numa na, int skip, IntBuffer pthresh, FloatBuffer pfract);
/**
* Original signature :
* l_ok numaCountReversals(NUMA*, l_float32, l_int32*, l_float32*)
*/
public static native int numaCountReversals(Numa nas, float minreversal, IntBuffer pnr, FloatBuffer prd);
/**
* Original signature :
* l_ok numaSelectCrossingThreshold(NUMA*, NUMA*, l_float32, l_float32*)
*/
public static native int numaSelectCrossingThreshold(Numa nax, Numa nay, float estthresh, FloatBuffer pbestthresh);
/**
* Original signature :
* NUMA* numaCrossingsByThreshold(NUMA*, NUMA*, l_float32)
*/
public static native Numa numaCrossingsByThreshold(Numa nax, Numa nay, float thresh);
/**
* Original signature :
* NUMA* numaCrossingsByPeaks(NUMA*, NUMA*, l_float32)
*/
public static native Numa numaCrossingsByPeaks(Numa nax, Numa nay, float delta);
/**
* Original signature :
* l_ok numaEvalBestHaarParameters(NUMA*, l_float32, l_int32, l_int32, l_float32, l_float32, l_float32*, l_float32*, l_float32*)
*/
public static native int numaEvalBestHaarParameters(Numa nas, float relweight, int nwidth, int nshift, float minwidth, float maxwidth, FloatBuffer pbestwidth, FloatBuffer pbestshift, FloatBuffer pbestscore);
/**
* Original signature :
* l_ok numaEvalHaarSum(NUMA*, l_float32, l_float32, l_float32, l_float32*)
*/
public static native int numaEvalHaarSum(Numa nas, float width, float shift, float relweight, FloatBuffer pscore);
/**
* Original signature :
* NUMA* genConstrainedNumaInRange(l_int32, l_int32, l_int32, l_int32)
*/
public static native Numa genConstrainedNumaInRange(int first, int last, int nmax, int use_pairs);
/**
* Original signature :
* l_ok pixGetRegionsBinary(PIX*, PIX**, PIX**, PIX**, PIXA*)
*/
public static native int pixGetRegionsBinary(Pix pixs, PointerByReference ppixhm, PointerByReference ppixtm, PointerByReference ppixtb, Pixa pixadb);
/**
* Original signature :
* PIX* pixGenHalftoneMask(PIX*, PIX**, l_int32*, l_int32)
*/
public static native Pix pixGenHalftoneMask(Pix pixs, PointerByReference ppixtext, IntBuffer phtfound, int debug);
/**
* Original signature :
* PIX* pixGenHalftoneMask(PIX*, PIX**, l_int32*, l_int32)
*/
public static native Pix pixGenHalftoneMask(Pix pixs, PointerByReference ppixtext, IntByReference phtfound, int debug);
/**
* Original signature :
* PIX* pixGenerateHalftoneMask(PIX*, PIX**, l_int32*, PIXA*)
*/
public static native Pix pixGenerateHalftoneMask(Pix pixs, PointerByReference ppixtext, IntBuffer phtfound, Pixa pixadb);
/**
* Original signature :
* PIX* pixGenerateHalftoneMask(PIX*, PIX**, l_int32*, PIXA*)
*/
public static native Pix pixGenerateHalftoneMask(Pix pixs, PointerByReference ppixtext, IntByReference phtfound, Pixa pixadb);
/**
* Original signature :
* PIX* pixGenTextlineMask(PIX*, PIX**, l_int32*, PIXA*)
*/
public static native Pix pixGenTextlineMask(Pix pixs, PointerByReference ppixvws, IntBuffer ptlfound, Pixa pixadb);
/**
* Original signature :
* PIX* pixGenTextlineMask(PIX*, PIX**, l_int32*, PIXA*)
*/
public static native Pix pixGenTextlineMask(Pix pixs, PointerByReference ppixvws, IntByReference ptlfound, Pixa pixadb);
/**
* Original signature :
* PIX* pixGenTextblockMask(PIX*, PIX*, PIXA*)
*/
public static native Pix pixGenTextblockMask(Pix pixs, Pix pixvws, Pixa pixadb);
/**
* Original signature :
* BOX* pixFindPageForeground(PIX*, l_int32, l_int32, l_int32, l_int32, PIXAC*)
*/
public static native Box pixFindPageForeground(Pix pixs, int threshold, int mindist, int erasedist, int showmorph, PixaComp pixac);
/**
* Original signature :
* l_ok pixSplitIntoCharacters(PIX*, l_int32, l_int32, BOXA**, PIXA**, PIX**)
*/
public static native int pixSplitIntoCharacters(Pix pixs, int minw, int minh, PointerByReference pboxa, PointerByReference ppixa, PointerByReference ppixdebug);
/**
* Original signature :
* BOXA* pixSplitComponentWithProfile(PIX*, l_int32, l_int32, PIX**)
*/
public static native Boxa pixSplitComponentWithProfile(Pix pixs, int delta, int mindel, PointerByReference ppixdebug);
/**
* Original signature :
* PIXA* pixExtractTextlines(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, PIXA*)
*/
public static native Pixa pixExtractTextlines(Pix pixs, int maxw, int maxh, int minw, int minh, int adjw, int adjh, Pixa pixadb);
/**
* Original signature :
* PIXA* pixExtractRawTextlines(PIX*, l_int32, l_int32, l_int32, l_int32, PIXA*)
*/
public static native Pixa pixExtractRawTextlines(Pix pixs, int maxw, int maxh, int adjw, int adjh, Pixa pixadb);
/**
* Original signature :
* l_ok pixCountTextColumns(PIX*, l_float32, l_float32, l_float32, l_int32*, PIXA*)
*/
public static native int pixCountTextColumns(Pix pixs, float deltafract, float peakfract, float clipfract, IntBuffer pncols, Pixa pixadb);
/**
* Original signature :
* l_ok pixDecideIfText(PIX*, BOX*, l_int32*, PIXA*)
*/
public static native int pixDecideIfText(Pix pixs, Box box, IntBuffer pistext, Pixa pixadb);
/**
* Original signature :
* l_ok pixFindThreshFgExtent(PIX*, l_int32, l_int32*, l_int32*)
*/
public static native int pixFindThreshFgExtent(Pix pixs, int thresh, IntBuffer ptop, IntBuffer pbot);
/**
* Original signature :
* l_ok pixDecideIfTable(PIX*, BOX*, l_int32, l_int32*, PIXA*)
*/
public static native int pixDecideIfTable(Pix pixs, Box box, int orient, IntBuffer pscore, Pixa pixadb);
/**
* Original signature :
* PIX* pixPrepare1bpp(PIX*, BOX*, l_float32, l_int32)
*/
public static native Pix pixPrepare1bpp(Pix pixs, Box box, float cropfract, int outres);
/**
* Original signature :
* l_ok pixEstimateBackground(PIX*, l_int32, l_float32, l_int32*)
*/
public static native int pixEstimateBackground(Pix pixs, int darkthresh, float edgecrop, IntBuffer pbg);
/**
* Original signature :
* l_ok pixFindLargeRectangles(PIX*, l_int32, l_int32, BOXA**, PIX**)
*/
public static native int pixFindLargeRectangles(Pix pixs, int polarity, int nrect, PointerByReference pboxa, PointerByReference ppixdb);
/**
* Original signature :
* l_ok pixFindLargestRectangle(PIX*, l_int32, BOX**, PIX**)
*/
public static native int pixFindLargestRectangle(Pix pixs, int polarity, PointerByReference pbox, PointerByReference ppixdb);
/**
* Original signature :
* BOX* pixFindRectangleInCC(PIX*, BOX*, l_float32, l_int32, l_int32, l_int32)
*/
public static native Box pixFindRectangleInCC(Pix pixs, Box boxs, float fract, int dir, int select, int debug);
/**
* Original signature :
* PIX* pixAutoPhotoinvert(PIX*, l_int32, PIX**, PIXA*)
*/
public static native Pix pixAutoPhotoinvert(Pix pixs, int thresh, PointerByReference ppixm, Pixa pixadb);
/**
* Original signature :
* l_ok pixSetSelectCmap(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixSetSelectCmap(Pix pixs, Box box, int sindex, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixColorGrayRegionsCmap(PIX*, BOXA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixColorGrayRegionsCmap(Pix pixs, Boxa boxa, int type, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixColorGrayCmap(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixColorGrayCmap(Pix pixs, Box box, int type, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixColorGrayMaskedCmap(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixColorGrayMaskedCmap(Pix pixs, Pix pixm, int type, int rval, int gval, int bval);
/**
* Original signature :
* l_ok addColorizedGrayToCmap(PIXCMAP*, l_int32, l_int32, l_int32, l_int32, NUMA**)
*/
public static native int addColorizedGrayToCmap(PixColormap cmap, int type, int rval, int gval, int bval, PointerByReference pna);
/**
* Original signature :
* l_ok pixSetSelectMaskedCmap(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixSetSelectMaskedCmap(Pix pixs, Pix pixm, int x, int y, int sindex, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixSetMaskedCmap(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixSetMaskedCmap(Pix pixs, Pix pixm, int x, int y, int rval, int gval, int bval);
/**
* Original signature :
* char* parseForProtos(const char*, const char*)
*/
public static native Pointer parseForProtos(String filein, String prestring);
/**
* Original signature :
* l_ok partifyFiles(const char*, const char*, l_int32, const char*, const char*)
*/
public static native int partifyFiles(String dirname, String substr, int nparts, String outroot, String debugfile);
/**
* Original signature :
* l_ok partifyPixac(PIXAC*, l_int32, const char*, PIXA*)
*/
public static native int partifyPixac(PixaComp pixac, int nparts, String outroot, Pixa pixadb);
/**
* Original signature :
* BOXA* boxaGetWhiteblocks(BOXA*, BOX*, l_int32, l_int32, l_float32, l_int32, l_float32, l_int32)
*/
public static native Boxa boxaGetWhiteblocks(Boxa boxas, Box box, int sortflag, int maxboxes, float maxoverlap, int maxperim, float fract, int maxpops);
/**
* Original signature :
* BOXA* boxaPruneSortedOnOverlap(BOXA*, l_float32)
*/
public static native Boxa boxaPruneSortedOnOverlap(Boxa boxas, float maxoverlap);
/**
* Original signature :
* l_ok convertFilesToPdf(const char*, const char*, l_int32, l_float32, l_int32, l_int32, const char*, const char*)
*/
public static native int convertFilesToPdf(String dirname, String substr, int res, float scalefactor, int type, int quality, String title, String fileout);
/**
* Original signature :
* l_ok saConvertFilesToPdf(SARRAY*, l_int32, l_float32, l_int32, l_int32, const char*, const char*)
*/
public static native int saConvertFilesToPdf(Sarray sa, int res, float scalefactor, int type, int quality, String title, String fileout);
/**
* Original signature :
* l_ok saConvertFilesToPdfData(SARRAY*, l_int32, l_float32, l_int32, l_int32, const char*, l_uint8**, size_t*)
*/
public static native int saConvertFilesToPdfData(Sarray sa, int res, float scalefactor, int type, int quality, String title, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok selectDefaultPdfEncoding(PIX*, l_int32*)
*/
public static native int selectDefaultPdfEncoding(Pix pix, IntBuffer ptype);
/**
* Original signature :
* l_ok convertUnscaledFilesToPdf(const char*, const char*, const char*, const char*)
*/
public static native int convertUnscaledFilesToPdf(String dirname, String substr, String title, String fileout);
/**
* Original signature :
* l_ok saConvertUnscaledFilesToPdf(SARRAY*, const char*, const char*)
*/
public static native int saConvertUnscaledFilesToPdf(Sarray sa, String title, String fileout);
/**
* Original signature :
* l_ok saConvertUnscaledFilesToPdfData(SARRAY*, const char*, l_uint8**, size_t*)
*/
public static native int saConvertUnscaledFilesToPdfData(Sarray sa, String title, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok convertUnscaledToPdfData(const char*, const char*, l_uint8**, size_t*)
*/
public static native int convertUnscaledToPdfData(String fname, String title, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok pixaConvertToPdf(PIXA*, l_int32, l_float32, l_int32, l_int32, const char*, const char*)
*/
public static native int pixaConvertToPdf(Pixa pixa, int res, float scalefactor, int type, int quality, String title, String fileout);
/**
* Original signature :
* l_ok pixaConvertToPdfData(PIXA*, l_int32, l_float32, l_int32, l_int32, const char*, l_uint8**, size_t*)
*/
public static native int pixaConvertToPdfData(Pixa pixa, int res, float scalefactor, int type, int quality, String title, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok convertToPdf(const char*, l_int32, l_int32, const char*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int convertToPdf(String filein, int type, int quality, String fileout, int x, int y, int res, String title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok convertToPdf(const char*, l_int32, l_int32, const char*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int convertToPdf(Pointer filein, int type, int quality, Pointer fileout, int x, int y, int res, Pointer title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok convertImageDataToPdf(l_uint8*, size_t, l_int32, l_int32, const char*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int convertImageDataToPdf(ByteBuffer imdata, NativeSize size, int type, int quality, String fileout, int x, int y, int res, String title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok convertImageDataToPdf(l_uint8*, size_t, l_int32, l_int32, const char*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int convertImageDataToPdf(Pointer imdata, NativeSize size, int type, int quality, Pointer fileout, int x, int y, int res, Pointer title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok convertToPdfData(const char*, l_int32, l_int32, l_uint8**, size_t*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int convertToPdfData(String filein, int type, int quality, PointerByReference pdata, NativeSizeByReference pnbytes, int x, int y, int res, String title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok convertToPdfData(const char*, l_int32, l_int32, l_uint8**, size_t*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int convertToPdfData(Pointer filein, int type, int quality, PointerByReference pdata, NativeSizeByReference pnbytes, int x, int y, int res, Pointer title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok convertImageDataToPdfData(l_uint8*, size_t, l_int32, l_int32, l_uint8**, size_t*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int convertImageDataToPdfData(ByteBuffer imdata, NativeSize size, int type, int quality, PointerByReference pdata, NativeSizeByReference pnbytes, int x, int y, int res, String title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok convertImageDataToPdfData(l_uint8*, size_t, l_int32, l_int32, l_uint8**, size_t*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int convertImageDataToPdfData(Pointer imdata, NativeSize size, int type, int quality, PointerByReference pdata, NativeSizeByReference pnbytes, int x, int y, int res, Pointer title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok pixConvertToPdf(PIX*, l_int32, l_int32, const char*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int pixConvertToPdf(Pix pix, int type, int quality, String fileout, int x, int y, int res, String title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok pixConvertToPdf(PIX*, l_int32, l_int32, const char*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int pixConvertToPdf(Pix pix, int type, int quality, Pointer fileout, int x, int y, int res, Pointer title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok pixWriteStreamPdf(FILE*, PIX*, l_int32, const char*)
*/
public static native int pixWriteStreamPdf(FILE fp, Pix pix, int res, String title);
/**
* Original signature :
* l_ok pixWriteMemPdf(l_uint8**, size_t*, PIX*, l_int32, const char*)
*/
public static native int pixWriteMemPdf(PointerByReference pdata, NativeSizeByReference pnbytes, Pix pix, int res, String title);
/**
* Original signature :
* l_ok convertSegmentedFilesToPdf(const char*, const char*, l_int32, l_int32, l_int32, BOXAA*, l_int32, l_float32, const char*, const char*)
*/
public static native int convertSegmentedFilesToPdf(String dirname, String substr, int res, int type, int thresh, Boxaa baa, int quality, float scalefactor, String title, String fileout);
/**
* Original signature :
* BOXAA* convertNumberedMasksToBoxaa(const char*, const char*, l_int32, l_int32)
*/
public static native Boxaa convertNumberedMasksToBoxaa(String dirname, String substr, int numpre, int numpost);
/**
* Original signature :
* l_ok convertToPdfSegmented(const char*, l_int32, l_int32, l_int32, BOXA*, l_int32, l_float32, const char*, const char*)
*/
public static native int convertToPdfSegmented(String filein, int res, int type, int thresh, Boxa boxa, int quality, float scalefactor, String title, String fileout);
/**
* Original signature :
* l_ok pixConvertToPdfSegmented(PIX*, l_int32, l_int32, l_int32, BOXA*, l_int32, l_float32, const char*, const char*)
*/
public static native int pixConvertToPdfSegmented(Pix pixs, int res, int type, int thresh, Boxa boxa, int quality, float scalefactor, String title, String fileout);
/**
* Original signature :
* l_ok convertToPdfDataSegmented(const char*, l_int32, l_int32, l_int32, BOXA*, l_int32, l_float32, const char*, l_uint8**, size_t*)
*/
public static native int convertToPdfDataSegmented(String filein, int res, int type, int thresh, Boxa boxa, int quality, float scalefactor, String title, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok pixConvertToPdfDataSegmented(PIX*, l_int32, l_int32, l_int32, BOXA*, l_int32, l_float32, const char*, l_uint8**, size_t*)
*/
public static native int pixConvertToPdfDataSegmented(Pix pixs, int res, int type, int thresh, Boxa boxa, int quality, float scalefactor, String title, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok concatenatePdf(const char*, const char*, const char*)
*/
public static native int concatenatePdf(String dirname, String substr, String fileout);
/**
* Original signature :
* l_ok saConcatenatePdf(SARRAY*, const char*)
*/
public static native int saConcatenatePdf(Sarray sa, String fileout);
/**
* Original signature :
* l_ok ptraConcatenatePdf(L_PTRA*, const char*)
*/
public static native int ptraConcatenatePdf(L_Ptra pa, String fileout);
/**
* Original signature :
* l_ok concatenatePdfToData(const char*, const char*, l_uint8**, size_t*)
*/
public static native int concatenatePdfToData(String dirname, String substr, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok saConcatenatePdfToData(SARRAY*, l_uint8**, size_t*)
*/
public static native int saConcatenatePdfToData(Sarray sa, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok pixConvertToPdfData(PIX*, l_int32, l_int32, l_uint8**, size_t*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int pixConvertToPdfData(Pix pix, int type, int quality, PointerByReference pdata, NativeSizeByReference pnbytes, int x, int y, int res, String title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok pixConvertToPdfData(PIX*, l_int32, l_int32, l_uint8**, size_t*, l_int32, l_int32, l_int32, const char*, L_PDF_DATA**, l_int32)
*/
public static native int pixConvertToPdfData(Pix pix, int type, int quality, PointerByReference pdata, NativeSizeByReference pnbytes, int x, int y, int res, Pointer title, PointerByReference plpd, int position);
/**
* Original signature :
* l_ok ptraConcatenatePdfToData(L_PTRA*, SARRAY*, l_uint8**, size_t*)
*/
public static native int ptraConcatenatePdfToData(L_Ptra pa_data, Sarray sa, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok convertTiffMultipageToPdf(const char*, const char*)
*/
public static native int convertTiffMultipageToPdf(String filein, String fileout);
/**
* Original signature :
* l_ok l_generateCIDataForPdf(const char*, PIX*, l_int32, L_COMP_DATA**)
*/
public static native int l_generateCIDataForPdf(String fname, Pix pix, int quality, PointerByReference pcid);
/**
* Original signature :
* l_ok l_generateCIDataForPdf(const char*, PIX*, l_int32, L_COMP_DATA**)
*/
public static native int l_generateCIDataForPdf(Pointer fname, Pix pix, int quality, PointerByReference pcid);
/**
* Original signature :
* L_COMP_DATA* l_generateFlateDataPdf(const char*, PIX*)
*/
public static native L_Compressed_Data l_generateFlateDataPdf(String fname, Pix pixs);
/**
* Original signature :
* L_COMP_DATA* l_generateJpegData(const char*, l_int32)
*/
public static native L_Compressed_Data l_generateJpegData(String fname, int ascii85flag);
/**
* Original signature :
* L_COMP_DATA* l_generateJpegDataMem(l_uint8*, size_t, l_int32)
*/
public static native L_Compressed_Data l_generateJpegDataMem(ByteBuffer data, NativeSize nbytes, int ascii85flag);
/**
* Original signature :
* l_ok l_generateCIData(const char*, l_int32, l_int32, l_int32, L_COMP_DATA**)
*/
public static native int l_generateCIData(String fname, int type, int quality, int ascii85, PointerByReference pcid);
/**
* Original signature :
* l_ok l_generateCIData(const char*, l_int32, l_int32, l_int32, L_COMP_DATA**)
*/
public static native int l_generateCIData(Pointer fname, int type, int quality, int ascii85, PointerByReference pcid);
/**
* Original signature :
* l_ok pixGenerateCIData(PIX*, l_int32, l_int32, l_int32, L_COMP_DATA**)
*/
public static native int pixGenerateCIData(Pix pixs, int type, int quality, int ascii85, PointerByReference pcid);
/**
* Original signature :
* L_COMP_DATA* l_generateFlateData(const char*, l_int32)
*/
public static native L_Compressed_Data l_generateFlateData(String fname, int ascii85flag);
/**
* Original signature :
* L_COMP_DATA* l_generateG4Data(const char*, l_int32)
*/
public static native L_Compressed_Data l_generateG4Data(String fname, int ascii85flag);
/**
* Original signature :
* l_ok cidConvertToPdfData(L_COMP_DATA*, const char*, l_uint8**, size_t*)
*/
public static native int cidConvertToPdfData(L_Compressed_Data cid, String title, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature : void l_CIDataDestroy(L_COMP_DATA**)
*/
public static native void l_CIDataDestroy(PointerByReference pcid);
/**
* Original signature : void l_pdfSetG4ImageMask(l_int32)
*/
public static native void l_pdfSetG4ImageMask(int flag);
/**
* Original signature : void l_pdfSetDateAndVersion(l_int32)
*/
public static native void l_pdfSetDateAndVersion(int flag);
/**
* Original signature :
* void setPixMemoryManager(alloc_fn, dealloc_fn)
*/
public static native void setPixMemoryManager(alloc_fn allocator, dealloc_fn deallocator);
/**
* Original signature :
* PIX* pixCreate(l_int32, l_int32, l_int32)
*/
public static native Pix pixCreate(int width, int height, int depth);
/**
* Original signature :
* PIX* pixCreateNoInit(l_int32, l_int32, l_int32)
*/
public static native Pix pixCreateNoInit(int width, int height, int depth);
/**
* Original signature : PIX* pixCreateTemplate(const PIX*)
*/
public static native Pix pixCreateTemplate(Pix pixs);
/**
* Original signature :
* PIX* pixCreateTemplateNoInit(const PIX*)
*/
public static native Pix pixCreateTemplateNoInit(Pix pixs);
/**
* Original signature :
* PIX* pixCreateWithCmap(l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixCreateWithCmap(int width, int height, int depth, int initcolor);
/**
* Original signature :
* PIX* pixCreateHeader(l_int32, l_int32, l_int32)
*/
public static native Pix pixCreateHeader(int width, int height, int depth);
/**
* Original signature : PIX* pixClone(PIX*)
*/
public static native Pix pixClone(Pix pixs);
/**
* Original signature : void pixDestroy(PIX**)
*/
public static native void pixDestroy(PointerByReference ppix);
/**
* Original signature : PIX* pixCopy(PIX*, const PIX*)
*/
public static native Pix pixCopy(Pix pixd, Pix pixs);
/**
* Original signature :
* l_ok pixResizeImageData(PIX*, const PIX*)
*/
public static native int pixResizeImageData(Pix pixd, Pix pixs);
/**
* Original signature : l_ok pixCopyColormap(PIX*, const PIX*)
*/
public static native int pixCopyColormap(Pix pixd, Pix pixs);
/**
* Original signature :
* l_int32 pixSizesEqual(const PIX*, const PIX*)
*/
public static native int pixSizesEqual(Pix pix1, Pix pix2);
/**
* Original signature :
* l_ok pixTransferAllData(PIX*, PIX**, l_int32, l_int32)
*/
public static native int pixTransferAllData(Pix pixd, PointerByReference ppixs, int copytext, int copyformat);
/**
* Original signature : l_ok pixSwapAndDestroy(PIX**, PIX**)
*/
public static native int pixSwapAndDestroy(PointerByReference ppixd, PointerByReference ppixs);
/**
* Original signature : l_int32 pixGetWidth(const PIX*)
*/
public static native int pixGetWidth(Pix pix);
/**
* Original signature : l_int32 pixSetWidth(PIX*, l_int32)
*/
public static native int pixSetWidth(Pix pix, int width);
/**
* Original signature : l_int32 pixGetHeight(const PIX*)
*/
public static native int pixGetHeight(Pix pix);
/**
* Original signature : l_int32 pixSetHeight(PIX*, l_int32)
*/
public static native int pixSetHeight(Pix pix, int height);
/**
* Original signature : l_int32 pixGetDepth(const PIX*)
*/
public static native int pixGetDepth(Pix pix);
/**
* Original signature : l_int32 pixSetDepth(PIX*, l_int32)
*/
public static native int pixSetDepth(Pix pix, int depth);
/**
* Original signature :
* l_ok pixGetDimensions(const PIX*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixGetDimensions(Pix pix, IntBuffer pw, IntBuffer ph, IntBuffer pd);
/**
* Original signature :
* l_ok pixSetDimensions(PIX*, l_int32, l_int32, l_int32)
*/
public static native int pixSetDimensions(Pix pix, int w, int h, int d);
/**
* Original signature :
* l_ok pixCopyDimensions(PIX*, const PIX*)
*/
public static native int pixCopyDimensions(Pix pixd, Pix pixs);
/**
* Original signature : l_int32 pixGetSpp(const PIX*)
*/
public static native int pixGetSpp(Pix pix);
/**
* Original signature : l_int32 pixSetSpp(PIX*, l_int32)
*/
public static native int pixSetSpp(Pix pix, int spp);
/**
* Original signature : l_ok pixCopySpp(PIX*, const PIX*)
*/
public static native int pixCopySpp(Pix pixd, Pix pixs);
/**
* Original signature : l_int32 pixGetWpl(const PIX*)
*/
public static native int pixGetWpl(Pix pix);
/**
* Original signature : l_int32 pixSetWpl(PIX*, l_int32)
*/
public static native int pixSetWpl(Pix pix, int wpl);
/**
* Original signature : l_int32 pixGetRefcount(const PIX*)
*/
public static native int pixGetRefcount(Pix pix);
/**
* Original signature :
* l_int32 pixChangeRefcount(PIX*, l_int32)
*/
public static native int pixChangeRefcount(Pix pix, int delta);
/**
* Original signature : l_int32 pixGetXRes(const PIX*)
*/
public static native int pixGetXRes(Pix pix);
/**
* Original signature : l_int32 pixSetXRes(PIX*, l_int32)
*/
public static native int pixSetXRes(Pix pix, int res);
/**
* Original signature : l_int32 pixGetYRes(const PIX*)
*/
public static native int pixGetYRes(Pix pix);
/**
* Original signature : l_int32 pixSetYRes(PIX*, l_int32)
*/
public static native int pixSetYRes(Pix pix, int res);
/**
* Original signature :
* l_ok pixGetResolution(const PIX*, l_int32*, l_int32*)
*/
public static native int pixGetResolution(Pix pix, IntBuffer pxres, IntBuffer pyres);
/**
* Original signature :
* l_ok pixSetResolution(PIX*, l_int32, l_int32)
*/
public static native int pixSetResolution(Pix pix, int xres, int yres);
/**
* Original signature :
* l_int32 pixCopyResolution(PIX*, const PIX*)
*/
public static native int pixCopyResolution(Pix pixd, Pix pixs);
/**
* Original signature :
* l_int32 pixScaleResolution(PIX*, l_float32, l_float32)
*/
public static native int pixScaleResolution(Pix pix, float xscale, float yscale);
/**
* Original signature : l_int32 pixGetInputFormat(const PIX*)
*/
public static native int pixGetInputFormat(Pix pix);
/**
* Original signature :
* l_int32 pixSetInputFormat(PIX*, l_int32)
*/
public static native int pixSetInputFormat(Pix pix, int informat);
/**
* Original signature :
* l_int32 pixCopyInputFormat(PIX*, const PIX*)
*/
public static native int pixCopyInputFormat(Pix pixd, Pix pixs);
/**
* Original signature : l_int32 pixSetSpecial(PIX*, l_int32)
*/
public static native int pixSetSpecial(Pix pix, int special);
/**
* Original signature : char* pixGetText(PIX*)
*/
public static native Pointer pixGetText(Pix pix);
/**
* Original signature : l_ok pixSetText(PIX*, const char*)
*/
public static native int pixSetText(Pix pix, String textstring);
/**
* Original signature : l_ok pixAddText(PIX*, const char*)
*/
public static native int pixAddText(Pix pix, String textstring);
/**
* Original signature : l_int32 pixCopyText(PIX*, const PIX*)
*/
public static native int pixCopyText(Pix pixd, Pix pixs);
/**
* Original signature : PIXCMAP* pixGetColormap(PIX*)
*/
public static native PixColormap pixGetColormap(Pix pix);
/**
* Original signature : l_ok pixSetColormap(PIX*, PIXCMAP*)
*/
public static native int pixSetColormap(Pix pix, PixColormap colormap);
/**
* Original signature : l_ok pixDestroyColormap(PIX*)
*/
public static native int pixDestroyColormap(Pix pix);
/**
* Original signature : l_uint32* pixGetData(PIX*)
*/
public static native IntByReference pixGetData(Pix pix);
/**
* Original signature : l_int32 pixSetData(PIX*, l_uint32*)
*/
public static native int pixSetData(Pix pix, IntBuffer data);
/**
* Original signature : l_uint32* pixExtractData(PIX*)
*/
public static native IntByReference pixExtractData(Pix pixs);
/**
* Original signature : l_int32 pixFreeData(PIX*)
*/
public static native int pixFreeData(Pix pix);
/**
* Original signature : void** pixGetLinePtrs(PIX*, l_int32*)
*/
public static native PointerByReference pixGetLinePtrs(Pix pix, IntBuffer psize);
/**
* Original signature :
* l_ok pixPrintStreamInfo(FILE*, const PIX*, const char*)
*/
public static native int pixPrintStreamInfo(FILE fp, Pix pix, String text);
/**
* Original signature :
* l_ok pixGetPixel(PIX*, l_int32, l_int32, l_uint32*)
*/
public static native int pixGetPixel(Pix pix, int x, int y, IntBuffer pval);
/**
* Original signature :
* l_ok pixSetPixel(PIX*, l_int32, l_int32, l_uint32)
*/
public static native int pixSetPixel(Pix pix, int x, int y, int val);
/**
* Original signature :
* l_ok pixGetRGBPixel(PIX*, l_int32, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int pixGetRGBPixel(Pix pix, int x, int y, IntBuffer prval, IntBuffer pgval, IntBuffer pbval);
/**
* Original signature :
* l_ok pixSetRGBPixel(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixSetRGBPixel(Pix pix, int x, int y, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixSetCmapPixel(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixSetCmapPixel(Pix pix, int x, int y, int rval, int gval, int bval);
/**
* Original signature :
* l_ok pixGetRandomPixel(PIX*, l_uint32*, l_int32*, l_int32*)
*/
public static native int pixGetRandomPixel(Pix pix, IntBuffer pval, IntBuffer px, IntBuffer py);
/**
* Original signature :
* l_ok pixClearPixel(PIX*, l_int32, l_int32)
*/
public static native int pixClearPixel(Pix pix, int x, int y);
/**
* Original signature :
* l_ok pixFlipPixel(PIX*, l_int32, l_int32)
*/
public static native int pixFlipPixel(Pix pix, int x, int y);
/**
* Original signature :
* void setPixelLow(l_uint32*, l_int32, l_int32, l_uint32)
*/
public static native void setPixelLow(IntBuffer line, int x, int depth, int val);
/**
* Original signature :
* l_ok pixGetBlackOrWhiteVal(PIX*, l_int32, l_uint32*)
*/
public static native int pixGetBlackOrWhiteVal(Pix pixs, int op, IntBuffer pval);
/**
* Original signature : l_ok pixClearAll(PIX*)
*/
public static native int pixClearAll(Pix pix);
/**
* Original signature : l_ok pixSetAll(PIX*)
*/
public static native int pixSetAll(Pix pix);
/**
* Original signature : l_ok pixSetAllGray(PIX*, l_int32)
*/
public static native int pixSetAllGray(Pix pix, int grayval);
/**
* Original signature : l_ok pixSetAllArbitrary(PIX*, l_uint32)
*/
public static native int pixSetAllArbitrary(Pix pix, int val);
/**
* Original signature : l_ok pixSetBlackOrWhite(PIX*, l_int32)
*/
public static native int pixSetBlackOrWhite(Pix pixs, int op);
/**
* Original signature :
* l_ok pixSetComponentArbitrary(PIX*, l_int32, l_int32)
*/
public static native int pixSetComponentArbitrary(Pix pix, int comp, int val);
/**
* Original signature : l_ok pixClearInRect(PIX*, BOX*)
*/
public static native int pixClearInRect(Pix pix, Box box);
/**
* Original signature : l_ok pixSetInRect(PIX*, BOX*)
*/
public static native int pixSetInRect(Pix pix, Box box);
/**
* Original signature :
* l_ok pixSetInRectArbitrary(PIX*, BOX*, l_uint32)
*/
public static native int pixSetInRectArbitrary(Pix pix, Box box, int val);
/**
* Original signature :
* l_ok pixBlendInRect(PIX*, BOX*, l_uint32, l_float32)
*/
public static native int pixBlendInRect(Pix pixs, Box box, int val, float fract);
/**
* Original signature : l_ok pixSetPadBits(PIX*, l_int32)
*/
public static native int pixSetPadBits(Pix pix, int val);
/**
* Original signature :
* l_ok pixSetPadBitsBand(PIX*, l_int32, l_int32, l_int32)
*/
public static native int pixSetPadBitsBand(Pix pix, int by, int bh, int val);
/**
* Original signature :
* l_ok pixSetOrClearBorder(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixSetOrClearBorder(Pix pixs, int left, int right, int top, int bot, int op);
/**
* Original signature :
* l_ok pixSetBorderVal(PIX*, l_int32, l_int32, l_int32, l_int32, l_uint32)
*/
public static native int pixSetBorderVal(Pix pixs, int left, int right, int top, int bot, int val);
/**
* Original signature :
* l_ok pixSetBorderRingVal(PIX*, l_int32, l_uint32)
*/
public static native int pixSetBorderRingVal(Pix pixs, int dist, int val);
/**
* Original signature :
* l_ok pixSetMirroredBorder(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixSetMirroredBorder(Pix pixs, int left, int right, int top, int bot);
/**
* Original signature :
* PIX* pixCopyBorder(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixCopyBorder(Pix pixd, Pix pixs, int left, int right, int top, int bot);
/**
* Original signature :
* PIX* pixAddBorder(PIX*, l_int32, l_uint32)
*/
public static native Pix pixAddBorder(Pix pixs, int npix, int val);
/**
* Original signature :
* PIX* pixAddBlackOrWhiteBorder(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixAddBlackOrWhiteBorder(Pix pixs, int left, int right, int top, int bot, int op);
/**
* Original signature :
* PIX* pixAddBorderGeneral(PIX*, l_int32, l_int32, l_int32, l_int32, l_uint32)
*/
public static native Pix pixAddBorderGeneral(Pix pixs, int left, int right, int top, int bot, int val);
/**
* Original signature : PIX* pixRemoveBorder(PIX*, l_int32)
*/
public static native Pix pixRemoveBorder(Pix pixs, int npix);
/**
* Original signature :
* PIX* pixRemoveBorderGeneral(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixRemoveBorderGeneral(Pix pixs, int left, int right, int top, int bot);
/**
* Original signature :
* PIX* pixRemoveBorderToSize(PIX*, l_int32, l_int32)
*/
public static native Pix pixRemoveBorderToSize(Pix pixs, int wd, int hd);
/**
* Original signature :
* PIX* pixAddMirroredBorder(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixAddMirroredBorder(Pix pixs, int left, int right, int top, int bot);
/**
* Original signature :
* PIX* pixAddRepeatedBorder(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixAddRepeatedBorder(Pix pixs, int left, int right, int top, int bot);
/**
* Original signature :
* PIX* pixAddMixedBorder(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixAddMixedBorder(Pix pixs, int left, int right, int top, int bot);
/**
* Original signature :
* PIX* pixAddContinuedBorder(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixAddContinuedBorder(Pix pixs, int left, int right, int top, int bot);
/**
* Original signature :
* l_ok pixShiftAndTransferAlpha(PIX*, PIX*, l_float32, l_float32)
*/
public static native int pixShiftAndTransferAlpha(Pix pixd, Pix pixs, float shiftx, float shifty);
/**
* Original signature :
* PIX* pixDisplayLayersRGBA(PIX*, l_uint32, l_int32)
*/
public static native Pix pixDisplayLayersRGBA(Pix pixs, int val, int maxw);
/**
* Original signature :
* PIX* pixCreateRGBImage(PIX*, PIX*, PIX*)
*/
public static native Pix pixCreateRGBImage(Pix pixr, Pix pixg, Pix pixb);
/**
* Original signature : PIX* pixGetRGBComponent(PIX*, l_int32)
*/
public static native Pix pixGetRGBComponent(Pix pixs, int comp);
/**
* Original signature :
* l_ok pixSetRGBComponent(PIX*, PIX*, l_int32)
*/
public static native int pixSetRGBComponent(Pix pixd, Pix pixs, int comp);
/**
* Original signature :
* PIX* pixGetRGBComponentCmap(PIX*, l_int32)
*/
public static native Pix pixGetRGBComponentCmap(Pix pixs, int comp);
/**
* Original signature :
* l_ok pixCopyRGBComponent(PIX*, PIX*, l_int32)
*/
public static native int pixCopyRGBComponent(Pix pixd, Pix pixs, int comp);
/**
* Original signature :
* l_ok composeRGBPixel(l_int32, l_int32, l_int32, l_uint32*)
*/
public static native int composeRGBPixel(int rval, int gval, int bval, IntBuffer ppixel);
/**
* Original signature :
* l_ok composeRGBAPixel(l_int32, l_int32, l_int32, l_int32, l_uint32*)
*/
public static native int composeRGBAPixel(int rval, int gval, int bval, int aval, IntBuffer ppixel);
/**
* Original signature :
* void extractRGBValues(l_uint32, l_int32*, l_int32*, l_int32*)
*/
public static native void extractRGBValues(int pixel, IntBuffer prval, IntBuffer pgval, IntBuffer pbval);
/**
* Original signature :
* void extractRGBAValues(l_uint32, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native void extractRGBAValues(int pixel, IntBuffer prval, IntBuffer pgval, IntBuffer pbval, IntBuffer paval);
/**
* Original signature :
* l_int32 extractMinMaxComponent(l_uint32, l_int32)
*/
public static native int extractMinMaxComponent(int pixel, int type);
/**
* Original signature :
* l_ok pixGetRGBLine(PIX*, l_int32, l_uint8*, l_uint8*, l_uint8*)
*/
public static native int pixGetRGBLine(Pix pixs, int row, ByteBuffer bufr, ByteBuffer bufg, ByteBuffer bufb);
/**
* Original signature :
* l_ok setLineDataVal(l_uint32*, l_int32, l_int32, l_uint32)
*/
public static native int setLineDataVal(IntBuffer line, int j, int d, int val);
/**
* Original signature : PIX* pixEndianByteSwapNew(PIX*)
*/
public static native Pix pixEndianByteSwapNew(Pix pixs);
/**
* Original signature : l_ok pixEndianByteSwap(PIX*)
*/
public static native int pixEndianByteSwap(Pix pixs);
/**
* Original signature :
* l_int32 lineEndianByteSwap(l_uint32*, l_uint32*, l_int32)
*/
public static native int lineEndianByteSwap(IntBuffer datad, IntBuffer datas, int wpl);
/**
* Original signature : PIX* pixEndianTwoByteSwapNew(PIX*)
*/
public static native Pix pixEndianTwoByteSwapNew(Pix pixs);
/**
* Original signature : l_ok pixEndianTwoByteSwap(PIX*)
*/
public static native int pixEndianTwoByteSwap(Pix pixs);
/**
* Original signature :
* l_ok pixGetRasterData(PIX*, l_uint8**, size_t*)
*/
public static native int pixGetRasterData(Pix pixs, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature : l_ok pixAlphaIsOpaque(PIX*, l_int32*)
*/
public static native int pixAlphaIsOpaque(Pix pix, IntBuffer popaque);
/**
* Original signature :
* l_uint8** pixSetupByteProcessing(PIX*, l_int32*, l_int32*)
*/
public static native PointerByReference pixSetupByteProcessing(Pix pix, IntBuffer pw, IntBuffer ph);
/**
* Original signature :
* l_ok pixCleanupByteProcessing(PIX*, l_uint8**)
*/
public static native int pixCleanupByteProcessing(Pix pix, PointerByReference lineptrs);
/**
* Original signature :
* void l_setAlphaMaskBorder(l_float32, l_float32)
*/
public static native void l_setAlphaMaskBorder(float val1, float val2);
/**
* Original signature : l_ok pixSetMasked(PIX*, PIX*, l_uint32)
*/
public static native int pixSetMasked(Pix pixd, Pix pixm, int val);
/**
* Original signature :
* l_ok pixSetMaskedGeneral(PIX*, PIX*, l_uint32, l_int32, l_int32)
*/
public static native int pixSetMaskedGeneral(Pix pixd, Pix pixm, int val, int x, int y);
/**
* Original signature : l_ok pixCombineMasked(PIX*, PIX*, PIX*)
*/
public static native int pixCombineMasked(Pix pixd, Pix pixs, Pix pixm);
/**
* Original signature :
* l_ok pixCombineMaskedGeneral(PIX*, PIX*, PIX*, l_int32, l_int32)
*/
public static native int pixCombineMaskedGeneral(Pix pixd, Pix pixs, Pix pixm, int x, int y);
/**
* Original signature :
* l_ok pixPaintThroughMask(PIX*, PIX*, l_int32, l_int32, l_uint32)
*/
public static native int pixPaintThroughMask(Pix pixd, Pix pixm, int x, int y, int val);
/**
* Original signature :
* PIX* pixCopyWithBoxa(PIX*, BOXA*, l_int32)
*/
public static native Pix pixCopyWithBoxa(Pix pixs, Boxa boxa, int background);
/**
* Original signature :
* l_ok pixPaintSelfThroughMask(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixPaintSelfThroughMask(Pix pixd, Pix pixm, int x, int y, int searchdir, int mindist, int tilesize, int ntiles, int distblend);
/**
* Original signature : PIX* pixMakeMaskFromVal(PIX*, l_int32)
*/
public static native Pix pixMakeMaskFromVal(Pix pixs, int val);
/**
* Original signature : PIX* pixMakeMaskFromLUT(PIX*, l_int32*)
*/
public static native Pix pixMakeMaskFromLUT(Pix pixs, IntBuffer tab);
/**
* Original signature :
* PIX* pixMakeArbMaskFromRGB(PIX*, l_float32, l_float32, l_float32, l_float32)
*/
public static native Pix pixMakeArbMaskFromRGB(Pix pixs, float rc, float gc, float bc, float thresh);
/**
* Original signature :
* PIX* pixSetUnderTransparency(PIX*, l_uint32, l_int32)
*/
public static native Pix pixSetUnderTransparency(Pix pixs, int val, int debug);
/**
* Original signature :
* PIX* pixMakeAlphaFromMask(PIX*, l_int32, BOX**)
*/
public static native Pix pixMakeAlphaFromMask(Pix pixs, int dist, PointerByReference pbox);
/**
* Original signature :
* l_ok pixGetColorNearMaskBoundary(PIX*, PIX*, BOX*, l_int32, l_uint32*, l_int32)
*/
public static native int pixGetColorNearMaskBoundary(Pix pixs, Pix pixm, Box box, int dist, IntBuffer pval, int debug);
/**
* Original signature :
* PIX* pixDisplaySelectedPixels(PIX*, PIX*, SEL*, l_uint32)
*/
public static native Pix pixDisplaySelectedPixels(Pix pixs, Pix pixm, Pointer sel, int val);
/**
* Original signature : PIX* pixInvert(PIX*, PIX*)
*/
public static native Pix pixInvert(Pix pixd, Pix pixs);
/**
* Original signature : PIX* pixOr(PIX*, PIX*, PIX*)
*/
public static native Pix pixOr(Pix pixd, Pix pixs1, Pix pixs2);
/**
* Original signature : PIX* pixAnd(PIX*, PIX*, PIX*)
*/
public static native Pix pixAnd(Pix pixd, Pix pixs1, Pix pixs2);
/**
* Original signature : PIX* pixXor(PIX*, PIX*, PIX*)
*/
public static native Pix pixXor(Pix pixd, Pix pixs1, Pix pixs2);
/**
* Original signature : PIX* pixSubtract(PIX*, PIX*, PIX*)
*/
public static native Pix pixSubtract(Pix pixd, Pix pixs1, Pix pixs2);
/**
* Original signature : l_ok pixZero(PIX*, l_int32*)
*/
public static native int pixZero(Pix pix, IntBuffer pempty);
/**
* Original signature :
* l_ok pixForegroundFraction(PIX*, l_float32*)
*/
public static native int pixForegroundFraction(Pix pix, FloatBuffer pfract);
/**
* Original signature : NUMA* pixaCountPixels(PIXA*)
*/
public static native Numa pixaCountPixels(Pixa pixa);
/**
* Original signature :
* l_ok pixCountPixels(PIX*, l_int32*, l_int32*)
*/
public static native int pixCountPixels(Pix pixs, IntBuffer pcount, IntBuffer tab8);
/**
* Original signature :
* l_ok pixCountPixelsInRect(PIX*, BOX*, l_int32*, l_int32*)
*/
public static native int pixCountPixelsInRect(Pix pixs, Box box, IntBuffer pcount, IntBuffer tab8);
/**
* Original signature : NUMA* pixCountByRow(PIX*, BOX*)
*/
public static native Numa pixCountByRow(Pix pix, Box box);
/**
* Original signature : NUMA* pixCountByColumn(PIX*, BOX*)
*/
public static native Numa pixCountByColumn(Pix pix, Box box);
/**
* Original signature :
* NUMA* pixCountPixelsByRow(PIX*, l_int32*)
*/
public static native Numa pixCountPixelsByRow(Pix pix, IntBuffer tab8);
/**
* Original signature : NUMA* pixCountPixelsByColumn(PIX*)
*/
public static native Numa pixCountPixelsByColumn(Pix pix);
/**
* Original signature :
* l_ok pixCountPixelsInRow(PIX*, l_int32, l_int32*, l_int32*)
*/
public static native int pixCountPixelsInRow(Pix pix, int row, IntBuffer pcount, IntBuffer tab8);
/**
* Original signature :
* NUMA* pixGetMomentByColumn(PIX*, l_int32)
*/
public static native Numa pixGetMomentByColumn(Pix pix, int order);
/**
* Original signature :
* l_ok pixThresholdPixelSum(PIX*, l_int32, l_int32*, l_int32*)
*/
public static native int pixThresholdPixelSum(Pix pix, int thresh, IntBuffer pabove, IntBuffer tab8);
/**
* Original signature : l_int32* makePixelSumTab8()
*/
public static native IntByReference makePixelSumTab8();
/**
* Original signature : l_int32* makePixelCentroidTab8()
*/
public static native IntByReference makePixelCentroidTab8();
/**
* Original signature :
* NUMA* pixAverageByRow(PIX*, BOX*, l_int32)
*/
public static native Numa pixAverageByRow(Pix pix, Box box, int type);
/**
* Original signature :
* NUMA* pixAverageByColumn(PIX*, BOX*, l_int32)
*/
public static native Numa pixAverageByColumn(Pix pix, Box box, int type);
/**
* Original signature :
* l_ok pixAverageInRect(PIX*, PIX*, BOX*, l_int32, l_int32, l_int32, l_float32*)
*/
public static native int pixAverageInRect(Pix pixs, Pix pixm, Box box, int minval, int maxval, int subsamp, FloatBuffer pave);
/**
* Original signature :
* l_ok pixAverageInRectRGB(PIX*, PIX*, BOX*, l_int32, l_uint32*)
*/
public static native int pixAverageInRectRGB(Pix pixs, Pix pixm, Box box, int subsamp, IntBuffer pave);
/**
* Original signature : NUMA* pixVarianceByRow(PIX*, BOX*)
*/
public static native Numa pixVarianceByRow(Pix pix, Box box);
/**
* Original signature : NUMA* pixVarianceByColumn(PIX*, BOX*)
*/
public static native Numa pixVarianceByColumn(Pix pix, Box box);
/**
* Original signature :
* l_ok pixVarianceInRect(PIX*, BOX*, l_float32*)
*/
public static native int pixVarianceInRect(Pix pix, Box box, FloatBuffer prootvar);
/**
* Original signature : NUMA* pixAbsDiffByRow(PIX*, BOX*)
*/
public static native Numa pixAbsDiffByRow(Pix pix, Box box);
/**
* Original signature : NUMA* pixAbsDiffByColumn(PIX*, BOX*)
*/
public static native Numa pixAbsDiffByColumn(Pix pix, Box box);
/**
* Original signature :
* l_ok pixAbsDiffInRect(PIX*, BOX*, l_int32, l_float32*)
*/
public static native int pixAbsDiffInRect(Pix pix, Box box, int dir, FloatBuffer pabsdiff);
/**
* Original signature :
* l_ok pixAbsDiffOnLine(PIX*, l_int32, l_int32, l_int32, l_int32, l_float32*)
*/
public static native int pixAbsDiffOnLine(Pix pix, int x1, int y1, int x2, int y2, FloatBuffer pabsdiff);
/**
* Original signature :
* l_int32 pixCountArbInRect(PIX*, BOX*, l_int32, l_int32, l_int32*)
*/
public static native int pixCountArbInRect(Pix pixs, Box box, int val, int factor, IntBuffer pcount);
/**
* Original signature :
* PIX* pixMirroredTiling(PIX*, l_int32, l_int32)
*/
public static native Pix pixMirroredTiling(Pix pixs, int w, int h);
/**
* Original signature :
* l_ok pixFindRepCloseTile(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32, BOX**, l_int32)
*/
public static native int pixFindRepCloseTile(Pix pixs, Box box, int searchdir, int mindist, int tsize, int ntiles, PointerByReference pboxtile, int debug);
/**
* Original signature :
* NUMA* pixGetGrayHistogram(PIX*, l_int32)
*/
public static native Numa pixGetGrayHistogram(Pix pixs, int factor);
/**
* Original signature :
* NUMA* pixGetGrayHistogramMasked(PIX*, PIX*, l_int32, l_int32, l_int32)
*/
public static native Numa pixGetGrayHistogramMasked(Pix pixs, Pix pixm, int x, int y, int factor);
/**
* Original signature :
* NUMA* pixGetGrayHistogramInRect(PIX*, BOX*, l_int32)
*/
public static native Numa pixGetGrayHistogramInRect(Pix pixs, Box box, int factor);
/**
* Original signature :
* NUMAA* pixGetGrayHistogramTiled(PIX*, l_int32, l_int32, l_int32)
*/
public static native Numaa pixGetGrayHistogramTiled(Pix pixs, int factor, int nx, int ny);
/**
* Original signature :
* l_ok pixGetColorHistogram(PIX*, l_int32, NUMA**, NUMA**, NUMA**)
*/
public static native int pixGetColorHistogram(Pix pixs, int factor, PointerByReference pnar, PointerByReference pnag, PointerByReference pnab);
/**
* Original signature :
* l_ok pixGetColorHistogramMasked(PIX*, PIX*, l_int32, l_int32, l_int32, NUMA**, NUMA**, NUMA**)
*/
public static native int pixGetColorHistogramMasked(Pix pixs, Pix pixm, int x, int y, int factor, PointerByReference pnar, PointerByReference pnag, PointerByReference pnab);
/**
* Original signature :
* NUMA* pixGetCmapHistogram(PIX*, l_int32)
*/
public static native Numa pixGetCmapHistogram(Pix pixs, int factor);
/**
* Original signature :
* NUMA* pixGetCmapHistogramMasked(PIX*, PIX*, l_int32, l_int32, l_int32)
*/
public static native Numa pixGetCmapHistogramMasked(Pix pixs, Pix pixm, int x, int y, int factor);
/**
* Original signature :
* NUMA* pixGetCmapHistogramInRect(PIX*, BOX*, l_int32)
*/
public static native Numa pixGetCmapHistogramInRect(Pix pixs, Box box, int factor);
/**
* Original signature :
* l_ok pixCountRGBColors(PIX*, l_int32, l_int32*)
*/
public static native int pixCountRGBColors(Pix pixs, int factor, IntBuffer pncolors);
/**
* Original signature :
* L_AMAP* pixGetColorAmapHistogram(PIX*, l_int32)
*/
public static native L_Rbtree pixGetColorAmapHistogram(Pix pixs, int factor);
/**
* Original signature :
* l_int32 amapGetCountForColor(L_AMAP*, l_uint32)
*/
public static native int amapGetCountForColor(L_Rbtree amap, int val);
/**
* Original signature :
* l_ok pixGetRankValue(PIX*, l_int32, l_float32, l_uint32*)
*/
public static native int pixGetRankValue(Pix pixs, int factor, float rank, IntBuffer pvalue);
/**
* Original signature :
* l_ok pixGetRankValueMaskedRGB(PIX*, PIX*, l_int32, l_int32, l_int32, l_float32, l_float32*, l_float32*, l_float32*)
*/
public static native int pixGetRankValueMaskedRGB(Pix pixs, Pix pixm, int x, int y, int factor, float rank, FloatBuffer prval, FloatBuffer pgval, FloatBuffer pbval);
/**
* Original signature :
* l_ok pixGetRankValueMasked(PIX*, PIX*, l_int32, l_int32, l_int32, l_float32, l_float32*, NUMA**)
*/
public static native int pixGetRankValueMasked(Pix pixs, Pix pixm, int x, int y, int factor, float rank, FloatBuffer pval, PointerByReference pna);
/**
* Original signature :
* l_ok pixGetRankValueMasked(PIX*, PIX*, l_int32, l_int32, l_int32, l_float32, l_float32*, NUMA**)
*/
public static native int pixGetRankValueMasked(Pix pixs, Pix pixm, int x, int y, int factor, float rank, FloatByReference pval, PointerByReference pna);
/**
* Original signature :
* l_ok pixGetPixelAverage(PIX*, PIX*, l_int32, l_int32, l_int32, l_uint32*)
*/
public static native int pixGetPixelAverage(Pix pixs, Pix pixm, int x, int y, int factor, IntBuffer pval);
/**
* Original signature :
* l_ok pixGetPixelStats(PIX*, l_int32, l_int32, l_uint32*)
*/
public static native int pixGetPixelStats(Pix pixs, int factor, int type, IntBuffer pvalue);
/**
* Original signature :
* l_ok pixGetAverageMaskedRGB(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_float32*, l_float32*, l_float32*)
*/
public static native int pixGetAverageMaskedRGB(Pix pixs, Pix pixm, int x, int y, int factor, int type, FloatBuffer prval, FloatBuffer pgval, FloatBuffer pbval);
/**
* Original signature :
* l_ok pixGetAverageMasked(PIX*, PIX*, l_int32, l_int32, l_int32, l_int32, l_float32*)
*/
public static native int pixGetAverageMasked(Pix pixs, Pix pixm, int x, int y, int factor, int type, FloatBuffer pval);
/**
* Original signature :
* l_ok pixGetAverageTiledRGB(PIX*, l_int32, l_int32, l_int32, PIX**, PIX**, PIX**)
*/
public static native int pixGetAverageTiledRGB(Pix pixs, int sx, int sy, int type, PointerByReference ppixr, PointerByReference ppixg, PointerByReference ppixb);
/**
* Original signature :
* PIX* pixGetAverageTiled(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixGetAverageTiled(Pix pixs, int sx, int sy, int type);
/**
* Original signature :
* l_int32 pixRowStats(PIX*, BOX*, NUMA**, NUMA**, NUMA**, NUMA**, NUMA**, NUMA**)
*/
public static native int pixRowStats(Pix pixs, Box box, PointerByReference pnamean, PointerByReference pnamedian, PointerByReference pnamode, PointerByReference pnamodecount, PointerByReference pnavar, PointerByReference pnarootvar);
/**
* Original signature :
* l_int32 pixColumnStats(PIX*, BOX*, NUMA**, NUMA**, NUMA**, NUMA**, NUMA**, NUMA**)
*/
public static native int pixColumnStats(Pix pixs, Box box, PointerByReference pnamean, PointerByReference pnamedian, PointerByReference pnamode, PointerByReference pnamodecount, PointerByReference pnavar, PointerByReference pnarootvar);
/**
* Original signature :
* l_ok pixGetRangeValues(PIX*, l_int32, l_int32, l_int32*, l_int32*)
*/
public static native int pixGetRangeValues(Pix pixs, int factor, int color, IntBuffer pminval, IntBuffer pmaxval);
/**
* Original signature :
* l_ok pixGetExtremeValue(PIX*, l_int32, l_int32, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixGetExtremeValue(Pix pixs, int factor, int type, IntBuffer prval, IntBuffer pgval, IntBuffer pbval, IntBuffer pgrayval);
/**
* Original signature :
* l_ok pixGetMaxValueInRect(PIX*, BOX*, l_uint32*, l_int32*, l_int32*)
*/
public static native int pixGetMaxValueInRect(Pix pixs, Box box, IntBuffer pmaxval, IntBuffer pxmax, IntBuffer pymax);
/**
* Original signature :
* l_ok pixGetBinnedComponentRange(PIX*, l_int32, l_int32, l_int32, l_int32*, l_int32*, l_uint32**, l_int32)
*/
public static native int pixGetBinnedComponentRange(Pix pixs, int nbins, int factor, int color, IntBuffer pminval, IntBuffer pmaxval, PointerByReference pcarray, int fontsize);
/**
* Original signature :
* l_ok pixGetRankColorArray(PIX*, l_int32, l_int32, l_int32, l_uint32**, PIXA*, l_int32)
*/
public static native int pixGetRankColorArray(Pix pixs, int nbins, int type, int factor, PointerByReference pcarray, Pixa pixadb, int fontsize);
/**
* Original signature :
* l_ok pixGetBinnedColor(PIX*, PIX*, l_int32, l_int32, NUMA*, l_uint32**, PIXA*)
*/
public static native int pixGetBinnedColor(Pix pixs, Pix pixg, int factor, int nbins, Numa nalut, PointerByReference pcarray, Pixa pixadb);
/**
* Original signature :
* PIX* pixDisplayColorArray(l_uint32*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixDisplayColorArray(IntBuffer carray, int ncolors, int side, int ncols, int fontsize);
/**
* Original signature :
* PIX* pixRankBinByStrip(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixRankBinByStrip(Pix pixs, int direction, int size, int nbins, int type);
/**
* Original signature :
* PIX* pixaGetAlignedStats(PIXA*, l_int32, l_int32, l_int32)
*/
public static native Pix pixaGetAlignedStats(Pixa pixa, int type, int nbins, int thresh);
/**
* Original signature :
* l_ok pixaExtractColumnFromEachPix(PIXA*, l_int32, PIX*)
*/
public static native int pixaExtractColumnFromEachPix(Pixa pixa, int col, Pix pixd);
/**
* Original signature :
* l_ok pixGetRowStats(PIX*, l_int32, l_int32, l_int32, l_float32*)
*/
public static native int pixGetRowStats(Pix pixs, int type, int nbins, int thresh, FloatBuffer colvect);
/**
* Original signature :
* l_ok pixGetColumnStats(PIX*, l_int32, l_int32, l_int32, l_float32*)
*/
public static native int pixGetColumnStats(Pix pixs, int type, int nbins, int thresh, FloatBuffer rowvect);
/**
* Original signature :
* l_ok pixSetPixelColumn(PIX*, l_int32, l_float32*)
*/
public static native int pixSetPixelColumn(Pix pix, int col, FloatBuffer colvect);
/**
* Original signature :
* l_ok pixThresholdForFgBg(PIX*, l_int32, l_int32, l_int32*, l_int32*)
*/
public static native int pixThresholdForFgBg(Pix pixs, int factor, int thresh, IntBuffer pfgval, IntBuffer pbgval);
/**
* Original signature :
* l_ok pixSplitDistributionFgBg(PIX*, l_float32, l_int32, l_int32*, l_int32*, l_int32*, PIX**)
*/
public static native int pixSplitDistributionFgBg(Pix pixs, float scorefract, int factor, IntBuffer pthresh, IntBuffer pfgval, IntBuffer pbgval, PointerByReference ppixdb);
/**
* Original signature :
* l_ok pixSplitDistributionFgBg(PIX*, l_float32, l_int32, l_int32*, l_int32*, l_int32*, PIX**)
*/
public static native int pixSplitDistributionFgBg(Pix pixs, float scorefract, int factor, IntByReference pthresh, IntByReference pfgval, IntByReference pbgval, PointerByReference ppixdb);
/**
* Original signature :
* l_ok pixaFindDimensions(PIXA*, NUMA**, NUMA**)
*/
public static native int pixaFindDimensions(Pixa pixa, PointerByReference pnaw, PointerByReference pnah);
/**
* Original signature :
* l_ok pixFindAreaPerimRatio(PIX*, l_int32*, l_float32*)
*/
public static native int pixFindAreaPerimRatio(Pix pixs, IntBuffer tab, FloatBuffer pfract);
/**
* Original signature : NUMA* pixaFindPerimToAreaRatio(PIXA*)
*/
public static native Numa pixaFindPerimToAreaRatio(Pixa pixa);
/**
* Original signature :
* l_ok pixFindPerimToAreaRatio(PIX*, l_int32*, l_float32*)
*/
public static native int pixFindPerimToAreaRatio(Pix pixs, IntBuffer tab, FloatBuffer pfract);
/**
* Original signature : NUMA* pixaFindPerimSizeRatio(PIXA*)
*/
public static native Numa pixaFindPerimSizeRatio(Pixa pixa);
/**
* Original signature :
* l_ok pixFindPerimSizeRatio(PIX*, l_int32*, l_float32*)
*/
public static native int pixFindPerimSizeRatio(Pix pixs, IntBuffer tab, FloatBuffer pratio);
/**
* Original signature : NUMA* pixaFindAreaFraction(PIXA*)
*/
public static native Numa pixaFindAreaFraction(Pixa pixa);
/**
* Original signature :
* l_ok pixFindAreaFraction(PIX*, l_int32*, l_float32*)
*/
public static native int pixFindAreaFraction(Pix pixs, IntBuffer tab, FloatBuffer pfract);
/**
* Original signature :
* NUMA* pixaFindAreaFractionMasked(PIXA*, PIX*, l_int32)
*/
public static native Numa pixaFindAreaFractionMasked(Pixa pixa, Pix pixm, int debug);
/**
* Original signature :
* l_ok pixFindAreaFractionMasked(PIX*, BOX*, PIX*, l_int32*, l_float32*)
*/
public static native int pixFindAreaFractionMasked(Pix pixs, Box box, Pix pixm, IntBuffer tab, FloatBuffer pfract);
/**
* Original signature : NUMA* pixaFindWidthHeightRatio(PIXA*)
*/
public static native Numa pixaFindWidthHeightRatio(Pixa pixa);
/**
* Original signature : NUMA* pixaFindWidthHeightProduct(PIXA*)
*/
public static native Numa pixaFindWidthHeightProduct(Pixa pixa);
/**
* Original signature :
* l_ok pixFindOverlapFraction(PIX*, PIX*, l_int32, l_int32, l_int32*, l_float32*, l_int32*)
*/
public static native int pixFindOverlapFraction(Pix pixs1, Pix pixs2, int x2, int y2, IntBuffer tab, FloatBuffer pratio, IntBuffer pnoverlap);
/**
* Original signature :
* BOXA* pixFindRectangleComps(PIX*, l_int32, l_int32, l_int32)
*/
public static native Boxa pixFindRectangleComps(Pix pixs, int dist, int minw, int minh);
/**
* Original signature :
* l_ok pixConformsToRectangle(PIX*, BOX*, l_int32, l_int32*)
*/
public static native int pixConformsToRectangle(Pix pixs, Box box, int dist, IntBuffer pconforms);
/**
* Original signature : PIXA* pixClipRectangles(PIX*, BOXA*)
*/
public static native Pixa pixClipRectangles(Pix pixs, Boxa boxa);
/**
* Original signature :
* PIX* pixClipRectangle(PIX*, BOX*, BOX**)
*/
public static native Pix pixClipRectangle(Pix pixs, Box box, PointerByReference pboxc);
/**
* Original signature :
* PIX* pixClipMasked(PIX*, PIX*, l_int32, l_int32, l_uint32)
*/
public static native Pix pixClipMasked(Pix pixs, Pix pixm, int x, int y, int outval);
/**
* Original signature :
* l_ok pixCropToMatch(PIX*, PIX*, PIX**, PIX**)
*/
public static native int pixCropToMatch(Pix pixs1, Pix pixs2, PointerByReference ppixd1, PointerByReference ppixd2);
/**
* Original signature :
* PIX* pixCropToSize(PIX*, l_int32, l_int32)
*/
public static native Pix pixCropToSize(Pix pixs, int w, int h);
/**
* Original signature :
* PIX* pixResizeToMatch(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixResizeToMatch(Pix pixs, Pix pixt, int w, int h);
/**
* Original signature :
* PIX* pixSelectComponentBySize(PIX*, l_int32, l_int32, l_int32, BOX**)
*/
public static native Pix pixSelectComponentBySize(Pix pixs, int rankorder, int type, int connectivity, PointerByReference pbox);
/**
* Original signature :
* PIX* pixFilterComponentBySize(PIX*, l_int32, l_int32, l_int32, BOX**)
*/
public static native Pix pixFilterComponentBySize(Pix pixs, int rankorder, int type, int connectivity, PointerByReference pbox);
/**
* Original signature :
* PIX* pixMakeSymmetricMask(l_int32, l_int32, l_float32, l_float32, l_int32)
*/
public static native Pix pixMakeSymmetricMask(int w, int h, float hf, float vf, int type);
/**
* Original signature :
* PIX* pixMakeFrameMask(l_int32, l_int32, l_float32, l_float32, l_float32, l_float32)
*/
public static native Pix pixMakeFrameMask(int w, int h, float hf1, float hf2, float vf1, float vf2);
/**
* Original signature :
* PIX* pixMakeCoveringOfRectangles(PIX*, l_int32)
*/
public static native Pix pixMakeCoveringOfRectangles(Pix pixs, int maxiters);
/**
* Original signature :
* l_ok pixFractionFgInMask(PIX*, PIX*, l_float32*)
*/
public static native int pixFractionFgInMask(Pix pix1, Pix pix2, FloatBuffer pfract);
/**
* Original signature :
* l_ok pixClipToForeground(PIX*, PIX**, BOX**)
*/
public static native int pixClipToForeground(Pix pixs, PointerByReference ppixd, PointerByReference pbox);
/**
* Original signature :
* l_ok pixTestClipToForeground(PIX*, l_int32*)
*/
public static native int pixTestClipToForeground(Pix pixs, IntBuffer pcanclip);
/**
* Original signature :
* l_ok pixClipBoxToForeground(PIX*, BOX*, PIX**, BOX**)
*/
public static native int pixClipBoxToForeground(Pix pixs, Box boxs, PointerByReference ppixd, PointerByReference pboxd);
/**
* Original signature :
* l_ok pixScanForForeground(PIX*, BOX*, l_int32, l_int32*)
*/
public static native int pixScanForForeground(Pix pixs, Box box, int scanflag, IntBuffer ploc);
/**
* Original signature :
* l_ok pixClipBoxToEdges(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32, PIX**, BOX**)
*/
public static native int pixClipBoxToEdges(Pix pixs, Box boxs, int lowthresh, int highthresh, int maxwidth, int factor, PointerByReference ppixd, PointerByReference pboxd);
/**
* Original signature :
* l_ok pixScanForEdge(PIX*, BOX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixScanForEdge(Pix pixs, Box box, int lowthresh, int highthresh, int maxwidth, int factor, int scanflag, IntBuffer ploc);
/**
* Original signature :
* NUMA* pixExtractOnLine(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Numa pixExtractOnLine(Pix pixs, int x1, int y1, int x2, int y2, int factor);
/**
* Original signature :
* l_float32 pixAverageOnLine(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native float pixAverageOnLine(Pix pixs, int x1, int y1, int x2, int y2, int factor);
/**
* Original signature :
* NUMA* pixAverageIntensityProfile(PIX*, l_float32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Numa pixAverageIntensityProfile(Pix pixs, float fract, int dir, int first, int last, int factor1, int factor2);
/**
* Original signature :
* NUMA* pixReversalProfile(PIX*, l_float32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Numa pixReversalProfile(Pix pixs, float fract, int dir, int first, int last, int minreversal, int factor1, int factor2);
/**
* Original signature :
* l_ok pixWindowedVarianceOnLine(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, NUMA**)
*/
public static native int pixWindowedVarianceOnLine(Pix pixs, int dir, int loc, int c1, int c2, int size, PointerByReference pnad);
/**
* Original signature :
* l_ok pixMinMaxNearLine(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, NUMA**, NUMA**, l_float32*, l_float32*)
*/
public static native int pixMinMaxNearLine(Pix pixs, int x1, int y1, int x2, int y2, int dist, int direction, PointerByReference pnamin, PointerByReference pnamax, FloatBuffer pminave, FloatBuffer pmaxave);
/**
* Original signature :
* l_ok pixMinMaxNearLine(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, NUMA**, NUMA**, l_float32*, l_float32*)
*/
public static native int pixMinMaxNearLine(Pix pixs, int x1, int y1, int x2, int y2, int dist, int direction, PointerByReference pnamin, PointerByReference pnamax, FloatByReference pminave, FloatByReference pmaxave);
/**
* Original signature : PIX* pixRankRowTransform(PIX*)
*/
public static native Pix pixRankRowTransform(Pix pixs);
/**
* Original signature : PIX* pixRankColumnTransform(PIX*)
*/
public static native Pix pixRankColumnTransform(Pix pixs);
/**
* Original signature : PIXA* pixaCreate(l_int32)
*/
public static native Pixa pixaCreate(int n);
/**
* Original signature :
* PIXA* pixaCreateFromPix(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaCreateFromPix(Pix pixs, int n, int cellw, int cellh);
/**
* Original signature :
* PIXA* pixaCreateFromBoxa(PIX*, BOXA*, l_int32, l_int32, l_int32*)
*/
public static native Pixa pixaCreateFromBoxa(Pix pixs, Boxa boxa, int start, int num, IntBuffer pcropwarn);
/**
* Original signature :
* PIXA* pixaSplitPix(PIX*, l_int32, l_int32, l_int32, l_uint32)
*/
public static native Pixa pixaSplitPix(Pix pixs, int nx, int ny, int borderwidth, int bordercolor);
/**
* Original signature : void pixaDestroy(PIXA**)
*/
public static native void pixaDestroy(PointerByReference ppixa);
/**
* Original signature : PIXA* pixaCopy(PIXA*, l_int32)
*/
public static native Pixa pixaCopy(Pixa pixa, int copyflag);
/**
* Original signature : l_ok pixaAddPix(PIXA*, PIX*, l_int32)
*/
public static native int pixaAddPix(Pixa pixa, Pix pix, int copyflag);
/**
* Original signature : l_ok pixaAddBox(PIXA*, BOX*, l_int32)
*/
public static native int pixaAddBox(Pixa pixa, Box box, int copyflag);
/**
* Original signature :
* l_ok pixaExtendArrayToSize(PIXA*, l_int32)
*/
public static native int pixaExtendArrayToSize(Pixa pixa, int size);
/**
* Original signature : l_int32 pixaGetCount(PIXA*)
*/
public static native int pixaGetCount(Pixa pixa);
/**
* Original signature : l_ok pixaChangeRefcount(PIXA*, l_int32)
*/
public static native int pixaChangeRefcount(Pixa pixa, int delta);
/**
* Original signature :
* PIX* pixaGetPix(PIXA*, l_int32, l_int32)
*/
public static native Pix pixaGetPix(Pixa pixa, int index, int accesstype);
/**
* Original signature :
* l_ok pixaGetPixDimensions(PIXA*, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int pixaGetPixDimensions(Pixa pixa, int index, IntBuffer pw, IntBuffer ph, IntBuffer pd);
/**
* Original signature : BOXA* pixaGetBoxa(PIXA*, l_int32)
*/
public static native Boxa pixaGetBoxa(Pixa pixa, int accesstype);
/**
* Original signature : l_int32 pixaGetBoxaCount(PIXA*)
*/
public static native int pixaGetBoxaCount(Pixa pixa);
/**
* Original signature :
* BOX* pixaGetBox(PIXA*, l_int32, l_int32)
*/
public static native Box pixaGetBox(Pixa pixa, int index, int accesstype);
/**
* Original signature :
* l_ok pixaGetBoxGeometry(PIXA*, l_int32, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixaGetBoxGeometry(Pixa pixa, int index, IntBuffer px, IntBuffer py, IntBuffer pw, IntBuffer ph);
/**
* Original signature : l_ok pixaSetBoxa(PIXA*, BOXA*, l_int32)
*/
public static native int pixaSetBoxa(Pixa pixa, Boxa boxa, int accesstype);
/**
* Original signature : PIX** pixaGetPixArray(PIXA*)
*/
public static native PointerByReference pixaGetPixArray(Pixa pixa);
/**
* Original signature :
* l_ok pixaVerifyDepth(PIXA*, l_int32*, l_int32*)
*/
public static native int pixaVerifyDepth(Pixa pixa, IntBuffer psame, IntBuffer pmaxd);
/**
* Original signature :
* l_ok pixaVerifyDimensions(PIXA*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixaVerifyDimensions(Pixa pixa, IntBuffer psame, IntBuffer pmaxw, IntBuffer pmaxh);
/**
* Original signature :
* l_ok pixaIsFull(PIXA*, l_int32*, l_int32*)
*/
public static native int pixaIsFull(Pixa pixa, IntBuffer pfullpa, IntBuffer pfullba);
/**
* Original signature : l_ok pixaCountText(PIXA*, l_int32*)
*/
public static native int pixaCountText(Pixa pixa, IntBuffer pntext);
/**
* Original signature :
* l_ok pixaSetText(PIXA*, const char*, SARRAY*)
*/
public static native int pixaSetText(Pixa pixa, String text, Sarray sa);
/**
* Original signature :
* void*** pixaGetLinePtrs(PIXA*, l_int32*)
*/
public static native PointerByReference pixaGetLinePtrs(Pixa pixa, IntBuffer psize);
/**
* Original signature : l_ok pixaWriteStreamInfo(FILE*, PIXA*)
*/
public static native int pixaWriteStreamInfo(FILE fp, Pixa pixa);
/**
* Original signature :
* l_ok pixaReplacePix(PIXA*, l_int32, PIX*, BOX*)
*/
public static native int pixaReplacePix(Pixa pixa, int index, Pix pix, Box box);
/**
* Original signature :
* l_ok pixaInsertPix(PIXA*, l_int32, PIX*, BOX*)
*/
public static native int pixaInsertPix(Pixa pixa, int index, Pix pixs, Box box);
/**
* Original signature : l_ok pixaRemovePix(PIXA*, l_int32)
*/
public static native int pixaRemovePix(Pixa pixa, int index);
/**
* Original signature :
* l_ok pixaRemovePixAndSave(PIXA*, l_int32, PIX**, BOX**)
*/
public static native int pixaRemovePixAndSave(Pixa pixa, int index, PointerByReference ppix, PointerByReference pbox);
/**
* Original signature : l_ok pixaRemoveSelected(PIXA*, NUMA*)
*/
public static native int pixaRemoveSelected(Pixa pixa, Numa naindex);
/**
* Original signature : l_ok pixaInitFull(PIXA*, PIX*, BOX*)
*/
public static native int pixaInitFull(Pixa pixa, Pix pix, Box box);
/**
* Original signature : l_ok pixaClear(PIXA*)
*/
public static native int pixaClear(Pixa pixa);
/**
* Original signature :
* l_ok pixaJoin(PIXA*, PIXA*, l_int32, l_int32)
*/
public static native int pixaJoin(Pixa pixad, Pixa pixas, int istart, int iend);
/**
* Original signature :
* PIXA* pixaInterleave(PIXA*, PIXA*, l_int32)
*/
public static native Pixa pixaInterleave(Pixa pixa1, Pixa pixa2, int copyflag);
/**
* Original signature :
* l_ok pixaaJoin(PIXAA*, PIXAA*, l_int32, l_int32)
*/
public static native int pixaaJoin(Pixaa paad, Pixaa paas, int istart, int iend);
/**
* Original signature : PIXAA* pixaaCreate(l_int32)
*/
public static native Pixaa pixaaCreate(int n);
/**
* Original signature :
* PIXAA* pixaaCreateFromPixa(PIXA*, l_int32, l_int32, l_int32)
*/
public static native Pixaa pixaaCreateFromPixa(Pixa pixa, int n, int type, int copyflag);
/**
* Original signature : void pixaaDestroy(PIXAA**)
*/
public static native void pixaaDestroy(PointerByReference ppaa);
/**
* Original signature :
* l_ok pixaaAddPixa(PIXAA*, PIXA*, l_int32)
*/
public static native int pixaaAddPixa(Pixaa paa, Pixa pixa, int copyflag);
/**
* Original signature : l_ok pixaaExtendArray(PIXAA*)
*/
public static native int pixaaExtendArray(Pixaa paa);
/**
* Original signature :
* l_ok pixaaAddPix(PIXAA*, l_int32, PIX*, BOX*, l_int32)
*/
public static native int pixaaAddPix(Pixaa paa, int index, Pix pix, Box box, int copyflag);
/**
* Original signature : l_ok pixaaAddBox(PIXAA*, BOX*, l_int32)
*/
public static native int pixaaAddBox(Pixaa paa, Box box, int copyflag);
/**
* Original signature : l_int32 pixaaGetCount(PIXAA*, NUMA**)
*/
public static native int pixaaGetCount(Pixaa paa, PointerByReference pna);
/**
* Original signature :
* PIXA* pixaaGetPixa(PIXAA*, l_int32, l_int32)
*/
public static native Pixa pixaaGetPixa(Pixaa paa, int index, int accesstype);
/**
* Original signature : BOXA* pixaaGetBoxa(PIXAA*, l_int32)
*/
public static native Boxa pixaaGetBoxa(Pixaa paa, int accesstype);
/**
* Original signature :
* PIX* pixaaGetPix(PIXAA*, l_int32, l_int32, l_int32)
*/
public static native Pix pixaaGetPix(Pixaa paa, int index, int ipix, int accessflag);
/**
* Original signature :
* l_ok pixaaVerifyDepth(PIXAA*, l_int32*, l_int32*)
*/
public static native int pixaaVerifyDepth(Pixaa paa, IntBuffer psame, IntBuffer pmaxd);
/**
* Original signature :
* l_ok pixaaVerifyDimensions(PIXAA*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixaaVerifyDimensions(Pixaa paa, IntBuffer psame, IntBuffer pmaxw, IntBuffer pmaxh);
/**
* Original signature : l_int32 pixaaIsFull(PIXAA*, l_int32*)
*/
public static native int pixaaIsFull(Pixaa paa, IntBuffer pfull);
/**
* Original signature : l_ok pixaaInitFull(PIXAA*, PIXA*)
*/
public static native int pixaaInitFull(Pixaa paa, Pixa pixa);
/**
* Original signature :
* l_ok pixaaReplacePixa(PIXAA*, l_int32, PIXA*)
*/
public static native int pixaaReplacePixa(Pixaa paa, int index, Pixa pixa);
/**
* Original signature : l_ok pixaaClear(PIXAA*)
*/
public static native int pixaaClear(Pixaa paa);
/**
* Original signature : l_ok pixaaTruncate(PIXAA*)
*/
public static native int pixaaTruncate(Pixaa paa);
/**
* Original signature : PIXA* pixaRead(const char*)
*/
public static native Pixa pixaRead(String filename);
/**
* Original signature : PIXA* pixaReadStream(FILE*)
*/
public static native Pixa pixaReadStream(FILE fp);
/**
* Original signature :
* PIXA* pixaReadMem(const l_uint8*, size_t)
*/
public static native Pixa pixaReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok pixaWriteDebug(const char*, PIXA*)
*/
public static native int pixaWriteDebug(String fname, Pixa pixa);
/**
* Original signature : l_ok pixaWrite(const char*, PIXA*)
*/
public static native int pixaWrite(String filename, Pixa pixa);
/**
* Original signature : l_ok pixaWriteStream(FILE*, PIXA*)
*/
public static native int pixaWriteStream(FILE fp, Pixa pixa);
/**
* Original signature :
* l_ok pixaWriteMem(l_uint8**, size_t*, PIXA*)
*/
public static native int pixaWriteMem(PointerByReference pdata, NativeSizeByReference psize, Pixa pixa);
/**
* Original signature : PIXA* pixaReadBoth(const char*)
*/
public static native Pixa pixaReadBoth(String filename);
/**
* Original signature :
* PIXAA* pixaaReadFromFiles(const char*, const char*, l_int32, l_int32)
*/
public static native Pixaa pixaaReadFromFiles(String dirname, String substr, int first, int nfiles);
/**
* Original signature : PIXAA* pixaaRead(const char*)
*/
public static native Pixaa pixaaRead(String filename);
/**
* Original signature : PIXAA* pixaaReadStream(FILE*)
*/
public static native Pixaa pixaaReadStream(FILE fp);
/**
* Original signature :
* PIXAA* pixaaReadMem(const l_uint8*, size_t)
*/
public static native Pixaa pixaaReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok pixaaWrite(const char*, PIXAA*)
*/
public static native int pixaaWrite(String filename, Pixaa paa);
/**
* Original signature : l_ok pixaaWriteStream(FILE*, PIXAA*)
*/
public static native int pixaaWriteStream(FILE fp, Pixaa paa);
/**
* Original signature :
* l_ok pixaaWriteMem(l_uint8**, size_t*, PIXAA*)
*/
public static native int pixaaWriteMem(PointerByReference pdata, NativeSizeByReference psize, Pixaa paa);
/**
* Original signature :
* PIXACC* pixaccCreate(l_int32, l_int32, l_int32)
*/
public static native Pixacc pixaccCreate(int w, int h, int negflag);
/**
* Original signature :
* PIXACC* pixaccCreateFromPix(PIX*, l_int32)
*/
public static native Pixacc pixaccCreateFromPix(Pix pix, int negflag);
/**
* Original signature : void pixaccDestroy(PIXACC**)
*/
public static native void pixaccDestroy(PointerByReference ppixacc);
/**
* Original signature : PIX* pixaccFinal(PIXACC*, l_int32)
*/
public static native Pix pixaccFinal(Pixacc pixacc, int outdepth);
/**
* Original signature : PIX* pixaccGetPix(PIXACC*)
*/
public static native Pix pixaccGetPix(Pixacc pixacc);
/**
* Original signature : l_int32 pixaccGetOffset(PIXACC*)
*/
public static native int pixaccGetOffset(Pixacc pixacc);
/**
* Original signature : l_ok pixaccAdd(PIXACC*, PIX*)
*/
public static native int pixaccAdd(Pixacc pixacc, Pix pix);
/**
* Original signature : l_ok pixaccSubtract(PIXACC*, PIX*)
*/
public static native int pixaccSubtract(Pixacc pixacc, Pix pix);
/**
* Original signature :
* l_ok pixaccMultConst(PIXACC*, l_float32)
*/
public static native int pixaccMultConst(Pixacc pixacc, float factor);
/**
* Original signature :
* l_ok pixaccMultConstAccumulate(PIXACC*, PIX*, l_float32)
*/
public static native int pixaccMultConstAccumulate(Pixacc pixacc, Pix pix, float factor);
/**
* Original signature :
* PIX* pixSelectBySize(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32*)
*/
public static native Pix pixSelectBySize(Pix pixs, int width, int height, int connectivity, int type, int relation, IntBuffer pchanged);
/**
* Original signature :
* PIXA* pixaSelectBySize(PIXA*, l_int32, l_int32, l_int32, l_int32, l_int32*)
*/
public static native Pixa pixaSelectBySize(Pixa pixas, int width, int height, int type, int relation, IntBuffer pchanged);
/**
* Original signature :
* NUMA* pixaMakeSizeIndicator(PIXA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Numa pixaMakeSizeIndicator(Pixa pixa, int width, int height, int type, int relation);
/**
* Original signature :
* PIX* pixSelectByPerimToAreaRatio(PIX*, l_float32, l_int32, l_int32, l_int32*)
*/
public static native Pix pixSelectByPerimToAreaRatio(Pix pixs, float thresh, int connectivity, int type, IntBuffer pchanged);
/**
* Original signature :
* PIXA* pixaSelectByPerimToAreaRatio(PIXA*, l_float32, l_int32, l_int32*)
*/
public static native Pixa pixaSelectByPerimToAreaRatio(Pixa pixas, float thresh, int type, IntBuffer pchanged);
/**
* Original signature :
* PIX* pixSelectByPerimSizeRatio(PIX*, l_float32, l_int32, l_int32, l_int32*)
*/
public static native Pix pixSelectByPerimSizeRatio(Pix pixs, float thresh, int connectivity, int type, IntBuffer pchanged);
/**
* Original signature :
* PIXA* pixaSelectByPerimSizeRatio(PIXA*, l_float32, l_int32, l_int32*)
*/
public static native Pixa pixaSelectByPerimSizeRatio(Pixa pixas, float thresh, int type, IntBuffer pchanged);
/**
* Original signature :
* PIX* pixSelectByAreaFraction(PIX*, l_float32, l_int32, l_int32, l_int32*)
*/
public static native Pix pixSelectByAreaFraction(Pix pixs, float thresh, int connectivity, int type, IntBuffer pchanged);
/**
* Original signature :
* PIXA* pixaSelectByAreaFraction(PIXA*, l_float32, l_int32, l_int32*)
*/
public static native Pixa pixaSelectByAreaFraction(Pixa pixas, float thresh, int type, IntBuffer pchanged);
/**
* Original signature :
* PIX* pixSelectByWidthHeightRatio(PIX*, l_float32, l_int32, l_int32, l_int32*)
*/
public static native Pix pixSelectByWidthHeightRatio(Pix pixs, float thresh, int connectivity, int type, IntBuffer pchanged);
/**
* Original signature :
* PIXA* pixaSelectByWidthHeightRatio(PIXA*, l_float32, l_int32, l_int32*)
*/
public static native Pixa pixaSelectByWidthHeightRatio(Pixa pixas, float thresh, int type, IntBuffer pchanged);
/**
* Original signature :
* PIXA* pixaSelectByNumConnComp(PIXA*, l_int32, l_int32, l_int32, l_int32*)
*/
public static native Pixa pixaSelectByNumConnComp(Pixa pixas, int nmin, int nmax, int connectivity, IntBuffer pchanged);
/**
* Original signature :
* PIXA* pixaSelectWithIndicator(PIXA*, NUMA*, l_int32*)
*/
public static native Pixa pixaSelectWithIndicator(Pixa pixas, Numa na, IntBuffer pchanged);
/**
* Original signature :
* l_ok pixRemoveWithIndicator(PIX*, PIXA*, NUMA*)
*/
public static native int pixRemoveWithIndicator(Pix pixs, Pixa pixa, Numa na);
/**
* Original signature :
* l_ok pixAddWithIndicator(PIX*, PIXA*, NUMA*)
*/
public static native int pixAddWithIndicator(Pix pixs, Pixa pixa, Numa na);
/**
* Original signature :
* PIXA* pixaSelectWithString(PIXA*, const char*, l_int32*)
*/
public static native Pixa pixaSelectWithString(Pixa pixas, String str, IntBuffer perror);
/**
* Original signature :
* PIX* pixaRenderComponent(PIX*, PIXA*, l_int32)
*/
public static native Pix pixaRenderComponent(Pix pixs, Pixa pixa, int index);
/**
* Original signature :
* PIXA* pixaSort(PIXA*, l_int32, l_int32, NUMA**, l_int32)
*/
public static native Pixa pixaSort(Pixa pixas, int sorttype, int sortorder, PointerByReference pnaindex, int copyflag);
/**
* Original signature :
* PIXA* pixaBinSort(PIXA*, l_int32, l_int32, NUMA**, l_int32)
*/
public static native Pixa pixaBinSort(Pixa pixas, int sorttype, int sortorder, PointerByReference pnaindex, int copyflag);
/**
* Original signature :
* PIXA* pixaSortByIndex(PIXA*, NUMA*, l_int32)
*/
public static native Pixa pixaSortByIndex(Pixa pixas, Numa naindex, int copyflag);
/**
* Original signature :
* PIXAA* pixaSort2dByIndex(PIXA*, NUMAA*, l_int32)
*/
public static native Pixaa pixaSort2dByIndex(Pixa pixas, Numaa naa, int copyflag);
/**
* Original signature :
* PIXA* pixaSelectRange(PIXA*, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaSelectRange(Pixa pixas, int first, int last, int copyflag);
/**
* Original signature :
* PIXAA* pixaaSelectRange(PIXAA*, l_int32, l_int32, l_int32)
*/
public static native Pixaa pixaaSelectRange(Pixaa paas, int first, int last, int copyflag);
/**
* Original signature :
* PIXAA* pixaaScaleToSize(PIXAA*, l_int32, l_int32)
*/
public static native Pixaa pixaaScaleToSize(Pixaa paas, int wd, int hd);
/**
* Original signature :
* PIXAA* pixaaScaleToSizeVar(PIXAA*, NUMA*, NUMA*)
*/
public static native Pixaa pixaaScaleToSizeVar(Pixaa paas, Numa nawd, Numa nahd);
/**
* Original signature :
* PIXA* pixaScaleToSize(PIXA*, l_int32, l_int32)
*/
public static native Pixa pixaScaleToSize(Pixa pixas, int wd, int hd);
/**
* Original signature :
* PIXA* pixaScaleToSizeRel(PIXA*, l_int32, l_int32)
*/
public static native Pixa pixaScaleToSizeRel(Pixa pixas, int delw, int delh);
/**
* Original signature :
* PIXA* pixaScale(PIXA*, l_float32, l_float32)
*/
public static native Pixa pixaScale(Pixa pixas, float scalex, float scaley);
/**
* Original signature :
* PIXA* pixaScaleBySampling(PIXA*, l_float32, l_float32)
*/
public static native Pixa pixaScaleBySampling(Pixa pixas, float scalex, float scaley);
/**
* Original signature :
* PIXA* pixaRotate(PIXA*, l_float32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaRotate(Pixa pixas, float angle, int type, int incolor, int width, int height);
/**
* Original signature : PIXA* pixaRotateOrth(PIXA*, l_int32)
*/
public static native Pixa pixaRotateOrth(Pixa pixas, int rotation);
/**
* Original signature :
* PIXA* pixaTranslate(PIXA*, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaTranslate(Pixa pixas, int hshift, int vshift, int incolor);
/**
* Original signature :
* PIXA* pixaAddBorderGeneral(PIXA*, PIXA*, l_int32, l_int32, l_int32, l_int32, l_uint32)
*/
public static native Pixa pixaAddBorderGeneral(Pixa pixad, Pixa pixas, int left, int right, int top, int bot, int val);
/**
* Original signature :
* PIXA* pixaaFlattenToPixa(PIXAA*, NUMA**, l_int32)
*/
public static native Pixa pixaaFlattenToPixa(Pixaa paa, PointerByReference pnaindex, int copyflag);
/**
* Original signature :
* l_ok pixaaSizeRange(PIXAA*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixaaSizeRange(Pixaa paa, IntBuffer pminw, IntBuffer pminh, IntBuffer pmaxw, IntBuffer pmaxh);
/**
* Original signature :
* l_ok pixaSizeRange(PIXA*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixaSizeRange(Pixa pixa, IntBuffer pminw, IntBuffer pminh, IntBuffer pmaxw, IntBuffer pmaxh);
/**
* Original signature : PIXA* pixaClipToPix(PIXA*, PIX*)
*/
public static native Pixa pixaClipToPix(Pixa pixas, Pix pixs);
/**
* Original signature :
* l_ok pixaClipToForeground(PIXA*, PIXA**, BOXA**)
*/
public static native int pixaClipToForeground(Pixa pixas, PointerByReference ppixad, PointerByReference pboxa);
/**
* Original signature :
* l_ok pixaGetRenderingDepth(PIXA*, l_int32*)
*/
public static native int pixaGetRenderingDepth(Pixa pixa, IntBuffer pdepth);
/**
* Original signature : l_ok pixaHasColor(PIXA*, l_int32*)
*/
public static native int pixaHasColor(Pixa pixa, IntBuffer phascolor);
/**
* Original signature : l_ok pixaAnyColormaps(PIXA*, l_int32*)
*/
public static native int pixaAnyColormaps(Pixa pixa, IntBuffer phascmap);
/**
* Original signature :
* l_ok pixaGetDepthInfo(PIXA*, l_int32*, l_int32*)
*/
public static native int pixaGetDepthInfo(Pixa pixa, IntBuffer pmaxdepth, IntBuffer psame);
/**
* Original signature : PIXA* pixaConvertToSameDepth(PIXA*)
*/
public static native Pixa pixaConvertToSameDepth(Pixa pixas);
/**
* Original signature :
* l_ok pixaEqual(PIXA*, PIXA*, l_int32, NUMA**, l_int32*)
*/
public static native int pixaEqual(Pixa pixa1, Pixa pixa2, int maxdist, PointerByReference pnaindex, IntBuffer psame);
/**
* Original signature :
* l_ok pixaEqual(PIXA*, PIXA*, l_int32, NUMA**, l_int32*)
*/
public static native int pixaEqual(Pixa pixa1, Pixa pixa2, int maxdist, PointerByReference pnaindex, IntByReference psame);
/**
* Original signature : l_ok pixaSetFullSizeBoxa(PIXA*)
*/
public static native int pixaSetFullSizeBoxa(Pixa pixa);
/**
* Original signature :
* PIX* pixaDisplay(PIXA*, l_int32, l_int32)
*/
public static native Pix pixaDisplay(Pixa pixa, int w, int h);
/**
* Original signature :
* PIX* pixaDisplayRandomCmap(PIXA*, l_int32, l_int32)
*/
public static native Pix pixaDisplayRandomCmap(Pixa pixa, int w, int h);
/**
* Original signature :
* PIX* pixaDisplayLinearly(PIXA*, l_int32, l_float32, l_int32, l_int32, l_int32, BOXA**)
*/
public static native Pix pixaDisplayLinearly(Pixa pixas, int direction, float scalefactor, int background, int spacing, int border, PointerByReference pboxa);
/**
* Original signature :
* PIX* pixaDisplayOnLattice(PIXA*, l_int32, l_int32, l_int32*, BOXA**)
*/
public static native Pix pixaDisplayOnLattice(Pixa pixa, int cellw, int cellh, IntBuffer pncols, PointerByReference pboxa);
/**
* Original signature :
* PIX* pixaDisplayOnLattice(PIXA*, l_int32, l_int32, l_int32*, BOXA**)
*/
public static native Pix pixaDisplayOnLattice(Pixa pixa, int cellw, int cellh, IntByReference pncols, PointerByReference pboxa);
/**
* Original signature :
* PIX* pixaDisplayUnsplit(PIXA*, l_int32, l_int32, l_int32, l_uint32)
*/
public static native Pix pixaDisplayUnsplit(Pixa pixa, int nx, int ny, int borderwidth, int bordercolor);
/**
* Original signature :
* PIX* pixaDisplayTiled(PIXA*, l_int32, l_int32, l_int32)
*/
public static native Pix pixaDisplayTiled(Pixa pixa, int maxwidth, int background, int spacing);
/**
* Original signature :
* PIX* pixaDisplayTiledInRows(PIXA*, l_int32, l_int32, l_float32, l_int32, l_int32, l_int32)
*/
public static native Pix pixaDisplayTiledInRows(Pixa pixa, int outdepth, int maxwidth, float scalefactor, int background, int spacing, int border);
/**
* Original signature :
* PIX* pixaDisplayTiledInColumns(PIXA*, l_int32, l_float32, l_int32, l_int32)
*/
public static native Pix pixaDisplayTiledInColumns(Pixa pixas, int nx, float scalefactor, int spacing, int border);
/**
* Original signature :
* PIX* pixaDisplayTiledAndScaled(PIXA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixaDisplayTiledAndScaled(Pixa pixa, int outdepth, int tilewidth, int ncols, int background, int spacing, int border);
/**
* Original signature :
* PIX* pixaDisplayTiledWithText(PIXA*, l_int32, l_float32, l_int32, l_int32, l_int32, l_uint32)
*/
public static native Pix pixaDisplayTiledWithText(Pixa pixa, int maxwidth, float scalefactor, int spacing, int border, int fontsize, int textcolor);
/**
* Original signature :
* PIX* pixaDisplayTiledByIndex(PIXA*, NUMA*, l_int32, l_int32, l_int32, l_int32, l_uint32)
*/
public static native Pix pixaDisplayTiledByIndex(Pixa pixa, Numa na, int width, int spacing, int border, int fontsize, int textcolor);
/**
* Original signature :
* PIX* pixaaDisplay(PIXAA*, l_int32, l_int32)
*/
public static native Pix pixaaDisplay(Pixaa paa, int w, int h);
/**
* Original signature :
* PIX* pixaaDisplayByPixa(PIXAA*, l_int32, l_float32, l_int32, l_int32, l_int32)
*/
public static native Pix pixaaDisplayByPixa(Pixaa paa, int maxnx, float scalefactor, int hspacing, int vspacing, int border);
/**
* Original signature :
* PIXA* pixaaDisplayTiledAndScaled(PIXAA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaaDisplayTiledAndScaled(Pixaa paa, int outdepth, int tilewidth, int ncols, int background, int spacing, int border);
/**
* Original signature : PIXA* pixaConvertTo1(PIXA*, l_int32)
*/
public static native Pixa pixaConvertTo1(Pixa pixas, int thresh);
/**
* Original signature : PIXA* pixaConvertTo8(PIXA*, l_int32)
*/
public static native Pixa pixaConvertTo8(Pixa pixas, int cmapflag);
/**
* Original signature :
* PIXA* pixaConvertTo8Colormap(PIXA*, l_int32)
*/
public static native Pixa pixaConvertTo8Colormap(Pixa pixas, int dither);
/**
* Original signature : PIXA* pixaConvertTo32(PIXA*)
*/
public static native Pixa pixaConvertTo32(Pixa pixas);
/**
* Original signature :
* PIXA* pixaConstrainedSelect(PIXA*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaConstrainedSelect(Pixa pixas, int first, int last, int nmax, int use_pairs, int copyflag);
/**
* Original signature :
* l_ok pixaSelectToPdf(PIXA*, l_int32, l_int32, l_int32, l_float32, l_int32, l_int32, l_uint32, l_int32, const char*)
*/
public static native int pixaSelectToPdf(Pixa pixas, int first, int last, int res, float scalefactor, int type, int quality, int color, int fontsize, String fileout);
/**
* Original signature :
* PIXA* pixaMakeFromTiledPixa(PIXA*, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaMakeFromTiledPixa(Pixa pixas, int w, int h, int nsamp);
/**
* Original signature :
* PIXA* pixaMakeFromTiledPix(PIX*, l_int32, l_int32, l_int32, l_int32, BOXA*)
*/
public static native Pixa pixaMakeFromTiledPix(Pix pixs, int w, int h, int start, int num, Boxa boxa);
/**
* Original signature : l_ok pixGetTileCount(PIX*, l_int32*)
*/
public static native int pixGetTileCount(Pix pix, IntBuffer pn);
/**
* Original signature :
* PIXA* pixaDisplayMultiTiled(PIXA*, l_int32, l_int32, l_int32, l_int32, l_float32, l_int32, l_int32)
*/
public static native Pixa pixaDisplayMultiTiled(Pixa pixas, int nx, int ny, int maxw, int maxh, float scalefactor, int spacing, int border);
/**
* Original signature :
* l_ok pixaSplitIntoFiles(PIXA*, l_int32, l_float32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixaSplitIntoFiles(Pixa pixas, int nsplit, float scale, int outwidth, int write_pixa, int write_pix, int write_pdf);
/**
* Original signature :
* l_ok convertToNUpFiles(const char*, const char*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, const char*)
*/
public static native int convertToNUpFiles(String dir, String substr, int nx, int ny, int tw, int spacing, int border, int fontsize, String outdir);
/**
* Original signature :
* PIXA* convertToNUpPixa(const char*, const char*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pixa convertToNUpPixa(String dir, String substr, int nx, int ny, int tw, int spacing, int border, int fontsize);
/**
* Original signature :
* PIXA* pixaConvertToNUpPixa(PIXA*, SARRAY*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaConvertToNUpPixa(Pixa pixas, Sarray sa, int nx, int ny, int tw, int spacing, int border, int fontsize);
/**
* Original signature :
* l_ok pixaCompareInPdf(PIXA*, PIXA*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, const char*)
*/
public static native int pixaCompareInPdf(Pixa pixa1, Pixa pixa2, int nx, int ny, int tw, int spacing, int border, int fontsize, String fileout);
/**
* Original signature :
* l_ok pmsCreate(size_t, size_t, NUMA*, const char*)
*/
public static native int pmsCreate(NativeSize minsize, NativeSize smallest, Numa numalloc, String logfile);
/**
* Original signature : void pmsDestroy()
*/
public static native void pmsDestroy();
/**
* Original signature : void* pmsCustomAlloc(size_t)
*/
public static native Pointer pmsCustomAlloc(NativeSize nbytes);
/**
* Original signature : void pmsCustomDealloc(void*)
*/
public static native void pmsCustomDealloc(Pointer data);
/**
* Original signature : void* pmsGetAlloc(size_t)
*/
public static native Pointer pmsGetAlloc(NativeSize nbytes);
/**
* Original signature :
* l_ok pmsGetLevelForAlloc(size_t, l_int32*)
*/
public static native int pmsGetLevelForAlloc(NativeSize nbytes, IntBuffer plevel);
/**
* Original signature :
* l_ok pmsGetLevelForDealloc(void*, l_int32*)
*/
public static native int pmsGetLevelForDealloc(Pointer data, IntBuffer plevel);
/**
* Original signature : void pmsLogInfo()
*/
public static native void pmsLogInfo();
/**
* Original signature : l_ok pixAddConstantGray(PIX*, l_int32)
*/
public static native int pixAddConstantGray(Pix pixs, int val);
/**
* Original signature :
* l_ok pixMultConstantGray(PIX*, l_float32)
*/
public static native int pixMultConstantGray(Pix pixs, float val);
/**
* Original signature : PIX* pixAddGray(PIX*, PIX*, PIX*)
*/
public static native Pix pixAddGray(Pix pixd, Pix pixs1, Pix pixs2);
/**
* Original signature : PIX* pixSubtractGray(PIX*, PIX*, PIX*)
*/
public static native Pix pixSubtractGray(Pix pixd, Pix pixs1, Pix pixs2);
/**
* Original signature :
* PIX* pixMultiplyGray(PIX*, PIX*, l_float32)
*/
public static native Pix pixMultiplyGray(Pix pixs, Pix pixg, float norm);
/**
* Original signature :
* PIX* pixThresholdToValue(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixThresholdToValue(Pix pixd, Pix pixs, int threshval, int setval);
/**
* Original signature :
* PIX* pixInitAccumulate(l_int32, l_int32, l_uint32)
*/
public static native Pix pixInitAccumulate(int w, int h, int offset);
/**
* Original signature :
* PIX* pixFinalAccumulate(PIX*, l_uint32, l_int32)
*/
public static native Pix pixFinalAccumulate(Pix pixs, int offset, int depth);
/**
* Original signature :
* PIX* pixFinalAccumulateThreshold(PIX*, l_uint32, l_uint32)
*/
public static native Pix pixFinalAccumulateThreshold(Pix pixs, int offset, int threshold);
/**
* Original signature : l_ok pixAccumulate(PIX*, PIX*, l_int32)
*/
public static native int pixAccumulate(Pix pixd, Pix pixs, int op);
/**
* Original signature :
* l_ok pixMultConstAccumulate(PIX*, l_float32, l_uint32)
*/
public static native int pixMultConstAccumulate(Pix pixs, float factor, int offset);
/**
* Original signature : PIX* pixAbsDifference(PIX*, PIX*)
*/
public static native Pix pixAbsDifference(Pix pixs1, Pix pixs2);
/**
* Original signature : PIX* pixAddRGB(PIX*, PIX*)
*/
public static native Pix pixAddRGB(Pix pixs1, Pix pixs2);
/**
* Original signature :
* PIX* pixMinOrMax(PIX*, PIX*, PIX*, l_int32)
*/
public static native Pix pixMinOrMax(Pix pixd, Pix pixs1, Pix pixs2, int type);
/**
* Original signature : PIX* pixMaxDynamicRange(PIX*, l_int32)
*/
public static native Pix pixMaxDynamicRange(Pix pixs, int type);
/**
* Original signature :
* PIX* pixMaxDynamicRangeRGB(PIX*, l_int32)
*/
public static native Pix pixMaxDynamicRangeRGB(Pix pixs, int type);
/**
* Original signature :
* l_uint32 linearScaleRGBVal(l_uint32, l_float32)
*/
public static native int linearScaleRGBVal(int sval, float factor);
/**
* Original signature :
* l_uint32 logScaleRGBVal(l_uint32, l_float32*, l_float32)
*/
public static native int logScaleRGBVal(int sval, FloatBuffer tab, float factor);
/**
* Original signature : l_float32* makeLogBase2Tab()
*/
public static native FloatByReference makeLogBase2Tab();
/**
* Original signature :
* l_float32 getLogBase2(l_int32, l_float32*)
*/
public static native float getLogBase2(int val, FloatBuffer logtab);
/**
* Original signature :
* PIXC* pixcompCreateFromPix(PIX*, l_int32)
*/
public static native PixComp pixcompCreateFromPix(Pix pix, int comptype);
/**
* Original signature :
* PIXC* pixcompCreateFromString(l_uint8*, size_t, l_int32)
*/
public static native PixComp pixcompCreateFromString(ByteBuffer data, NativeSize size, int copyflag);
/**
* Original signature :
* PIXC* pixcompCreateFromFile(const char*, l_int32)
*/
public static native PixComp pixcompCreateFromFile(String filename, int comptype);
/**
* Original signature : void pixcompDestroy(PIXC**)
*/
public static native void pixcompDestroy(PointerByReference ppixc);
/**
* Original signature : PIXC* pixcompCopy(PIXC*)
*/
public static native PixComp pixcompCopy(PixComp pixcs);
/**
* Original signature :
* l_ok pixcompGetDimensions(PIXC*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixcompGetDimensions(PixComp pixc, IntBuffer pw, IntBuffer ph, IntBuffer pd);
/**
* Original signature :
* l_ok pixcompGetParameters(PIXC*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixcompGetParameters(PixComp pixc, IntBuffer pxres, IntBuffer pyres, IntBuffer pcomptype, IntBuffer pcmapflag);
/**
* Original signature :
* l_ok pixcompDetermineFormat(l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixcompDetermineFormat(int comptype, int d, int cmapflag, IntBuffer pformat);
/**
* Original signature : PIX* pixCreateFromPixcomp(PIXC*)
*/
public static native Pix pixCreateFromPixcomp(PixComp pixc);
/**
* Original signature : PIXAC* pixacompCreate(l_int32)
*/
public static native PixaComp pixacompCreate(int n);
/**
* Original signature :
* PIXAC* pixacompCreateWithInit(l_int32, l_int32, PIX*, l_int32)
*/
public static native PixaComp pixacompCreateWithInit(int n, int offset, Pix pix, int comptype);
/**
* Original signature :
* PIXAC* pixacompCreateFromPixa(PIXA*, l_int32, l_int32)
*/
public static native PixaComp pixacompCreateFromPixa(Pixa pixa, int comptype, int accesstype);
/**
* Original signature :
* PIXAC* pixacompCreateFromFiles(const char*, const char*, l_int32)
*/
public static native PixaComp pixacompCreateFromFiles(String dirname, String substr, int comptype);
/**
* Original signature :
* PIXAC* pixacompCreateFromSA(SARRAY*, l_int32)
*/
public static native PixaComp pixacompCreateFromSA(Sarray sa, int comptype);
/**
* Original signature : void pixacompDestroy(PIXAC**)
*/
public static native void pixacompDestroy(PointerByReference ppixac);
/**
* Original signature :
* l_ok pixacompAddPix(PIXAC*, PIX*, l_int32)
*/
public static native int pixacompAddPix(PixaComp pixac, Pix pix, int comptype);
/**
* Original signature :
* l_ok pixacompAddPixcomp(PIXAC*, PIXC*, l_int32)
*/
public static native int pixacompAddPixcomp(PixaComp pixac, PixComp pixc, int copyflag);
/**
* Original signature :
* l_ok pixacompReplacePix(PIXAC*, l_int32, PIX*, l_int32)
*/
public static native int pixacompReplacePix(PixaComp pixac, int index, Pix pix, int comptype);
/**
* Original signature :
* l_ok pixacompReplacePixcomp(PIXAC*, l_int32, PIXC*)
*/
public static native int pixacompReplacePixcomp(PixaComp pixac, int index, PixComp pixc);
/**
* Original signature :
* l_ok pixacompAddBox(PIXAC*, BOX*, l_int32)
*/
public static native int pixacompAddBox(PixaComp pixac, Box box, int copyflag);
/**
* Original signature : l_int32 pixacompGetCount(PIXAC*)
*/
public static native int pixacompGetCount(PixaComp pixac);
/**
* Original signature :
* PIXC* pixacompGetPixcomp(PIXAC*, l_int32, l_int32)
*/
public static native PixComp pixacompGetPixcomp(PixaComp pixac, int index, int copyflag);
/**
* Original signature : PIX* pixacompGetPix(PIXAC*, l_int32)
*/
public static native Pix pixacompGetPix(PixaComp pixac, int index);
/**
* Original signature :
* l_ok pixacompGetPixDimensions(PIXAC*, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int pixacompGetPixDimensions(PixaComp pixac, int index, IntBuffer pw, IntBuffer ph, IntBuffer pd);
/**
* Original signature : BOXA* pixacompGetBoxa(PIXAC*, l_int32)
*/
public static native Boxa pixacompGetBoxa(PixaComp pixac, int accesstype);
/**
* Original signature : l_int32 pixacompGetBoxaCount(PIXAC*)
*/
public static native int pixacompGetBoxaCount(PixaComp pixac);
/**
* Original signature :
* BOX* pixacompGetBox(PIXAC*, l_int32, l_int32)
*/
public static native Box pixacompGetBox(PixaComp pixac, int index, int accesstype);
/**
* Original signature :
* l_ok pixacompGetBoxGeometry(PIXAC*, l_int32, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixacompGetBoxGeometry(PixaComp pixac, int index, IntBuffer px, IntBuffer py, IntBuffer pw, IntBuffer ph);
/**
* Original signature : l_int32 pixacompGetOffset(PIXAC*)
*/
public static native int pixacompGetOffset(PixaComp pixac);
/**
* Original signature : l_ok pixacompSetOffset(PIXAC*, l_int32)
*/
public static native int pixacompSetOffset(PixaComp pixac, int offset);
/**
* Original signature :
* PIXA* pixaCreateFromPixacomp(PIXAC*, l_int32)
*/
public static native Pixa pixaCreateFromPixacomp(PixaComp pixac, int accesstype);
/**
* Original signature :
* l_ok pixacompJoin(PIXAC*, PIXAC*, l_int32, l_int32)
*/
public static native int pixacompJoin(PixaComp pixacd, PixaComp pixacs, int istart, int iend);
/**
* Original signature :
* PIXAC* pixacompInterleave(PIXAC*, PIXAC*)
*/
public static native PixaComp pixacompInterleave(PixaComp pixac1, PixaComp pixac2);
/**
* Original signature : PIXAC* pixacompRead(const char*)
*/
public static native PixaComp pixacompRead(String filename);
/**
* Original signature : PIXAC* pixacompReadStream(FILE*)
*/
public static native PixaComp pixacompReadStream(FILE fp);
/**
* Original signature :
* PIXAC* pixacompReadMem(const l_uint8*, size_t)
*/
public static native PixaComp pixacompReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok pixacompWrite(const char*, PIXAC*)
*/
public static native int pixacompWrite(String filename, PixaComp pixac);
/**
* Original signature : l_ok pixacompWriteStream(FILE*, PIXAC*)
*/
public static native int pixacompWriteStream(FILE fp, PixaComp pixac);
/**
* Original signature :
* l_ok pixacompWriteMem(l_uint8**, size_t*, PIXAC*)
*/
public static native int pixacompWriteMem(PointerByReference pdata, NativeSizeByReference psize, PixaComp pixac);
/**
* Original signature :
* l_ok pixacompConvertToPdf(PIXAC*, l_int32, l_float32, l_int32, l_int32, const char*, const char*)
*/
public static native int pixacompConvertToPdf(PixaComp pixac, int res, float scalefactor, int type, int quality, String title, String fileout);
/**
* Original signature :
* l_ok pixacompConvertToPdfData(PIXAC*, l_int32, l_float32, l_int32, l_int32, const char*, l_uint8**, size_t*)
*/
public static native int pixacompConvertToPdfData(PixaComp pixac, int res, float scalefactor, int type, int quality, String title, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok pixacompFastConvertToPdfData(PIXAC*, const char*, l_uint8**, size_t*)
*/
public static native int pixacompFastConvertToPdfData(PixaComp pixac, String title, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_ok pixacompWriteStreamInfo(FILE*, PIXAC*, const char*)
*/
public static native int pixacompWriteStreamInfo(FILE fp, PixaComp pixac, String text);
/**
* Original signature :
* l_ok pixcompWriteStreamInfo(FILE*, PIXC*, const char*)
*/
public static native int pixcompWriteStreamInfo(FILE fp, PixComp pixc, String text);
/**
* Original signature :
* PIX* pixacompDisplayTiledAndScaled(PIXAC*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixacompDisplayTiledAndScaled(PixaComp pixac, int outdepth, int tilewidth, int ncols, int background, int spacing, int border);
/**
* Original signature :
* l_ok pixacompWriteFiles(PIXAC*, const char*)
*/
public static native int pixacompWriteFiles(PixaComp pixac, String subdir);
/**
* Original signature :
* l_ok pixcompWriteFile(const char*, PIXC*)
*/
public static native int pixcompWriteFile(String rootname, PixComp pixc);
/**
* Original signature :
* PIX* pixThreshold8(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixThreshold8(Pix pixs, int d, int nlevels, int cmapflag);
/**
* Original signature :
* PIX* pixRemoveColormapGeneral(PIX*, l_int32, l_int32)
*/
public static native Pix pixRemoveColormapGeneral(Pix pixs, int type, int ifnocmap);
/**
* Original signature : PIX* pixRemoveColormap(PIX*, l_int32)
*/
public static native Pix pixRemoveColormap(Pix pixs, int type);
/**
* Original signature : l_ok pixAddGrayColormap8(PIX*)
*/
public static native int pixAddGrayColormap8(Pix pixs);
/**
* Original signature : PIX* pixAddMinimalGrayColormap8(PIX*)
*/
public static native Pix pixAddMinimalGrayColormap8(Pix pixs);
/**
* Original signature : PIX* pixConvertRGBToLuminance(PIX*)
*/
public static native Pix pixConvertRGBToLuminance(Pix pixs);
/**
* Original signature :
* PIX* pixConvertRGBToGray(PIX*, l_float32, l_float32, l_float32)
*/
public static native Pix pixConvertRGBToGray(Pix pixs, float rwt, float gwt, float bwt);
/**
* Original signature : PIX* pixConvertRGBToGrayFast(PIX*)
*/
public static native Pix pixConvertRGBToGrayFast(Pix pixs);
/**
* Original signature :
* PIX* pixConvertRGBToGrayMinMax(PIX*, l_int32)
*/
public static native Pix pixConvertRGBToGrayMinMax(Pix pixs, int type);
/**
* Original signature :
* PIX* pixConvertRGBToGraySatBoost(PIX*, l_int32)
*/
public static native Pix pixConvertRGBToGraySatBoost(Pix pixs, int refval);
/**
* Original signature :
* PIX* pixConvertRGBToGrayArb(PIX*, l_float32, l_float32, l_float32)
*/
public static native Pix pixConvertRGBToGrayArb(Pix pixs, float rc, float gc, float bc);
/**
* Original signature :
* PIX* pixConvertRGBToBinaryArb(PIX*, l_float32, l_float32, l_float32, l_int32, l_int32)
*/
public static native Pix pixConvertRGBToBinaryArb(Pix pixs, float rc, float gc, float bc, int thresh, int relation);
/**
* Original signature : PIX* pixConvertGrayToColormap(PIX*)
*/
public static native Pix pixConvertGrayToColormap(Pix pixs);
/**
* Original signature :
* PIX* pixConvertGrayToColormap8(PIX*, l_int32)
*/
public static native Pix pixConvertGrayToColormap8(Pix pixs, int mindepth);
/**
* Original signature :
* PIX* pixColorizeGray(PIX*, l_uint32, l_int32)
*/
public static native Pix pixColorizeGray(Pix pixs, int color, int cmapflag);
/**
* Original signature :
* PIX* pixConvertRGBToColormap(PIX*, l_int32)
*/
public static native Pix pixConvertRGBToColormap(Pix pixs, int ditherflag);
/**
* Original signature : PIX* pixConvertCmapTo1(PIX*)
*/
public static native Pix pixConvertCmapTo1(Pix pixs);
/**
* Original signature :
* l_ok pixQuantizeIfFewColors(PIX*, l_int32, l_int32, l_int32, PIX**)
*/
public static native int pixQuantizeIfFewColors(Pix pixs, int maxcolors, int mingraycolors, int octlevel, PointerByReference ppixd);
/**
* Original signature : PIX* pixConvert16To8(PIX*, l_int32)
*/
public static native Pix pixConvert16To8(Pix pixs, int type);
/**
* Original signature :
* PIX* pixConvertGrayToFalseColor(PIX*, l_float32)
*/
public static native Pix pixConvertGrayToFalseColor(Pix pixs, float gamma);
/**
* Original signature :
* PIX* pixUnpackBinary(PIX*, l_int32, l_int32)
*/
public static native Pix pixUnpackBinary(Pix pixs, int depth, int invert);
/**
* Original signature :
* PIX* pixConvert1To16(PIX*, PIX*, l_uint16, l_uint16)
*/
public static native Pix pixConvert1To16(Pix pixd, Pix pixs, short val0, short val1);
/**
* Original signature :
* PIX* pixConvert1To32(PIX*, PIX*, l_uint32, l_uint32)
*/
public static native Pix pixConvert1To32(Pix pixd, Pix pixs, int val0, int val1);
/**
* Original signature : PIX* pixConvert1To2Cmap(PIX*)
*/
public static native Pix pixConvert1To2Cmap(Pix pixs);
/**
* Original signature :
* PIX* pixConvert1To2(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixConvert1To2(Pix pixd, Pix pixs, int val0, int val1);
/**
* Original signature : PIX* pixConvert1To4Cmap(PIX*)
*/
public static native Pix pixConvert1To4Cmap(Pix pixs);
/**
* Original signature :
* PIX* pixConvert1To4(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixConvert1To4(Pix pixd, Pix pixs, int val0, int val1);
/**
* Original signature : PIX* pixConvert1To8Cmap(PIX*)
*/
public static native Pix pixConvert1To8Cmap(Pix pixs);
/**
* Original signature :
* PIX* pixConvert1To8(PIX*, PIX*, l_uint8, l_uint8)
*/
public static native Pix pixConvert1To8(Pix pixd, Pix pixs, byte val0, byte val1);
/**
* Original signature :
* PIX* pixConvert2To8(PIX*, l_uint8, l_uint8, l_uint8, l_uint8, l_int32)
*/
public static native Pix pixConvert2To8(Pix pixs, byte val0, byte val1, byte val2, byte val3, int cmapflag);
/**
* Original signature : PIX* pixConvert4To8(PIX*, l_int32)
*/
public static native Pix pixConvert4To8(Pix pixs, int cmapflag);
/**
* Original signature : PIX* pixConvert8To16(PIX*, l_int32)
*/
public static native Pix pixConvert8To16(Pix pixs, int leftshift);
/**
* Original signature : PIX* pixConvertTo2(PIX*)
*/
public static native Pix pixConvertTo2(Pix pixs);
/**
* Original signature : PIX* pixConvert8To2(PIX*)
*/
public static native Pix pixConvert8To2(Pix pix);
/**
* Original signature : PIX* pixConvertTo4(PIX*)
*/
public static native Pix pixConvertTo4(Pix pixs);
/**
* Original signature : PIX* pixConvert8To4(PIX*)
*/
public static native Pix pixConvert8To4(Pix pix);
/**
* Original signature : PIX* pixConvertTo1Adaptive(PIX*)
*/
public static native Pix pixConvertTo1Adaptive(Pix pixs);
/**
* Original signature : PIX* pixConvertTo1(PIX*, l_int32)
*/
public static native Pix pixConvertTo1(Pix pixs, int threshold);
/**
* Original signature :
* PIX* pixConvertTo1BySampling(PIX*, l_int32, l_int32)
*/
public static native Pix pixConvertTo1BySampling(Pix pixs, int factor, int threshold);
/**
* Original signature : PIX* pixConvertTo8(PIX*, l_int32)
*/
public static native Pix pixConvertTo8(Pix pixs, int cmapflag);
/**
* Original signature :
* PIX* pixConvertTo8BySampling(PIX*, l_int32, l_int32)
*/
public static native Pix pixConvertTo8BySampling(Pix pixs, int factor, int cmapflag);
/**
* Original signature :
* PIX* pixConvertTo8Colormap(PIX*, l_int32)
*/
public static native Pix pixConvertTo8Colormap(Pix pixs, int dither);
/**
* Original signature : PIX* pixConvertTo16(PIX*)
*/
public static native Pix pixConvertTo16(Pix pixs);
/**
* Original signature : PIX* pixConvertTo32(PIX*)
*/
public static native Pix pixConvertTo32(Pix pixs);
/**
* Original signature :
* PIX* pixConvertTo32BySampling(PIX*, l_int32)
*/
public static native Pix pixConvertTo32BySampling(Pix pixs, int factor);
/**
* Original signature : PIX* pixConvert8To32(PIX*)
*/
public static native Pix pixConvert8To32(Pix pixs);
/**
* Original signature :
* PIX* pixConvertTo8Or32(PIX*, l_int32, l_int32)
*/
public static native Pix pixConvertTo8Or32(Pix pixs, int copyflag, int warnflag);
/**
* Original signature : PIX* pixConvert24To32(PIX*)
*/
public static native Pix pixConvert24To32(Pix pixs);
/**
* Original signature : PIX* pixConvert32To24(PIX*)
*/
public static native Pix pixConvert32To24(Pix pixs);
/**
* Original signature : PIX* pixConvert32To16(PIX*, l_int32)
*/
public static native Pix pixConvert32To16(Pix pixs, int type);
/**
* Original signature :
* PIX* pixConvert32To8(PIX*, l_int32, l_int32)
*/
public static native Pix pixConvert32To8(Pix pixs, int type16, int type8);
/**
* Original signature : PIX* pixRemoveAlpha(PIX*)
*/
public static native Pix pixRemoveAlpha(Pix pixs);
/**
* Original signature : PIX* pixAddAlphaTo1bpp(PIX*, PIX*)
*/
public static native Pix pixAddAlphaTo1bpp(Pix pixd, Pix pixs);
/**
* Original signature : PIX* pixConvertLossless(PIX*, l_int32)
*/
public static native Pix pixConvertLossless(Pix pixs, int d);
/**
* Original signature : PIX* pixConvertForPSWrap(PIX*)
*/
public static native Pix pixConvertForPSWrap(Pix pixs);
/**
* Original signature :
* PIX* pixConvertToSubpixelRGB(PIX*, l_float32, l_float32, l_int32)
*/
public static native Pix pixConvertToSubpixelRGB(Pix pixs, float scalex, float scaley, int order);
/**
* Original signature :
* PIX* pixConvertGrayToSubpixelRGB(PIX*, l_float32, l_float32, l_int32)
*/
public static native Pix pixConvertGrayToSubpixelRGB(Pix pixs, float scalex, float scaley, int order);
/**
* Original signature :
* PIX* pixConvertColorToSubpixelRGB(PIX*, l_float32, l_float32, l_int32)
*/
public static native Pix pixConvertColorToSubpixelRGB(Pix pixs, float scalex, float scaley, int order);
/**
* Original signature : void l_setNeutralBoostVal(l_int32)
*/
public static native void l_setNeutralBoostVal(int val);
/**
* Original signature :
* PIX* pixConnCompTransform(PIX*, l_int32, l_int32)
*/
public static native Pix pixConnCompTransform(Pix pixs, int connect, int depth);
/**
* Original signature :
* PIX* pixConnCompAreaTransform(PIX*, l_int32)
*/
public static native Pix pixConnCompAreaTransform(Pix pixs, int connect);
/**
* Original signature :
* l_ok pixConnCompIncrInit(PIX*, l_int32, PIX**, PTAA**, l_int32*)
*/
public static native int pixConnCompIncrInit(Pix pixs, int conn, PointerByReference ppixd, PointerByReference pptaa, IntBuffer pncc);
/**
* Original signature :
* l_ok pixConnCompIncrInit(PIX*, l_int32, PIX**, PTAA**, l_int32*)
*/
public static native int pixConnCompIncrInit(Pix pixs, int conn, PointerByReference ppixd, PointerByReference pptaa, IntByReference pncc);
/**
* Original signature :
* l_int32 pixConnCompIncrAdd(PIX*, PTAA*, l_int32*, l_float32, l_float32, l_int32)
*/
public static native int pixConnCompIncrAdd(Pix pixs, Ptaa ptaa, IntBuffer pncc, float x, float y, int debug);
/**
* Original signature :
* l_ok pixGetSortedNeighborValues(PIX*, l_int32, l_int32, l_int32, l_int32**, l_int32*)
*/
public static native int pixGetSortedNeighborValues(Pix pixs, int x, int y, int conn, PointerByReference pneigh, IntBuffer pnvals);
/**
* Original signature : PIX* pixLocToColorTransform(PIX*)
*/
public static native Pix pixLocToColorTransform(Pix pixs);
/**
* Original signature :
* PIXTILING* pixTilingCreate(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native PixTiling pixTilingCreate(Pix pixs, int nx, int ny, int w, int h, int xoverlap, int yoverlap);
/**
* Original signature : void pixTilingDestroy(PIXTILING**)
*/
public static native void pixTilingDestroy(PointerByReference ppt);
/**
* Original signature :
* l_ok pixTilingGetCount(PIXTILING*, l_int32*, l_int32*)
*/
public static native int pixTilingGetCount(PixTiling pt, IntBuffer pnx, IntBuffer pny);
/**
* Original signature :
* l_ok pixTilingGetSize(PIXTILING*, l_int32*, l_int32*)
*/
public static native int pixTilingGetSize(PixTiling pt, IntBuffer pw, IntBuffer ph);
/**
* Original signature :
* PIX* pixTilingGetTile(PIXTILING*, l_int32, l_int32)
*/
public static native Pix pixTilingGetTile(PixTiling pt, int i, int j);
/**
* Original signature :
* l_ok pixTilingNoStripOnPaint(PIXTILING*)
*/
public static native int pixTilingNoStripOnPaint(PixTiling pt);
/**
* Original signature :
* l_ok pixTilingPaintTile(PIX*, l_int32, l_int32, PIX*, PIXTILING*)
*/
public static native int pixTilingPaintTile(Pix pixd, int i, int j, Pix pixs, PixTiling pt);
/**
* Original signature : PIX* pixReadStreamPng(FILE*)
*/
public static native Pix pixReadStreamPng(FILE fp);
/**
* Original signature :
* l_ok readHeaderPng(const char*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderPng(String filename, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp, IntBuffer piscmap);
/**
* Original signature :
* l_ok freadHeaderPng(FILE*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int freadHeaderPng(FILE fp, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp, IntBuffer piscmap);
/**
* Original signature :
* l_ok readHeaderMemPng(const l_uint8*, size_t, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderMemPng(ByteBuffer data, NativeSize size, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp, IntBuffer piscmap);
/**
* Original signature :
* l_int32 fgetPngResolution(FILE*, l_int32*, l_int32*)
*/
public static native int fgetPngResolution(FILE fp, IntBuffer pxres, IntBuffer pyres);
/**
* Original signature :
* l_ok isPngInterlaced(const char*, l_int32*)
*/
public static native int isPngInterlaced(String filename, IntBuffer pinterlaced);
/**
* Original signature :
* l_ok fgetPngColormapInfo(FILE*, PIXCMAP**, l_int32*)
*/
public static native int fgetPngColormapInfo(FILE fp, PointerByReference pcmap, IntBuffer ptransparency);
/**
* Original signature :
* l_ok fgetPngColormapInfo(FILE*, PIXCMAP**, l_int32*)
*/
public static native int fgetPngColormapInfo(FILE fp, PointerByReference pcmap, IntByReference ptransparency);
/**
* Original signature :
* l_ok pixWritePng(const char*, PIX*, l_float32)
*/
public static native int pixWritePng(String filename, Pix pix, float gamma);
/**
* Original signature :
* l_ok pixWriteStreamPng(FILE*, PIX*, l_float32)
*/
public static native int pixWriteStreamPng(FILE fp, Pix pix, float gamma);
/**
* Original signature :
* l_ok pixSetZlibCompression(PIX*, l_int32)
*/
public static native int pixSetZlibCompression(Pix pix, int compval);
/**
* Original signature : void l_pngSetReadStrip16To8(l_int32)
*/
public static native void l_pngSetReadStrip16To8(int flag);
/**
* Original signature :
* PIX* pixReadMemPng(const l_uint8*, size_t)
*/
public static native Pix pixReadMemPng(ByteBuffer filedata, NativeSize filesize);
/**
* Original signature :
* l_ok pixWriteMemPng(l_uint8**, size_t*, PIX*, l_float32)
*/
public static native int pixWriteMemPng(PointerByReference pfiledata, NativeSizeByReference pfilesize, Pix pix, float gamma);
/**
* Original signature : PIX* pixReadStreamPnm(FILE*)
*/
public static native Pix pixReadStreamPnm(FILE fp);
/**
* Original signature :
* l_ok readHeaderPnm(const char*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderPnm(String filename, IntBuffer pw, IntBuffer ph, IntBuffer pd, IntBuffer ptype, IntBuffer pbps, IntBuffer pspp);
/**
* Original signature :
* l_ok freadHeaderPnm(FILE*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int freadHeaderPnm(FILE fp, IntBuffer pw, IntBuffer ph, IntBuffer pd, IntBuffer ptype, IntBuffer pbps, IntBuffer pspp);
/**
* Original signature : l_ok pixWriteStreamPnm(FILE*, PIX*)
*/
public static native int pixWriteStreamPnm(FILE fp, Pix pix);
/**
* Original signature :
* l_ok pixWriteStreamAsciiPnm(FILE*, PIX*)
*/
public static native int pixWriteStreamAsciiPnm(FILE fp, Pix pix);
/**
* Original signature : l_ok pixWriteStreamPam(FILE*, PIX*)
*/
public static native int pixWriteStreamPam(FILE fp, Pix pix);
/**
* Original signature :
* PIX* pixReadMemPnm(const l_uint8*, size_t)
*/
public static native Pix pixReadMemPnm(ByteBuffer data, NativeSize size);
/**
* Original signature :
* l_ok readHeaderMemPnm(const l_uint8*, size_t, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderMemPnm(ByteBuffer data, NativeSize size, IntBuffer pw, IntBuffer ph, IntBuffer pd, IntBuffer ptype, IntBuffer pbps, IntBuffer pspp);
/**
* Original signature :
* l_ok pixWriteMemPnm(l_uint8**, size_t*, PIX*)
*/
public static native int pixWriteMemPnm(PointerByReference pdata, NativeSizeByReference psize, Pix pix);
/**
* Original signature :
* l_ok pixWriteMemPam(l_uint8**, size_t*, PIX*)
*/
public static native int pixWriteMemPam(PointerByReference pdata, NativeSizeByReference psize, Pix pix);
/**
* Original signature :
* PIX* pixProjectiveSampledPta(PIX*, PTA*, PTA*, l_int32)
*/
public static native Pix pixProjectiveSampledPta(Pix pixs, Pta ptad, Pta ptas, int incolor);
/**
* Original signature :
* PIX* pixProjectiveSampled(PIX*, l_float32*, l_int32)
*/
public static native Pix pixProjectiveSampled(Pix pixs, FloatBuffer vc, int incolor);
/**
* Original signature :
* PIX* pixProjectivePta(PIX*, PTA*, PTA*, l_int32)
*/
public static native Pix pixProjectivePta(Pix pixs, Pta ptad, Pta ptas, int incolor);
/**
* Original signature :
* PIX* pixProjective(PIX*, l_float32*, l_int32)
*/
public static native Pix pixProjective(Pix pixs, FloatBuffer vc, int incolor);
/**
* Original signature :
* PIX* pixProjectivePtaColor(PIX*, PTA*, PTA*, l_uint32)
*/
public static native Pix pixProjectivePtaColor(Pix pixs, Pta ptad, Pta ptas, int colorval);
/**
* Original signature :
* PIX* pixProjectiveColor(PIX*, l_float32*, l_uint32)
*/
public static native Pix pixProjectiveColor(Pix pixs, FloatBuffer vc, int colorval);
/**
* Original signature :
* PIX* pixProjectivePtaGray(PIX*, PTA*, PTA*, l_uint8)
*/
public static native Pix pixProjectivePtaGray(Pix pixs, Pta ptad, Pta ptas, byte grayval);
/**
* Original signature :
* PIX* pixProjectiveGray(PIX*, l_float32*, l_uint8)
*/
public static native Pix pixProjectiveGray(Pix pixs, FloatBuffer vc, byte grayval);
/**
* Original signature :
* PIX* pixProjectivePtaWithAlpha(PIX*, PTA*, PTA*, PIX*, l_float32, l_int32)
*/
public static native Pix pixProjectivePtaWithAlpha(Pix pixs, Pta ptad, Pta ptas, Pix pixg, float fract, int border);
/**
* Original signature :
* l_ok getProjectiveXformCoeffs(PTA*, PTA*, l_float32**)
*/
public static native int getProjectiveXformCoeffs(Pta ptas, Pta ptad, PointerByReference pvc);
/**
* Original signature :
* l_ok projectiveXformSampledPt(l_float32*, l_int32, l_int32, l_int32*, l_int32*)
*/
public static native int projectiveXformSampledPt(FloatBuffer vc, int x, int y, IntBuffer pxp, IntBuffer pyp);
/**
* Original signature :
* l_ok projectiveXformPt(l_float32*, l_int32, l_int32, l_float32*, l_float32*)
*/
public static native int projectiveXformPt(FloatBuffer vc, int x, int y, FloatBuffer pxp, FloatBuffer pyp);
/**
* Original signature :
* l_ok convertFilesToPS(const char*, const char*, l_int32, const char*)
*/
public static native int convertFilesToPS(String dirin, String substr, int res, String fileout);
/**
* Original signature :
* l_ok sarrayConvertFilesToPS(SARRAY*, l_int32, const char*)
*/
public static native int sarrayConvertFilesToPS(Sarray sa, int res, String fileout);
/**
* Original signature :
* l_ok convertFilesFittedToPS(const char*, const char*, l_float32, l_float32, const char*)
*/
public static native int convertFilesFittedToPS(String dirin, String substr, float xpts, float ypts, String fileout);
/**
* Original signature :
* l_ok sarrayConvertFilesFittedToPS(SARRAY*, l_float32, l_float32, const char*)
*/
public static native int sarrayConvertFilesFittedToPS(Sarray sa, float xpts, float ypts, String fileout);
/**
* Original signature :
* l_ok writeImageCompressedToPSFile(const char*, const char*, l_int32, l_int32*)
*/
public static native int writeImageCompressedToPSFile(String filein, String fileout, int res, IntBuffer pindex);
/**
* Original signature :
* l_ok convertSegmentedPagesToPS(const char*, const char*, l_int32, const char*, const char*, l_int32, l_int32, l_int32, l_float32, l_float32, l_int32, const char*)
*/
public static native int convertSegmentedPagesToPS(String pagedir, String pagestr, int page_numpre, String maskdir, String maskstr, int mask_numpre, int numpost, int maxnum, float textscale, float imagescale, int threshold, String fileout);
/**
* Original signature :
* l_ok pixWriteSegmentedPageToPS(PIX*, PIX*, l_float32, l_float32, l_int32, l_int32, const char*)
*/
public static native int pixWriteSegmentedPageToPS(Pix pixs, Pix pixm, float textscale, float imagescale, int threshold, int pageno, String fileout);
/**
* Original signature :
* l_ok pixWriteMixedToPS(PIX*, PIX*, l_float32, l_int32, const char*)
*/
public static native int pixWriteMixedToPS(Pix pixb, Pix pixc, float scale, int pageno, String fileout);
/**
* Original signature :
* l_ok convertToPSEmbed(const char*, const char*, l_int32)
*/
public static native int convertToPSEmbed(String filein, String fileout, int level);
/**
* Original signature :
* l_ok pixaWriteCompressedToPS(PIXA*, const char*, l_int32, l_int32)
*/
public static native int pixaWriteCompressedToPS(Pixa pixa, String fileout, int res, int level);
/**
* Original signature :
* l_ok pixWriteCompressedToPS(PIX*, const char*, l_int32, l_int32, l_int32*)
*/
public static native int pixWriteCompressedToPS(Pix pix, String fileout, int res, int level, IntBuffer pindex);
/**
* Original signature :
* l_ok pixWritePSEmbed(const char*, const char*)
*/
public static native int pixWritePSEmbed(String filein, String fileout);
/**
* Original signature :
* l_ok pixWriteStreamPS(FILE*, PIX*, BOX*, l_int32, l_float32)
*/
public static native int pixWriteStreamPS(FILE fp, Pix pix, Box box, int res, float scale);
/**
* Original signature :
* char* pixWriteStringPS(PIX*, BOX*, l_int32, l_float32)
*/
public static native Pointer pixWriteStringPS(Pix pixs, Box box, int res, float scale);
/**
* Original signature :
* char* generateUncompressedPS(char*, l_int32, l_int32, l_int32, l_int32, l_int32, l_float32, l_float32, l_float32, l_float32, l_int32)
*/
public static native Pointer generateUncompressedPS(ByteBuffer hexdata, int w, int h, int d, int psbpl, int bps, float xpt, float ypt, float wpt, float hpt, int boxflag);
/**
* Original signature :
* l_ok convertJpegToPSEmbed(const char*, const char*)
*/
public static native int convertJpegToPSEmbed(String filein, String fileout);
/**
* Original signature :
* l_ok convertJpegToPS(const char*, const char*, const char*, l_int32, l_int32, l_int32, l_float32, l_int32, l_int32)
*/
public static native int convertJpegToPS(String filein, String fileout, String operation, int x, int y, int res, float scale, int pageno, int endpage);
/**
* Original signature :
* l_ok convertG4ToPSEmbed(const char*, const char*)
*/
public static native int convertG4ToPSEmbed(String filein, String fileout);
/**
* Original signature :
* l_ok convertG4ToPS(const char*, const char*, const char*, l_int32, l_int32, l_int32, l_float32, l_int32, l_int32, l_int32)
*/
public static native int convertG4ToPS(String filein, String fileout, String operation, int x, int y, int res, float scale, int pageno, int maskflag, int endpage);
/**
* Original signature :
* l_ok convertTiffMultipageToPS(const char*, const char*, l_float32)
*/
public static native int convertTiffMultipageToPS(String filein, String fileout, float fillfract);
/**
* Original signature :
* l_ok convertFlateToPSEmbed(const char*, const char*)
*/
public static native int convertFlateToPSEmbed(String filein, String fileout);
/**
* Original signature :
* l_ok convertFlateToPS(const char*, const char*, const char*, l_int32, l_int32, l_int32, l_float32, l_int32, l_int32)
*/
public static native int convertFlateToPS(String filein, String fileout, String operation, int x, int y, int res, float scale, int pageno, int endpage);
/**
* Original signature :
* l_ok pixWriteMemPS(l_uint8**, size_t*, PIX*, BOX*, l_int32, l_float32)
*/
public static native int pixWriteMemPS(PointerByReference pdata, NativeSizeByReference psize, Pix pix, Box box, int res, float scale);
/**
* Original signature :
* l_int32 getResLetterPage(l_int32, l_int32, l_float32)
*/
public static native int getResLetterPage(int w, int h, float fillfract);
/**
* Original signature :
* l_int32 getResA4Page(l_int32, l_int32, l_float32)
*/
public static native int getResA4Page(int w, int h, float fillfract);
/**
* Original signature : void l_psWriteBoundingBox(l_int32)
*/
public static native void l_psWriteBoundingBox(int flag);
/**
* Original signature : PTA* ptaCreate(l_int32)
*/
public static native Pta ptaCreate(int n);
/**
* Original signature : PTA* ptaCreateFromNuma(NUMA*, NUMA*)
*/
public static native Pta ptaCreateFromNuma(Numa nax, Numa nay);
/**
* Original signature : void ptaDestroy(PTA**)
*/
public static native void ptaDestroy(PointerByReference ppta);
/**
* Original signature : PTA* ptaCopy(PTA*)
*/
public static native Pta ptaCopy(Pta pta);
/**
* Original signature :
* PTA* ptaCopyRange(PTA*, l_int32, l_int32)
*/
public static native Pta ptaCopyRange(Pta ptas, int istart, int iend);
/**
* Original signature : PTA* ptaClone(PTA*)
*/
public static native Pta ptaClone(Pta pta);
/**
* Original signature : l_ok ptaEmpty(PTA*)
*/
public static native int ptaEmpty(Pta pta);
/**
* Original signature :
* l_ok ptaAddPt(PTA*, l_float32, l_float32)
*/
public static native int ptaAddPt(Pta pta, float x, float y);
/**
* Original signature :
* l_ok ptaInsertPt(PTA*, l_int32, l_int32, l_int32)
*/
public static native int ptaInsertPt(Pta pta, int index, int x, int y);
/**
* Original signature : l_ok ptaRemovePt(PTA*, l_int32)
*/
public static native int ptaRemovePt(Pta pta, int index);
/**
* Original signature : l_int32 ptaGetRefcount(PTA*)
*/
public static native int ptaGetRefcount(Pta pta);
/**
* Original signature :
* l_int32 ptaChangeRefcount(PTA*, l_int32)
*/
public static native int ptaChangeRefcount(Pta pta, int delta);
/**
* Original signature : l_int32 ptaGetCount(PTA*)
*/
public static native int ptaGetCount(Pta pta);
/**
* Original signature :
* l_ok ptaGetPt(PTA*, l_int32, l_float32*, l_float32*)
*/
public static native int ptaGetPt(Pta pta, int index, FloatBuffer px, FloatBuffer py);
/**
* Original signature :
* l_ok ptaGetIPt(PTA*, l_int32, l_int32*, l_int32*)
*/
public static native int ptaGetIPt(Pta pta, int index, IntBuffer px, IntBuffer py);
/**
* Original signature :
* l_ok ptaSetPt(PTA*, l_int32, l_float32, l_float32)
*/
public static native int ptaSetPt(Pta pta, int index, float x, float y);
/**
* Original signature : l_ok ptaGetArrays(PTA*, NUMA**, NUMA**)
*/
public static native int ptaGetArrays(Pta pta, PointerByReference pnax, PointerByReference pnay);
/**
* Original signature : PTA* ptaRead(const char*)
*/
public static native Pta ptaRead(String filename);
/**
* Original signature : PTA* ptaReadStream(FILE*)
*/
public static native Pta ptaReadStream(FILE fp);
/**
* Original signature : PTA* ptaReadMem(const l_uint8*, size_t)
*/
public static native Pta ptaReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature :
* l_ok ptaWriteDebug(const char*, PTA*, l_int32)
*/
public static native int ptaWriteDebug(String filename, Pta pta, int type);
/**
* Original signature :
* l_ok ptaWrite(const char*, PTA*, l_int32)
*/
public static native int ptaWrite(String filename, Pta pta, int type);
/**
* Original signature :
* l_ok ptaWriteStream(FILE*, PTA*, l_int32)
*/
public static native int ptaWriteStream(FILE fp, Pta pta, int type);
/**
* Original signature :
* l_ok ptaWriteMem(l_uint8**, size_t*, PTA*, l_int32)
*/
public static native int ptaWriteMem(PointerByReference pdata, NativeSizeByReference psize, Pta pta, int type);
/**
* Original signature : PTAA* ptaaCreate(l_int32)
*/
public static native Ptaa ptaaCreate(int n);
/**
* Original signature : void ptaaDestroy(PTAA**)
*/
public static native void ptaaDestroy(PointerByReference pptaa);
/**
* Original signature : l_ok ptaaAddPta(PTAA*, PTA*, l_int32)
*/
public static native int ptaaAddPta(Ptaa ptaa, Pta pta, int copyflag);
/**
* Original signature : l_int32 ptaaGetCount(PTAA*)
*/
public static native int ptaaGetCount(Ptaa ptaa);
/**
* Original signature :
* PTA* ptaaGetPta(PTAA*, l_int32, l_int32)
*/
public static native Pta ptaaGetPta(Ptaa ptaa, int index, int accessflag);
/**
* Original signature :
* l_ok ptaaGetPt(PTAA*, l_int32, l_int32, l_float32*, l_float32*)
*/
public static native int ptaaGetPt(Ptaa ptaa, int ipta, int jpt, FloatBuffer px, FloatBuffer py);
/**
* Original signature : l_ok ptaaInitFull(PTAA*, PTA*)
*/
public static native int ptaaInitFull(Ptaa ptaa, Pta pta);
/**
* Original signature :
* l_ok ptaaReplacePta(PTAA*, l_int32, PTA*)
*/
public static native int ptaaReplacePta(Ptaa ptaa, int index, Pta pta);
/**
* Original signature :
* l_ok ptaaAddPt(PTAA*, l_int32, l_float32, l_float32)
*/
public static native int ptaaAddPt(Ptaa ptaa, int ipta, float x, float y);
/**
* Original signature : l_ok ptaaTruncate(PTAA*)
*/
public static native int ptaaTruncate(Ptaa ptaa);
/**
* Original signature : PTAA* ptaaRead(const char*)
*/
public static native Ptaa ptaaRead(String filename);
/**
* Original signature : PTAA* ptaaReadStream(FILE*)
*/
public static native Ptaa ptaaReadStream(FILE fp);
/**
* Original signature :
* PTAA* ptaaReadMem(const l_uint8*, size_t)
*/
public static native Ptaa ptaaReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature :
* l_ok ptaaWriteDebug(const char*, PTAA*, l_int32)
*/
public static native int ptaaWriteDebug(String filename, Ptaa ptaa, int type);
/**
* Original signature :
* l_ok ptaaWrite(const char*, PTAA*, l_int32)
*/
public static native int ptaaWrite(String filename, Ptaa ptaa, int type);
/**
* Original signature :
* l_ok ptaaWriteStream(FILE*, PTAA*, l_int32)
*/
public static native int ptaaWriteStream(FILE fp, Ptaa ptaa, int type);
/**
* Original signature :
* l_ok ptaaWriteMem(l_uint8**, size_t*, PTAA*, l_int32)
*/
public static native int ptaaWriteMem(PointerByReference pdata, NativeSizeByReference psize, Ptaa ptaa, int type);
/**
* Original signature : PTA* ptaSubsample(PTA*, l_int32)
*/
public static native Pta ptaSubsample(Pta ptas, int subfactor);
/**
* Original signature :
* l_ok ptaJoin(PTA*, PTA*, l_int32, l_int32)
*/
public static native int ptaJoin(Pta ptad, Pta ptas, int istart, int iend);
/**
* Original signature :
* l_ok ptaaJoin(PTAA*, PTAA*, l_int32, l_int32)
*/
public static native int ptaaJoin(Ptaa ptaad, Ptaa ptaas, int istart, int iend);
/**
* Original signature : PTA* ptaReverse(PTA*, l_int32)
*/
public static native Pta ptaReverse(Pta ptas, int type);
/**
* Original signature : PTA* ptaTranspose(PTA*)
*/
public static native Pta ptaTranspose(Pta ptas);
/**
* Original signature :
* PTA* ptaCyclicPerm(PTA*, l_int32, l_int32)
*/
public static native Pta ptaCyclicPerm(Pta ptas, int xs, int ys);
/**
* Original signature :
* PTA* ptaSelectRange(PTA*, l_int32, l_int32)
*/
public static native Pta ptaSelectRange(Pta ptas, int first, int last);
/**
* Original signature : BOX* ptaGetBoundingRegion(PTA*)
*/
public static native Box ptaGetBoundingRegion(Pta pta);
/**
* Original signature :
* l_ok ptaGetRange(PTA*, l_float32*, l_float32*, l_float32*, l_float32*)
*/
public static native int ptaGetRange(Pta pta, FloatBuffer pminx, FloatBuffer pmaxx, FloatBuffer pminy, FloatBuffer pmaxy);
/**
* Original signature : PTA* ptaGetInsideBox(PTA*, BOX*)
*/
public static native Pta ptaGetInsideBox(Pta ptas, Box box);
/**
* Original signature : PTA* pixFindCornerPixels(PIX*)
*/
public static native Pta pixFindCornerPixels(Pix pixs);
/**
* Original signature :
* l_int32 ptaContainsPt(PTA*, l_int32, l_int32)
*/
public static native int ptaContainsPt(Pta pta, int x, int y);
/**
* Original signature : l_int32 ptaTestIntersection(PTA*, PTA*)
*/
public static native int ptaTestIntersection(Pta pta1, Pta pta2);
/**
* Original signature :
* PTA* ptaTransform(PTA*, l_int32, l_int32, l_float32, l_float32)
*/
public static native Pta ptaTransform(Pta ptas, int shiftx, int shifty, float scalex, float scaley);
/**
* Original signature :
* l_int32 ptaPtInsidePolygon(PTA*, l_float32, l_float32, l_int32*)
*/
public static native int ptaPtInsidePolygon(Pta pta, float x, float y, IntBuffer pinside);
/**
* Original signature :
* l_float32 l_angleBetweenVectors(l_float32, l_float32, l_float32, l_float32)
*/
public static native float l_angleBetweenVectors(float x1, float y1, float x2, float y2);
/**
* Original signature :
* l_ok ptaGetMinMax(PTA*, l_float32*, l_float32*, l_float32*, l_float32*)
*/
public static native int ptaGetMinMax(Pta pta, FloatBuffer pxmin, FloatBuffer pymin, FloatBuffer pxmax, FloatBuffer pymax);
/**
* Original signature :
* PTA* ptaSelectByValue(PTA*, l_float32, l_float32, l_int32, l_int32)
*/
public static native Pta ptaSelectByValue(Pta ptas, float xth, float yth, int type, int relation);
/**
* Original signature : PTA* ptaCropToMask(PTA*, PIX*)
*/
public static native Pta ptaCropToMask(Pta ptas, Pix pixm);
/**
* Original signature :
* l_ok ptaGetLinearLSF(PTA*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaGetLinearLSF(Pta pta, FloatBuffer pa, FloatBuffer pb, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaGetLinearLSF(PTA*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaGetLinearLSF(Pta pta, FloatByReference pa, FloatByReference pb, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaGetQuadraticLSF(PTA*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaGetQuadraticLSF(Pta pta, FloatBuffer pa, FloatBuffer pb, FloatBuffer pc, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaGetQuadraticLSF(PTA*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaGetQuadraticLSF(Pta pta, FloatByReference pa, FloatByReference pb, FloatByReference pc, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaGetCubicLSF(PTA*, l_float32*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaGetCubicLSF(Pta pta, FloatBuffer pa, FloatBuffer pb, FloatBuffer pc, FloatBuffer pd, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaGetCubicLSF(PTA*, l_float32*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaGetCubicLSF(Pta pta, FloatByReference pa, FloatByReference pb, FloatByReference pc, FloatByReference pd, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaGetQuarticLSF(PTA*, l_float32*, l_float32*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaGetQuarticLSF(Pta pta, FloatBuffer pa, FloatBuffer pb, FloatBuffer pc, FloatBuffer pd, FloatBuffer pe, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaGetQuarticLSF(PTA*, l_float32*, l_float32*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaGetQuarticLSF(Pta pta, FloatByReference pa, FloatByReference pb, FloatByReference pc, FloatByReference pd, FloatByReference pe, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaNoisyLinearLSF(PTA*, l_float32, PTA**, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaNoisyLinearLSF(Pta pta, float factor, PointerByReference pptad, FloatBuffer pa, FloatBuffer pb, FloatBuffer pmederr, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaNoisyLinearLSF(PTA*, l_float32, PTA**, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaNoisyLinearLSF(Pta pta, float factor, PointerByReference pptad, FloatByReference pa, FloatByReference pb, FloatByReference pmederr, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaNoisyQuadraticLSF(PTA*, l_float32, PTA**, l_float32*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaNoisyQuadraticLSF(Pta pta, float factor, PointerByReference pptad, FloatBuffer pa, FloatBuffer pb, FloatBuffer pc, FloatBuffer pmederr, PointerByReference pnafit);
/**
* Original signature :
* l_ok ptaNoisyQuadraticLSF(PTA*, l_float32, PTA**, l_float32*, l_float32*, l_float32*, l_float32*, NUMA**)
*/
public static native int ptaNoisyQuadraticLSF(Pta pta, float factor, PointerByReference pptad, FloatByReference pa, FloatByReference pb, FloatByReference pc, FloatByReference pmederr, PointerByReference pnafit);
/**
* Original signature :
* l_ok applyLinearFit(l_float32, l_float32, l_float32, l_float32*)
*/
public static native int applyLinearFit(float a, float b, float x, FloatBuffer py);
/**
* Original signature :
* l_ok applyQuadraticFit(l_float32, l_float32, l_float32, l_float32, l_float32*)
*/
public static native int applyQuadraticFit(float a, float b, float c, float x, FloatBuffer py);
/**
* Original signature :
* l_ok applyCubicFit(l_float32, l_float32, l_float32, l_float32, l_float32, l_float32*)
*/
public static native int applyCubicFit(float a, float b, float c, float d, float x, FloatBuffer py);
/**
* Original signature :
* l_ok applyQuarticFit(l_float32, l_float32, l_float32, l_float32, l_float32, l_float32, l_float32*)
*/
public static native int applyQuarticFit(float a, float b, float c, float d, float e, float x, FloatBuffer py);
/**
* Original signature :
* l_ok pixPlotAlongPta(PIX*, PTA*, l_int32, const char*)
*/
public static native int pixPlotAlongPta(Pix pixs, Pta pta, int outformat, String title);
/**
* Original signature : PTA* ptaGetPixelsFromPix(PIX*, BOX*)
*/
public static native Pta ptaGetPixelsFromPix(Pix pixs, Box box);
/**
* Original signature :
* PIX* pixGenerateFromPta(PTA*, l_int32, l_int32)
*/
public static native Pix pixGenerateFromPta(Pta pta, int w, int h);
/**
* Original signature :
* PTA* ptaGetBoundaryPixels(PIX*, l_int32)
*/
public static native Pta ptaGetBoundaryPixels(Pix pixs, int type);
/**
* Original signature :
* PTAA* ptaaGetBoundaryPixels(PIX*, l_int32, l_int32, BOXA**, PIXA**)
*/
public static native Ptaa ptaaGetBoundaryPixels(Pix pixs, int type, int connectivity, PointerByReference pboxa, PointerByReference ppixa);
/**
* Original signature :
* PTAA* ptaaIndexLabeledPixels(PIX*, l_int32*)
*/
public static native Ptaa ptaaIndexLabeledPixels(Pix pixs, IntBuffer pncc);
/**
* Original signature :
* PTA* ptaGetNeighborPixLocs(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pta ptaGetNeighborPixLocs(Pix pixs, int x, int y, int conn);
/**
* Original signature : PTA* numaConvertToPta1(NUMA*)
*/
public static native Pta numaConvertToPta1(Numa na);
/**
* Original signature : PTA* numaConvertToPta2(NUMA*, NUMA*)
*/
public static native Pta numaConvertToPta2(Numa nax, Numa nay);
/**
* Original signature :
* l_ok ptaConvertToNuma(PTA*, NUMA**, NUMA**)
*/
public static native int ptaConvertToNuma(Pta pta, PointerByReference pnax, PointerByReference pnay);
/**
* Original signature : PIX* pixDisplayPta(PIX*, PIX*, PTA*)
*/
public static native Pix pixDisplayPta(Pix pixd, Pix pixs, Pta pta);
/**
* Original signature :
* PIX* pixDisplayPtaaPattern(PIX*, PIX*, PTAA*, PIX*, l_int32, l_int32)
*/
public static native Pix pixDisplayPtaaPattern(Pix pixd, Pix pixs, Ptaa ptaa, Pix pixp, int cx, int cy);
/**
* Original signature :
* PIX* pixDisplayPtaPattern(PIX*, PIX*, PTA*, PIX*, l_int32, l_int32, l_uint32)
*/
public static native Pix pixDisplayPtaPattern(Pix pixd, Pix pixs, Pta pta, Pix pixp, int cx, int cy, int color);
/**
* Original signature :
* PTA* ptaReplicatePattern(PTA*, PIX*, PTA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pta ptaReplicatePattern(Pta ptas, Pix pixp, Pta ptap, int cx, int cy, int w, int h);
/**
* Original signature : PIX* pixDisplayPtaa(PIX*, PTAA*)
*/
public static native Pix pixDisplayPtaa(Pix pixs, Ptaa ptaa);
/**
* Original signature :
* PTA* ptaSort(PTA*, l_int32, l_int32, NUMA**)
*/
public static native Pta ptaSort(Pta ptas, int sorttype, int sortorder, PointerByReference pnaindex);
/**
* Original signature :
* l_ok ptaGetSortIndex(PTA*, l_int32, l_int32, NUMA**)
*/
public static native int ptaGetSortIndex(Pta ptas, int sorttype, int sortorder, PointerByReference pnaindex);
/**
* Original signature : PTA* ptaSortByIndex(PTA*, NUMA*)
*/
public static native Pta ptaSortByIndex(Pta ptas, Numa naindex);
/**
* Original signature : PTAA* ptaaSortByIndex(PTAA*, NUMA*)
*/
public static native Ptaa ptaaSortByIndex(Ptaa ptaas, Numa naindex);
/**
* Original signature :
* l_ok ptaGetRankValue(PTA*, l_float32, PTA*, l_int32, l_float32*)
*/
public static native int ptaGetRankValue(Pta pta, float fract, Pta ptasort, int sorttype, FloatBuffer pval);
/**
* Original signature : PTA* ptaSort2d(PTA*)
*/
public static native Pta ptaSort2d(Pta pta);
/**
* Original signature : l_ok ptaEqual(PTA*, PTA*, l_int32*)
*/
public static native int ptaEqual(Pta pta1, Pta pta2, IntBuffer psame);
/**
* Original signature : PTA* ptaUnionByAset(PTA*, PTA*)
*/
public static native Pta ptaUnionByAset(Pta pta1, Pta pta2);
/**
* Original signature : PTA* ptaRemoveDupsByAset(PTA*)
*/
public static native Pta ptaRemoveDupsByAset(Pta ptas);
/**
* Original signature : PTA* ptaIntersectionByAset(PTA*, PTA*)
*/
public static native Pta ptaIntersectionByAset(Pta pta1, Pta pta2);
/**
* Original signature : L_ASET* l_asetCreateFromPta(PTA*)
*/
public static native L_Rbtree l_asetCreateFromPta(Pta pta);
/**
* Original signature : PTA* ptaUnionByHash(PTA*, PTA*)
*/
public static native Pta ptaUnionByHash(Pta pta1, Pta pta2);
/**
* Original signature :
* l_ok ptaRemoveDupsByHash(PTA*, PTA**, L_DNAHASH**)
*/
public static native int ptaRemoveDupsByHash(Pta ptas, PointerByReference pptad, PointerByReference pdahash);
/**
* Original signature : PTA* ptaIntersectionByHash(PTA*, PTA*)
*/
public static native Pta ptaIntersectionByHash(Pta pta1, Pta pta2);
/**
* Original signature :
* l_ok ptaFindPtByHash(PTA*, L_DNAHASH*, l_int32, l_int32, l_int32*)
*/
public static native int ptaFindPtByHash(Pta pta, L_DnaHash dahash, int x, int y, IntBuffer pindex);
/**
* Original signature : L_DNAHASH* l_dnaHashCreateFromPta(PTA*)
*/
public static native L_DnaHash l_dnaHashCreateFromPta(Pta pta);
/**
* Original signature : L_PTRA* ptraCreate(l_int32)
*/
public static native L_Ptra ptraCreate(int n);
/**
* Original signature :
* void ptraDestroy(L_PTRA**, l_int32, l_int32)
*/
public static native void ptraDestroy(PointerByReference ppa, int freeflag, int warnflag);
/**
* Original signature : l_ok ptraAdd(L_PTRA*, void*)
*/
public static native int ptraAdd(L_Ptra pa, Pointer item);
/**
* Original signature :
* l_ok ptraInsert(L_PTRA*, l_int32, void*, l_int32)
*/
public static native int ptraInsert(L_Ptra pa, int index, Pointer item, int shiftflag);
/**
* Original signature :
* void* ptraRemove(L_PTRA*, l_int32, l_int32)
*/
public static native Pointer ptraRemove(L_Ptra pa, int index, int flag);
/**
* Original signature : void* ptraRemoveLast(L_PTRA*)
*/
public static native Pointer ptraRemoveLast(L_Ptra pa);
/**
* Original signature :
* void* ptraReplace(L_PTRA*, l_int32, void*, l_int32)
*/
public static native Pointer ptraReplace(L_Ptra pa, int index, Pointer item, int freeflag);
/**
* Original signature :
* l_ok ptraSwap(L_PTRA*, l_int32, l_int32)
*/
public static native int ptraSwap(L_Ptra pa, int index1, int index2);
/**
* Original signature : l_ok ptraCompactArray(L_PTRA*)
*/
public static native int ptraCompactArray(L_Ptra pa);
/**
* Original signature : l_ok ptraReverse(L_PTRA*)
*/
public static native int ptraReverse(L_Ptra pa);
/**
* Original signature : l_ok ptraJoin(L_PTRA*, L_PTRA*)
*/
public static native int ptraJoin(L_Ptra pa1, L_Ptra pa2);
/**
* Original signature : l_ok ptraGetMaxIndex(L_PTRA*, l_int32*)
*/
public static native int ptraGetMaxIndex(L_Ptra pa, IntBuffer pmaxindex);
/**
* Original signature :
* l_ok ptraGetActualCount(L_PTRA*, l_int32*)
*/
public static native int ptraGetActualCount(L_Ptra pa, IntBuffer pcount);
/**
* Original signature :
* void* ptraGetPtrToItem(L_PTRA*, l_int32)
*/
public static native Pointer ptraGetPtrToItem(L_Ptra pa, int index);
/**
* Original signature : L_PTRAA* ptraaCreate(l_int32)
*/
public static native L_Ptraa ptraaCreate(int n);
/**
* Original signature :
* void ptraaDestroy(L_PTRAA**, l_int32, l_int32)
*/
public static native void ptraaDestroy(PointerByReference ppaa, int freeflag, int warnflag);
/**
* Original signature : l_ok ptraaGetSize(L_PTRAA*, l_int32*)
*/
public static native int ptraaGetSize(L_Ptraa paa, IntBuffer psize);
/**
* Original signature :
* l_ok ptraaInsertPtra(L_PTRAA*, l_int32, L_PTRA*)
*/
public static native int ptraaInsertPtra(L_Ptraa paa, int index, L_Ptra pa);
/**
* Original signature :
* L_PTRA* ptraaGetPtra(L_PTRAA*, l_int32, l_int32)
*/
public static native L_Ptra ptraaGetPtra(L_Ptraa paa, int index, int accessflag);
/**
* Original signature : L_PTRA* ptraaFlattenToPtra(L_PTRAA*)
*/
public static native L_Ptra ptraaFlattenToPtra(L_Ptraa paa);
/**
* Original signature :
* l_ok pixQuadtreeMean(PIX*, l_int32, PIX*, FPIXA**)
*/
public static native int pixQuadtreeMean(Pix pixs, int nlevels, Pix pix_ma, PointerByReference pfpixa);
/**
* Original signature :
* l_ok pixQuadtreeVariance(PIX*, l_int32, PIX*, DPIX*, FPIXA**, FPIXA**)
*/
public static native int pixQuadtreeVariance(Pix pixs, int nlevels, Pix pix_ma, DPix dpix_msa, PointerByReference pfpixa_v, PointerByReference pfpixa_rv);
/**
* Original signature :
* l_ok pixMeanInRectangle(PIX*, BOX*, PIX*, l_float32*)
*/
public static native int pixMeanInRectangle(Pix pixs, Box box, Pix pixma, FloatBuffer pval);
/**
* Original signature :
* l_ok pixVarianceInRectangle(PIX*, BOX*, PIX*, DPIX*, l_float32*, l_float32*)
*/
public static native int pixVarianceInRectangle(Pix pixs, Box box, Pix pix_ma, DPix dpix_msa, FloatBuffer pvar, FloatBuffer prvar);
/**
* Original signature :
* BOXAA* boxaaQuadtreeRegions(l_int32, l_int32, l_int32)
*/
public static native Boxaa boxaaQuadtreeRegions(int w, int h, int nlevels);
/**
* Original signature :
* l_ok quadtreeGetParent(FPIXA*, l_int32, l_int32, l_int32, l_float32*)
*/
public static native int quadtreeGetParent(FPixa fpixa, int level, int x, int y, FloatBuffer pval);
/**
* Original signature :
* l_ok quadtreeGetChildren(FPIXA*, l_int32, l_int32, l_int32, l_float32*, l_float32*, l_float32*, l_float32*)
*/
public static native int quadtreeGetChildren(FPixa fpixa, int level, int x, int y, FloatBuffer pval00, FloatBuffer pval10, FloatBuffer pval01, FloatBuffer pval11);
/**
* Original signature :
* l_int32 quadtreeMaxLevels(l_int32, l_int32)
*/
public static native int quadtreeMaxLevels(int w, int h);
/**
* Original signature :
* PIX* fpixaDisplayQuadtree(FPIXA*, l_int32, l_int32)
*/
public static native Pix fpixaDisplayQuadtree(FPixa fpixa, int factor, int fontsize);
/**
* Original signature : L_QUEUE* lqueueCreate(l_int32)
*/
public static native L_Queue lqueueCreate(int nalloc);
/**
* Original signature : void lqueueDestroy(L_QUEUE**, l_int32)
*/
public static native void lqueueDestroy(PointerByReference plq, int freeflag);
/**
* Original signature : l_ok lqueueAdd(L_QUEUE*, void*)
*/
public static native int lqueueAdd(L_Queue lq, Pointer item);
/**
* Original signature : void* lqueueRemove(L_QUEUE*)
*/
public static native Pointer lqueueRemove(L_Queue lq);
/**
* Original signature : l_int32 lqueueGetCount(L_QUEUE*)
*/
public static native int lqueueGetCount(L_Queue lq);
/**
* Original signature : l_ok lqueuePrint(FILE*, L_QUEUE*)
*/
public static native int lqueuePrint(FILE fp, L_Queue lq);
/**
* Original signature :
* PIX* pixRankFilter(PIX*, l_int32, l_int32, l_float32)
*/
public static native Pix pixRankFilter(Pix pixs, int wf, int hf, float rank);
/**
* Original signature :
* PIX* pixRankFilterRGB(PIX*, l_int32, l_int32, l_float32)
*/
public static native Pix pixRankFilterRGB(Pix pixs, int wf, int hf, float rank);
/**
* Original signature :
* PIX* pixRankFilterGray(PIX*, l_int32, l_int32, l_float32)
*/
public static native Pix pixRankFilterGray(Pix pixs, int wf, int hf, float rank);
/**
* Original signature :
* PIX* pixMedianFilter(PIX*, l_int32, l_int32)
*/
public static native Pix pixMedianFilter(Pix pixs, int wf, int hf);
/**
* Original signature :
* PIX* pixRankFilterWithScaling(PIX*, l_int32, l_int32, l_float32, l_float32)
*/
public static native Pix pixRankFilterWithScaling(Pix pixs, int wf, int hf, float rank, float scalefactor);
/**
* Original signature : L_RBTREE* l_rbtreeCreate(l_int32)
*/
public static native L_Rbtree l_rbtreeCreate(int keytype);
/**
* Original signature :
* RB_TYPE* l_rbtreeLookup(L_RBTREE*, RB_TYPE)
*/
public static native Rb_Type l_rbtreeLookup(L_Rbtree t, Rb_Type.ByValue key);
/**
* Original signature :
* void l_rbtreeInsert(L_RBTREE*, RB_TYPE, RB_TYPE)
*/
public static native void l_rbtreeInsert(L_Rbtree t, Rb_Type.ByValue key, Rb_Type.ByValue value);
/**
* Original signature : void l_rbtreeDelete(L_RBTREE*, RB_TYPE)
*/
public static native void l_rbtreeDelete(L_Rbtree t, Rb_Type.ByValue key);
/**
* Original signature : void l_rbtreeDestroy(L_RBTREE**)
*/
public static native void l_rbtreeDestroy(PointerByReference pt);
/**
* Original signature :
* L_RBTREE_NODE* l_rbtreeGetFirst(L_RBTREE*)
*/
public static native L_Rbtree_Node l_rbtreeGetFirst(L_Rbtree t);
/**
* Original signature :
* L_RBTREE_NODE* l_rbtreeGetNext(L_RBTREE_NODE*)
*/
public static native L_Rbtree_Node l_rbtreeGetNext(L_Rbtree_Node n);
/**
* Original signature :
* L_RBTREE_NODE* l_rbtreeGetLast(L_RBTREE*)
*/
public static native L_Rbtree_Node l_rbtreeGetLast(L_Rbtree t);
/**
* Original signature :
* L_RBTREE_NODE* l_rbtreeGetPrev(L_RBTREE_NODE*)
*/
public static native L_Rbtree_Node l_rbtreeGetPrev(L_Rbtree_Node n);
/**
* Original signature : l_int32 l_rbtreeGetCount(L_RBTREE*)
*/
public static native int l_rbtreeGetCount(L_Rbtree t);
/**
* Original signature : void l_rbtreePrint(FILE*, L_RBTREE*)
*/
public static native void l_rbtreePrint(FILE fp, L_Rbtree t);
/**
* Original signature :
* SARRAY* pixProcessBarcodes(PIX*, l_int32, l_int32, SARRAY**, l_int32)
*/
public static native Sarray pixProcessBarcodes(Pix pixs, int format, int method, PointerByReference psaw, int debugflag);
/**
* Original signature : PIXA* pixExtractBarcodes(PIX*, l_int32)
*/
public static native Pixa pixExtractBarcodes(Pix pixs, int debugflag);
/**
* Original signature :
* SARRAY* pixReadBarcodes(PIXA*, l_int32, l_int32, SARRAY**, l_int32)
*/
public static native Sarray pixReadBarcodes(Pixa pixa, int format, int method, PointerByReference psaw, int debugflag);
/**
* Original signature :
* NUMA* pixReadBarcodeWidths(PIX*, l_int32, l_int32)
*/
public static native Numa pixReadBarcodeWidths(Pix pixs, int method, int debugflag);
/**
* Original signature :
* BOXA* pixLocateBarcodes(PIX*, l_int32, PIX**, PIX**)
*/
public static native Boxa pixLocateBarcodes(Pix pixs, int thresh, PointerByReference ppixb, PointerByReference ppixm);
/**
* Original signature :
* PIX* pixDeskewBarcode(PIX*, PIX*, BOX*, l_int32, l_int32, l_float32*, l_float32*)
*/
public static native Pix pixDeskewBarcode(Pix pixs, Pix pixb, Box box, int margin, int threshold, FloatBuffer pangle, FloatBuffer pconf);
/**
* Original signature :
* NUMA* pixExtractBarcodeWidths1(PIX*, l_float32, l_float32, NUMA**, NUMA**, l_int32)
*/
public static native Numa pixExtractBarcodeWidths1(Pix pixs, float thresh, float binfract, PointerByReference pnaehist, PointerByReference pnaohist, int debugflag);
/**
* Original signature :
* NUMA* pixExtractBarcodeWidths2(PIX*, l_float32, l_float32*, NUMA**, l_int32)
*/
public static native Numa pixExtractBarcodeWidths2(Pix pixs, float thresh, FloatBuffer pwidth, PointerByReference pnac, int debugflag);
/**
* Original signature :
* NUMA* pixExtractBarcodeWidths2(PIX*, l_float32, l_float32*, NUMA**, l_int32)
*/
public static native Numa pixExtractBarcodeWidths2(Pix pixs, float thresh, FloatByReference pwidth, PointerByReference pnac, int debugflag);
/**
* Original signature :
* NUMA* pixExtractBarcodeCrossings(PIX*, l_float32, l_int32)
*/
public static native Numa pixExtractBarcodeCrossings(Pix pixs, float thresh, int debugflag);
/**
* Original signature :
* NUMA* numaQuantizeCrossingsByWidth(NUMA*, l_float32, NUMA**, NUMA**, l_int32)
*/
public static native Numa numaQuantizeCrossingsByWidth(Numa nas, float binfract, PointerByReference pnaehist, PointerByReference pnaohist, int debugflag);
/**
* Original signature :
* NUMA* numaQuantizeCrossingsByWindow(NUMA*, l_float32, l_float32*, l_float32*, NUMA**, l_int32)
*/
public static native Numa numaQuantizeCrossingsByWindow(Numa nas, float ratio, FloatBuffer pwidth, FloatBuffer pfirstloc, PointerByReference pnac, int debugflag);
/**
* Original signature :
* NUMA* numaQuantizeCrossingsByWindow(NUMA*, l_float32, l_float32*, l_float32*, NUMA**, l_int32)
*/
public static native Numa numaQuantizeCrossingsByWindow(Numa nas, float ratio, FloatByReference pwidth, FloatByReference pfirstloc, PointerByReference pnac, int debugflag);
/**
* Original signature :
* PIXA* pixaReadFiles(const char*, const char*)
*/
public static native Pixa pixaReadFiles(String dirname, String substr);
/**
* Original signature : PIXA* pixaReadFilesSA(SARRAY*)
*/
public static native Pixa pixaReadFilesSA(Sarray sa);
/**
* Original signature : PIX* pixRead(const char*)
*/
public static native Pix pixRead(String filename);
/**
* Original signature :
* PIX* pixReadWithHint(const char*, l_int32)
*/
public static native Pix pixReadWithHint(String filename, int hint);
/**
* Original signature : PIX* pixReadIndexed(SARRAY*, l_int32)
*/
public static native Pix pixReadIndexed(Sarray sa, int index);
/**
* Original signature : PIX* pixReadStream(FILE*, l_int32)
*/
public static native Pix pixReadStream(FILE fp, int hint);
/**
* Original signature :
* l_ok pixReadHeader(const char*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixReadHeader(String filename, IntBuffer pformat, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp, IntBuffer piscmap);
/**
* Original signature :
* l_ok findFileFormat(const char*, l_int32*)
*/
public static native int findFileFormat(String filename, IntBuffer pformat);
/**
* Original signature :
* l_ok findFileFormatStream(FILE*, l_int32*)
*/
public static native int findFileFormatStream(FILE fp, IntBuffer pformat);
/**
* Original signature :
* l_ok findFileFormatBuffer(const l_uint8*, l_int32*)
*/
public static native int findFileFormatBuffer(ByteBuffer buf, IntBuffer pformat);
/**
* Original signature : l_int32 fileFormatIsTiff(FILE*)
*/
public static native int fileFormatIsTiff(FILE fp);
/**
* Original signature : PIX* pixReadMem(const l_uint8*, size_t)
*/
public static native Pix pixReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature :
* l_ok pixReadHeaderMem(const l_uint8*, size_t, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int pixReadHeaderMem(ByteBuffer data, NativeSize size, IntBuffer pformat, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp, IntBuffer piscmap);
/**
* Original signature :
* l_ok writeImageFileInfo(const char*, FILE*, l_int32)
*/
public static native int writeImageFileInfo(String filename, FILE fpout, int headeronly);
/**
* Original signature : l_ok ioFormatTest(const char*)
*/
public static native int ioFormatTest(String filename);
/**
* Original signature :
* L_RECOG* recogCreateFromRecog(L_RECOG*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native L_Recog recogCreateFromRecog(L_Recog recs, int scalew, int scaleh, int linew, int threshold, int maxyshift);
/**
* Original signature :
* L_RECOG* recogCreateFromPixa(PIXA*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native L_Recog recogCreateFromPixa(Pixa pixa, int scalew, int scaleh, int linew, int threshold, int maxyshift);
/**
* Original signature :
* L_RECOG* recogCreateFromPixaNoFinish(PIXA*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native L_Recog recogCreateFromPixaNoFinish(Pixa pixa, int scalew, int scaleh, int linew, int threshold, int maxyshift);
/**
* Original signature :
* L_RECOG* recogCreate(l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native L_Recog recogCreate(int scalew, int scaleh, int linew, int threshold, int maxyshift);
/**
* Original signature : void recogDestroy(L_RECOG**)
*/
public static native void recogDestroy(PointerByReference precog);
/**
* Original signature : l_int32 recogGetCount(L_RECOG*)
*/
public static native int recogGetCount(L_Recog recog);
/**
* Original signature :
* l_ok recogSetParams(L_RECOG*, l_int32, l_int32, l_float32, l_float32)
*/
public static native int recogSetParams(L_Recog recog, int type, int min_nopad, float max_wh_ratio, float max_ht_ratio);
/**
* Original signature :
* l_int32 recogGetClassIndex(L_RECOG*, l_int32, char*, l_int32*)
*/
public static native int recogGetClassIndex(L_Recog recog, int val, ByteBuffer text, IntBuffer pindex);
/**
* Original signature :
* l_ok recogStringToIndex(L_RECOG*, char*, l_int32*)
*/
public static native int recogStringToIndex(L_Recog recog, ByteBuffer text, IntBuffer pindex);
/**
* Original signature :
* l_int32 recogGetClassString(L_RECOG*, l_int32, char**)
*/
public static native int recogGetClassString(L_Recog recog, int index, PointerByReference pcharstr);
/**
* Original signature :
* l_ok l_convertCharstrToInt(const char*, l_int32*)
*/
public static native int l_convertCharstrToInt(String str, IntBuffer pval);
/**
* Original signature : L_RECOG* recogRead(const char*)
*/
public static native L_Recog recogRead(String filename);
/**
* Original signature : L_RECOG* recogReadStream(FILE*)
*/
public static native L_Recog recogReadStream(FILE fp);
/**
* Original signature :
* L_RECOG* recogReadMem(const l_uint8*, size_t)
*/
public static native L_Recog recogReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok recogWrite(const char*, L_RECOG*)
*/
public static native int recogWrite(String filename, L_Recog recog);
/**
* Original signature : l_ok recogWriteStream(FILE*, L_RECOG*)
*/
public static native int recogWriteStream(FILE fp, L_Recog recog);
/**
* Original signature :
* l_ok recogWriteMem(l_uint8**, size_t*, L_RECOG*)
*/
public static native int recogWriteMem(PointerByReference pdata, NativeSizeByReference psize, L_Recog recog);
/**
* Original signature : PIXA* recogExtractPixa(L_RECOG*)
*/
public static native Pixa recogExtractPixa(L_Recog recog);
/**
* Original signature :
* BOXA* recogDecode(L_RECOG*, PIX*, l_int32, PIX**)
*/
public static native Boxa recogDecode(L_Recog recog, Pix pixs, int nlevels, PointerByReference ppixdb);
/**
* Original signature : l_ok recogCreateDid(L_RECOG*, PIX*)
*/
public static native int recogCreateDid(L_Recog recog, Pix pixs);
/**
* Original signature : l_ok recogDestroyDid(L_RECOG*)
*/
public static native int recogDestroyDid(L_Recog recog);
/**
* Original signature : l_int32 recogDidExists(L_RECOG*)
*/
public static native int recogDidExists(L_Recog recog);
/**
* Original signature : L_RDID* recogGetDid(L_RECOG*)
*/
public static native L_Rdid recogGetDid(L_Recog recog);
/**
* Original signature :
* l_ok recogSetChannelParams(L_RECOG*, l_int32)
*/
public static native int recogSetChannelParams(L_Recog recog, int nlevels);
/**
* Original signature :
* l_ok recogIdentifyMultiple(L_RECOG*, PIX*, l_int32, l_int32, BOXA**, PIXA**, PIX**, l_int32)
*/
public static native int recogIdentifyMultiple(L_Recog recog, Pix pixs, int minh, int skipsplit, PointerByReference pboxa, PointerByReference ppixa, PointerByReference ppixdb, int debugsplit);
/**
* Original signature :
* l_ok recogSplitIntoCharacters(L_RECOG*, PIX*, l_int32, l_int32, BOXA**, PIXA**, l_int32)
*/
public static native int recogSplitIntoCharacters(L_Recog recog, Pix pixs, int minh, int skipsplit, PointerByReference pboxa, PointerByReference ppixa, int debug);
/**
* Original signature :
* l_ok recogCorrelationBestRow(L_RECOG*, PIX*, BOXA**, NUMA**, NUMA**, SARRAY**, l_int32)
*/
public static native int recogCorrelationBestRow(L_Recog recog, Pix pixs, PointerByReference pboxa, PointerByReference pnascore, PointerByReference pnaindex, PointerByReference psachar, int debug);
/**
* Original signature :
* l_ok recogCorrelationBestChar(L_RECOG*, PIX*, BOX**, l_float32*, l_int32*, char**, PIX**)
*/
public static native int recogCorrelationBestChar(L_Recog recog, Pix pixs, PointerByReference pbox, FloatBuffer pscore, IntBuffer pindex, PointerByReference pcharstr, PointerByReference ppixdb);
/**
* Original signature :
* l_ok recogCorrelationBestChar(L_RECOG*, PIX*, BOX**, l_float32*, l_int32*, char**, PIX**)
*/
public static native int recogCorrelationBestChar(L_Recog recog, Pix pixs, PointerByReference pbox, FloatByReference pscore, IntByReference pindex, PointerByReference pcharstr, PointerByReference ppixdb);
/**
* Original signature :
* l_ok recogIdentifyPixa(L_RECOG*, PIXA*, PIX**)
*/
public static native int recogIdentifyPixa(L_Recog recog, Pixa pixa, PointerByReference ppixdb);
/**
* Original signature :
* l_ok recogIdentifyPix(L_RECOG*, PIX*, PIX**)
*/
public static native int recogIdentifyPix(L_Recog recog, Pix pixs, PointerByReference ppixdb);
/**
* Original signature : l_ok recogSkipIdentify(L_RECOG*)
*/
public static native int recogSkipIdentify(L_Recog recog);
/**
* Original signature : void rchaDestroy(L_RCHA**)
*/
public static native void rchaDestroy(PointerByReference prcha);
/**
* Original signature : void rchDestroy(L_RCH**)
*/
public static native void rchDestroy(PointerByReference prch);
/**
* Original signature :
* l_ok rchaExtract(L_RCHA*, NUMA**, NUMA**, SARRAY**, NUMA**, NUMA**, NUMA**, NUMA**)
*/
public static native int rchaExtract(L_Rcha rcha, PointerByReference pnaindex, PointerByReference pnascore, PointerByReference psatext, PointerByReference pnasample, PointerByReference pnaxloc, PointerByReference pnayloc, PointerByReference pnawidth);
/**
* Original signature :
* l_ok rchExtract(L_RCH*, l_int32*, l_float32*, char**, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int rchExtract(L_Rch rch, IntBuffer pindex, FloatBuffer pscore, PointerByReference ptext, IntBuffer psample, IntBuffer pxloc, IntBuffer pyloc, IntBuffer pwidth);
/**
* Original signature :
* PIX* recogProcessToIdentify(L_RECOG*, PIX*, l_int32)
*/
public static native Pix recogProcessToIdentify(L_Recog recog, Pix pixs, int pad);
/**
* Original signature :
* SARRAY* recogExtractNumbers(L_RECOG*, BOXA*, l_float32, l_int32, BOXAA**, NUMAA**)
*/
public static native Sarray recogExtractNumbers(L_Recog recog, Boxa boxas, float scorethresh, int spacethresh, PointerByReference pbaa, PointerByReference pnaa);
/**
* Original signature :
* PIXA* showExtractNumbers(PIX*, SARRAY*, BOXAA*, NUMAA*, PIX**)
*/
public static native Pixa showExtractNumbers(Pix pixs, Sarray sa, Boxaa baa, Numaa naa, PointerByReference ppixdb);
/**
* Original signature :
* l_ok recogTrainLabeled(L_RECOG*, PIX*, BOX*, char*, l_int32)
*/
public static native int recogTrainLabeled(L_Recog recog, Pix pixs, Box box, ByteBuffer text, int debug);
/**
* Original signature :
* l_ok recogProcessLabeled(L_RECOG*, PIX*, BOX*, char*, PIX**)
*/
public static native int recogProcessLabeled(L_Recog recog, Pix pixs, Box box, ByteBuffer text, PointerByReference ppix);
/**
* Original signature :
* l_ok recogProcessLabeled(L_RECOG*, PIX*, BOX*, char*, PIX**)
*/
public static native int recogProcessLabeled(L_Recog recog, Pix pixs, Box box, Pointer text, PointerByReference ppix);
/**
* Original signature :
* l_ok recogAddSample(L_RECOG*, PIX*, l_int32)
*/
public static native int recogAddSample(L_Recog recog, Pix pix, int debug);
/**
* Original signature :
* PIX* recogModifyTemplate(L_RECOG*, PIX*)
*/
public static native Pix recogModifyTemplate(L_Recog recog, Pix pixs);
/**
* Original signature :
* l_int32 recogAverageSamples(L_RECOG**, l_int32)
*/
public static native int recogAverageSamples(PointerByReference precog, int debug);
/**
* Original signature :
* l_int32 pixaAccumulateSamples(PIXA*, PTA*, PIX**, l_float32*, l_float32*)
*/
public static native int pixaAccumulateSamples(Pixa pixa, Pta pta, PointerByReference ppixd, FloatBuffer px, FloatBuffer py);
/**
* Original signature :
* l_int32 pixaAccumulateSamples(PIXA*, PTA*, PIX**, l_float32*, l_float32*)
*/
public static native int pixaAccumulateSamples(Pixa pixa, Pta pta, PointerByReference ppixd, FloatByReference px, FloatByReference py);
/**
* Original signature :
* l_ok recogTrainingFinished(L_RECOG**, l_int32, l_int32, l_float32)
*/
public static native int recogTrainingFinished(PointerByReference precog, int modifyflag, int minsize, float minfract);
/**
* Original signature :
* PIXA* recogFilterPixaBySize(PIXA*, l_int32, l_int32, l_float32, NUMA**)
*/
public static native Pixa recogFilterPixaBySize(Pixa pixas, int setsize, int maxkeep, float max_ht_ratio, PointerByReference pna);
/**
* Original signature :
* PIXAA* recogSortPixaByClass(PIXA*, l_int32)
*/
public static native Pixaa recogSortPixaByClass(Pixa pixa, int setsize);
/**
* Original signature :
* l_ok recogRemoveOutliers1(L_RECOG**, l_float32, l_int32, l_int32, PIX**, PIX**)
*/
public static native int recogRemoveOutliers1(PointerByReference precog, float minscore, int mintarget, int minsize, PointerByReference ppixsave, PointerByReference ppixrem);
/**
* Original signature :
* PIXA* pixaRemoveOutliers1(PIXA*, l_float32, l_int32, l_int32, PIX**, PIX**)
*/
public static native Pixa pixaRemoveOutliers1(Pixa pixas, float minscore, int mintarget, int minsize, PointerByReference ppixsave, PointerByReference ppixrem);
/**
* Original signature :
* l_ok recogRemoveOutliers2(L_RECOG**, l_float32, l_int32, PIX**, PIX**)
*/
public static native int recogRemoveOutliers2(PointerByReference precog, float minscore, int minsize, PointerByReference ppixsave, PointerByReference ppixrem);
/**
* Original signature :
* PIXA* pixaRemoveOutliers2(PIXA*, l_float32, l_int32, PIX**, PIX**)
*/
public static native Pixa pixaRemoveOutliers2(Pixa pixas, float minscore, int minsize, PointerByReference ppixsave, PointerByReference ppixrem);
/**
* Original signature :
* PIXA* recogTrainFromBoot(L_RECOG*, PIXA*, l_float32, l_int32, l_int32)
*/
public static native Pixa recogTrainFromBoot(L_Recog recogboot, Pixa pixas, float minscore, int threshold, int debug);
/**
* Original signature :
* l_ok recogPadDigitTrainingSet(L_RECOG**, l_int32, l_int32)
*/
public static native int recogPadDigitTrainingSet(PointerByReference precog, int scaleh, int linew);
/**
* Original signature :
* l_int32 recogIsPaddingNeeded(L_RECOG*, SARRAY**)
*/
public static native int recogIsPaddingNeeded(L_Recog recog, PointerByReference psa);
/**
* Original signature :
* PIXA* recogAddDigitPadTemplates(L_RECOG*, SARRAY*)
*/
public static native Pixa recogAddDigitPadTemplates(L_Recog recog, Sarray sa);
/**
* Original signature :
* L_RECOG* recogMakeBootDigitRecog(l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native L_Recog recogMakeBootDigitRecog(int nsamp, int scaleh, int linew, int maxyshift, int debug);
/**
* Original signature :
* PIXA* recogMakeBootDigitTemplates(l_int32, l_int32)
*/
public static native Pixa recogMakeBootDigitTemplates(int nsamp, int debug);
/**
* Original signature :
* l_ok recogShowContent(FILE*, L_RECOG*, l_int32, l_int32)
*/
public static native int recogShowContent(FILE fp, L_Recog recog, int index, int display);
/**
* Original signature :
* l_ok recogDebugAverages(L_RECOG**, l_int32)
*/
public static native int recogDebugAverages(PointerByReference precog, int debug);
/**
* Original signature :
* l_int32 recogShowAverageTemplates(L_RECOG*)
*/
public static native int recogShowAverageTemplates(L_Recog recog);
/**
* Original signature :
* l_ok recogShowMatchesInRange(L_RECOG*, PIXA*, l_float32, l_float32, l_int32)
*/
public static native int recogShowMatchesInRange(L_Recog recog, Pixa pixa, float minscore, float maxscore, int display);
/**
* Original signature :
* PIX* recogShowMatch(L_RECOG*, PIX*, PIX*, BOX*, l_int32, l_float32)
*/
public static native Pix recogShowMatch(L_Recog recog, Pix pix1, Pix pix2, Box box, int index, float score);
/**
* Original signature :
* l_ok regTestSetup(l_int32, char**, L_REGPARAMS**)
*/
public static native int regTestSetup(int argc, PointerByReference argv, PointerByReference prp);
/**
* Original signature : l_ok regTestCleanup(L_REGPARAMS*)
*/
public static native int regTestCleanup(L_RegParams rp);
/**
* Original signature :
* l_ok regTestCompareValues(L_REGPARAMS*, l_float32, l_float32, l_float32)
*/
public static native int regTestCompareValues(L_RegParams rp, float val1, float val2, float delta);
/**
* Original signature :
* l_ok regTestCompareStrings(L_REGPARAMS*, l_uint8*, size_t, l_uint8*, size_t)
*/
public static native int regTestCompareStrings(L_RegParams rp, ByteBuffer string1, NativeSize bytes1, ByteBuffer string2, NativeSize bytes2);
/**
* Original signature :
* l_ok regTestComparePix(L_REGPARAMS*, PIX*, PIX*)
*/
public static native int regTestComparePix(L_RegParams rp, Pix pix1, Pix pix2);
/**
* Original signature :
* l_ok regTestCompareSimilarPix(L_REGPARAMS*, PIX*, PIX*, l_int32, l_float32, l_int32)
*/
public static native int regTestCompareSimilarPix(L_RegParams rp, Pix pix1, Pix pix2, int mindiff, float maxfract, int printstats);
/**
* Original signature :
* l_ok regTestCheckFile(L_REGPARAMS*, const char*)
*/
public static native int regTestCheckFile(L_RegParams rp, String localname);
/**
* Original signature :
* l_ok regTestCompareFiles(L_REGPARAMS*, l_int32, l_int32)
*/
public static native int regTestCompareFiles(L_RegParams rp, int index1, int index2);
/**
* Original signature :
* l_ok regTestWritePixAndCheck(L_REGPARAMS*, PIX*, l_int32)
*/
public static native int regTestWritePixAndCheck(L_RegParams rp, Pix pix, int format);
/**
* Original signature :
* l_ok regTestWriteDataAndCheck(L_REGPARAMS*, void*, size_t, const char*)
*/
public static native int regTestWriteDataAndCheck(L_RegParams rp, Pointer data, NativeSize nbytes, String ext);
/**
* Original signature :
* char* regTestGenLocalFilename(L_REGPARAMS*, l_int32, l_int32)
*/
public static native Pointer regTestGenLocalFilename(L_RegParams rp, int index, int format);
/**
* Original signature :
* l_ok pixRasterop(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, PIX*, l_int32, l_int32)
*/
public static native int pixRasterop(Pix pixd, int dx, int dy, int dw, int dh, int op, Pix pixs, int sx, int sy);
/**
* Original signature :
* l_ok pixRasteropVip(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixRasteropVip(Pix pixd, int bx, int bw, int vshift, int incolor);
/**
* Original signature :
* l_ok pixRasteropHip(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixRasteropHip(Pix pixd, int by, int bh, int hshift, int incolor);
/**
* Original signature :
* PIX* pixTranslate(PIX*, PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixTranslate(Pix pixd, Pix pixs, int hshift, int vshift, int incolor);
/**
* Original signature :
* l_ok pixRasteropIP(PIX*, l_int32, l_int32, l_int32)
*/
public static native int pixRasteropIP(Pix pixd, int hshift, int vshift, int incolor);
/**
* Original signature :
* l_ok pixRasteropFullImage(PIX*, PIX*, l_int32)
*/
public static native int pixRasteropFullImage(Pix pixd, Pix pixs, int op);
/**
* Original signature :
* void rasteropUniLow(l_uint32*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native void rasteropUniLow(IntBuffer datad, int dpixw, int dpixh, int depth, int dwpl, int dx, int dy, int dw, int dh, int op);
/**
* Original signature :
* void rasteropLow(l_uint32*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_uint32*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native void rasteropLow(IntBuffer datad, int dpixw, int dpixh, int depth, int dwpl, int dx, int dy, int dw, int dh, int op, IntBuffer datas, int spixw, int spixh, int swpl, int sx, int sy);
/**
* Original signature :
* void rasteropVipLow(l_uint32*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native void rasteropVipLow(IntBuffer data, int pixw, int pixh, int depth, int wpl, int x, int w, int shift);
/**
* Original signature :
* void rasteropHipLow(l_uint32*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native void rasteropHipLow(IntBuffer data, int pixh, int depth, int wpl, int y, int h, int shift);
/**
* Original signature :
* PIX* pixRotate(PIX*, l_float32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixRotate(Pix pixs, float angle, int type, int incolor, int width, int height);
/**
* Original signature :
* PIX* pixEmbedForRotation(PIX*, l_float32, l_int32, l_int32, l_int32)
*/
public static native Pix pixEmbedForRotation(Pix pixs, float angle, int incolor, int width, int height);
/**
* Original signature :
* PIX* pixRotateBySampling(PIX*, l_int32, l_int32, l_float32, l_int32)
*/
public static native Pix pixRotateBySampling(Pix pixs, int xcen, int ycen, float angle, int incolor);
/**
* Original signature :
* PIX* pixRotateBinaryNice(PIX*, l_float32, l_int32)
*/
public static native Pix pixRotateBinaryNice(Pix pixs, float angle, int incolor);
/**
* Original signature :
* PIX* pixRotateWithAlpha(PIX*, l_float32, PIX*, l_float32)
*/
public static native Pix pixRotateWithAlpha(Pix pixs, float angle, Pix pixg, float fract);
/**
* Original signature :
* PIX* pixRotateAM(PIX*, l_float32, l_int32)
*/
public static native Pix pixRotateAM(Pix pixs, float angle, int incolor);
/**
* Original signature :
* PIX* pixRotateAMColor(PIX*, l_float32, l_uint32)
*/
public static native Pix pixRotateAMColor(Pix pixs, float angle, int colorval);
/**
* Original signature :
* PIX* pixRotateAMGray(PIX*, l_float32, l_uint8)
*/
public static native Pix pixRotateAMGray(Pix pixs, float angle, byte grayval);
/**
* Original signature :
* PIX* pixRotateAMCorner(PIX*, l_float32, l_int32)
*/
public static native Pix pixRotateAMCorner(Pix pixs, float angle, int incolor);
/**
* Original signature :
* PIX* pixRotateAMColorCorner(PIX*, l_float32, l_uint32)
*/
public static native Pix pixRotateAMColorCorner(Pix pixs, float angle, int fillval);
/**
* Original signature :
* PIX* pixRotateAMGrayCorner(PIX*, l_float32, l_uint8)
*/
public static native Pix pixRotateAMGrayCorner(Pix pixs, float angle, byte grayval);
/**
* Original signature :
* PIX* pixRotateAMColorFast(PIX*, l_float32, l_uint32)
*/
public static native Pix pixRotateAMColorFast(Pix pixs, float angle, int colorval);
/**
* Original signature : PIX* pixRotateOrth(PIX*, l_int32)
*/
public static native Pix pixRotateOrth(Pix pixs, int quads);
/**
* Original signature : PIX* pixRotate180(PIX*, PIX*)
*/
public static native Pix pixRotate180(Pix pixd, Pix pixs);
/**
* Original signature : PIX* pixRotate90(PIX*, l_int32)
*/
public static native Pix pixRotate90(Pix pixs, int direction);
/**
* Original signature : PIX* pixFlipLR(PIX*, PIX*)
*/
public static native Pix pixFlipLR(Pix pixd, Pix pixs);
/**
* Original signature : PIX* pixFlipTB(PIX*, PIX*)
*/
public static native Pix pixFlipTB(Pix pixd, Pix pixs);
/**
* Original signature :
* PIX* pixRotateShear(PIX*, l_int32, l_int32, l_float32, l_int32)
*/
public static native Pix pixRotateShear(Pix pixs, int xcen, int ycen, float angle, int incolor);
/**
* Original signature :
* PIX* pixRotate2Shear(PIX*, l_int32, l_int32, l_float32, l_int32)
*/
public static native Pix pixRotate2Shear(Pix pixs, int xcen, int ycen, float angle, int incolor);
/**
* Original signature :
* PIX* pixRotate3Shear(PIX*, l_int32, l_int32, l_float32, l_int32)
*/
public static native Pix pixRotate3Shear(Pix pixs, int xcen, int ycen, float angle, int incolor);
/**
* Original signature :
* l_ok pixRotateShearIP(PIX*, l_int32, l_int32, l_float32, l_int32)
*/
public static native int pixRotateShearIP(Pix pixs, int xcen, int ycen, float angle, int incolor);
/**
* Original signature :
* PIX* pixRotateShearCenter(PIX*, l_float32, l_int32)
*/
public static native Pix pixRotateShearCenter(Pix pixs, float angle, int incolor);
/**
* Original signature :
* l_ok pixRotateShearCenterIP(PIX*, l_float32, l_int32)
*/
public static native int pixRotateShearCenterIP(Pix pixs, float angle, int incolor);
/**
* Original signature :
* PIX* pixStrokeWidthTransform(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixStrokeWidthTransform(Pix pixs, int color, int depth, int nangles);
/**
* Original signature :
* PIX* pixRunlengthTransform(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixRunlengthTransform(Pix pixs, int color, int direction, int depth);
/**
* Original signature :
* l_ok pixFindHorizontalRuns(PIX*, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int pixFindHorizontalRuns(Pix pix, int y, IntBuffer xstart, IntBuffer xend, IntBuffer pn);
/**
* Original signature :
* l_ok pixFindVerticalRuns(PIX*, l_int32, l_int32*, l_int32*, l_int32*)
*/
public static native int pixFindVerticalRuns(Pix pix, int x, IntBuffer ystart, IntBuffer yend, IntBuffer pn);
/**
* Original signature :
* NUMA* pixFindMaxRuns(PIX*, l_int32, NUMA**)
*/
public static native Numa pixFindMaxRuns(Pix pix, int direction, PointerByReference pnastart);
/**
* Original signature :
* l_ok pixFindMaxHorizontalRunOnLine(PIX*, l_int32, l_int32*, l_int32*)
*/
public static native int pixFindMaxHorizontalRunOnLine(Pix pix, int y, IntBuffer pxstart, IntBuffer psize);
/**
* Original signature :
* l_ok pixFindMaxVerticalRunOnLine(PIX*, l_int32, l_int32*, l_int32*)
*/
public static native int pixFindMaxVerticalRunOnLine(Pix pix, int x, IntBuffer pystart, IntBuffer psize);
/**
* Original signature :
* l_ok runlengthMembershipOnLine(l_int32*, l_int32, l_int32, l_int32*, l_int32*, l_int32)
*/
public static native int runlengthMembershipOnLine(IntBuffer buffer, int size, int depth, IntBuffer start, IntBuffer end, int n);
/**
* Original signature : l_int32* makeMSBitLocTab(l_int32)
*/
public static native IntByReference makeMSBitLocTab(int bitval);
/**
* Original signature : SARRAY* sarrayCreate(l_int32)
*/
public static native Sarray sarrayCreate(int n);
/**
* Original signature :
* SARRAY* sarrayCreateInitialized(l_int32, const char*)
*/
public static native Sarray sarrayCreateInitialized(int n, String initstr);
/**
* Original signature :
* SARRAY* sarrayCreateWordsFromString(const char*)
*/
public static native Sarray sarrayCreateWordsFromString(String string);
/**
* Original signature :
* SARRAY* sarrayCreateLinesFromString(const char*, l_int32)
*/
public static native Sarray sarrayCreateLinesFromString(String string, int blankflag);
/**
* Original signature : void sarrayDestroy(SARRAY**)
*/
public static native void sarrayDestroy(PointerByReference psa);
/**
* Original signature : SARRAY* sarrayCopy(SARRAY*)
*/
public static native Sarray sarrayCopy(Sarray sa);
/**
* Original signature : SARRAY* sarrayClone(SARRAY*)
*/
public static native Sarray sarrayClone(Sarray sa);
/**
* Original signature :
* l_ok sarrayAddString(SARRAY*, const char*, l_int32)
*/
public static native int sarrayAddString(Sarray sa, String string, int copyflag);
/**
* Original signature :
* char* sarrayRemoveString(SARRAY*, l_int32)
*/
public static native Pointer sarrayRemoveString(Sarray sa, int index);
/**
* Original signature :
* l_ok sarrayReplaceString(SARRAY*, l_int32, char*, l_int32)
*/
public static native int sarrayReplaceString(Sarray sa, int index, ByteBuffer newstr, int copyflag);
/**
* Original signature : l_ok sarrayClear(SARRAY*)
*/
public static native int sarrayClear(Sarray sa);
/**
* Original signature : l_int32 sarrayGetCount(SARRAY*)
*/
public static native int sarrayGetCount(Sarray sa);
/**
* Original signature :
* char** sarrayGetArray(SARRAY*, l_int32*, l_int32*)
*/
public static native PointerByReference sarrayGetArray(Sarray sa, IntBuffer pnalloc, IntBuffer pn);
/**
* Original signature :
* char* sarrayGetString(SARRAY*, l_int32, l_int32)
*/
public static native Pointer sarrayGetString(Sarray sa, int index, int copyflag);
/**
* Original signature : l_int32 sarrayGetRefcount(SARRAY*)
*/
public static native int sarrayGetRefcount(Sarray sa);
/**
* Original signature :
* l_ok sarrayChangeRefcount(SARRAY*, l_int32)
*/
public static native int sarrayChangeRefcount(Sarray sa, int delta);
/**
* Original signature : char* sarrayToString(SARRAY*, l_int32)
*/
public static native Pointer sarrayToString(Sarray sa, int addnlflag);
/**
* Original signature :
* char* sarrayToStringRange(SARRAY*, l_int32, l_int32, l_int32)
*/
public static native Pointer sarrayToStringRange(Sarray sa, int first, int nstrings, int addnlflag);
/**
* Original signature : l_ok sarrayJoin(SARRAY*, SARRAY*)
*/
public static native int sarrayJoin(Sarray sa1, Sarray sa2);
/**
* Original signature :
* l_ok sarrayAppendRange(SARRAY*, SARRAY*, l_int32, l_int32)
*/
public static native int sarrayAppendRange(Sarray sa1, Sarray sa2, int start, int end);
/**
* Original signature :
* l_ok sarrayPadToSameSize(SARRAY*, SARRAY*, const char*)
*/
public static native int sarrayPadToSameSize(Sarray sa1, Sarray sa2, String padstring);
/**
* Original signature :
* SARRAY* sarrayConvertWordsToLines(SARRAY*, l_int32)
*/
public static native Sarray sarrayConvertWordsToLines(Sarray sa, int linesize);
/**
* Original signature :
* l_int32 sarraySplitString(SARRAY*, const char*, const char*)
*/
public static native int sarraySplitString(Sarray sa, String str, String separators);
/**
* Original signature :
* SARRAY* sarraySelectBySubstring(SARRAY*, const char*)
*/
public static native Sarray sarraySelectBySubstring(Sarray sain, String substr);
/**
* Original signature :
* SARRAY* sarraySelectByRange(SARRAY*, l_int32, l_int32)
*/
public static native Sarray sarraySelectByRange(Sarray sain, int first, int last);
/**
* Original signature :
* l_int32 sarrayParseRange(SARRAY*, l_int32, l_int32*, l_int32*, l_int32*, const char*, l_int32)
*/
public static native int sarrayParseRange(Sarray sa, int start, IntBuffer pactualstart, IntBuffer pend, IntBuffer pnewstart, String substr, int loc);
/**
* Original signature : SARRAY* sarrayRead(const char*)
*/
public static native Sarray sarrayRead(String filename);
/**
* Original signature : SARRAY* sarrayReadStream(FILE*)
*/
public static native Sarray sarrayReadStream(FILE fp);
/**
* Original signature :
* SARRAY* sarrayReadMem(const l_uint8*, size_t)
*/
public static native Sarray sarrayReadMem(ByteBuffer data, NativeSize size);
/**
* Original signature : l_ok sarrayWrite(const char*, SARRAY*)
*/
public static native int sarrayWrite(String filename, Sarray sa);
/**
* Original signature : l_ok sarrayWriteStream(FILE*, SARRAY*)
*/
public static native int sarrayWriteStream(FILE fp, Sarray sa);
/**
* Original signature :
* l_ok sarrayWriteMem(l_uint8**, size_t*, SARRAY*)
*/
public static native int sarrayWriteMem(PointerByReference pdata, NativeSizeByReference psize, Sarray sa);
/**
* Original signature : l_ok sarrayAppend(const char*, SARRAY*)
*/
public static native int sarrayAppend(String filename, Sarray sa);
/**
* Original signature :
* SARRAY* getNumberedPathnamesInDirectory(const char*, const char*, l_int32, l_int32, l_int32)
*/
public static native Sarray getNumberedPathnamesInDirectory(String dirname, String substr, int numpre, int numpost, int maxnum);
/**
* Original signature :
* SARRAY* getSortedPathnamesInDirectory(const char*, const char*, l_int32, l_int32)
*/
public static native Sarray getSortedPathnamesInDirectory(String dirname, String substr, int first, int nfiles);
/**
* Original signature :
* SARRAY* convertSortedToNumberedPathnames(SARRAY*, l_int32, l_int32, l_int32)
*/
public static native Sarray convertSortedToNumberedPathnames(Sarray sa, int numpre, int numpost, int maxnum);
/**
* Original signature :
* SARRAY* getFilenamesInDirectory(const char*)
*/
public static native Sarray getFilenamesInDirectory(String dirname);
/**
* Original signature :
* SARRAY* sarraySort(SARRAY*, SARRAY*, l_int32)
*/
public static native Sarray sarraySort(Sarray saout, Sarray sain, int sortorder);
/**
* Original signature :
* SARRAY* sarraySortByIndex(SARRAY*, NUMA*)
*/
public static native Sarray sarraySortByIndex(Sarray sain, Numa naindex);
/**
* Original signature :
* l_int32 stringCompareLexical(const char*, const char*)
*/
public static native int stringCompareLexical(String str1, String str2);
/**
* Original signature :
* SARRAY* sarrayUnionByAset(SARRAY*, SARRAY*)
*/
public static native Sarray sarrayUnionByAset(Sarray sa1, Sarray sa2);
/**
* Original signature : SARRAY* sarrayRemoveDupsByAset(SARRAY*)
*/
public static native Sarray sarrayRemoveDupsByAset(Sarray sas);
/**
* Original signature :
* SARRAY* sarrayIntersectionByAset(SARRAY*, SARRAY*)
*/
public static native Sarray sarrayIntersectionByAset(Sarray sa1, Sarray sa2);
/**
* Original signature : L_ASET* l_asetCreateFromSarray(SARRAY*)
*/
public static native L_Rbtree l_asetCreateFromSarray(Sarray sa);
/**
* Original signature :
* l_ok sarrayRemoveDupsByHash(SARRAY*, SARRAY**, L_DNAHASH**)
*/
public static native int sarrayRemoveDupsByHash(Sarray sas, PointerByReference psad, PointerByReference pdahash);
/**
* Original signature :
* SARRAY* sarrayIntersectionByHash(SARRAY*, SARRAY*)
*/
public static native Sarray sarrayIntersectionByHash(Sarray sa1, Sarray sa2);
/**
* Original signature :
* l_ok sarrayFindStringByHash(SARRAY*, L_DNAHASH*, const char*, l_int32*)
*/
public static native int sarrayFindStringByHash(Sarray sa, L_DnaHash dahash, String str, IntBuffer pindex);
/**
* Original signature :
* L_DNAHASH* l_dnaHashCreateFromSarray(SARRAY*)
*/
public static native L_DnaHash l_dnaHashCreateFromSarray(Sarray sa);
/**
* Original signature : SARRAY* sarrayGenerateIntegers(l_int32)
*/
public static native Sarray sarrayGenerateIntegers(int n);
/**
* Original signature :
* l_ok sarrayLookupCSKV(SARRAY*, const char*, char**)
*/
public static native int sarrayLookupCSKV(Sarray sa, String keystring, PointerByReference pvalstring);
/**
* Original signature :
* PIX* pixScale(PIX*, l_float32, l_float32)
*/
public static native Pix pixScale(Pix pixs, float scalex, float scaley);
/**
* Original signature :
* PIX* pixScaleToSizeRel(PIX*, l_int32, l_int32)
*/
public static native Pix pixScaleToSizeRel(Pix pixs, int delw, int delh);
/**
* Original signature :
* PIX* pixScaleToSize(PIX*, l_int32, l_int32)
*/
public static native Pix pixScaleToSize(Pix pixs, int wd, int hd);
/**
* Original signature :
* PIX* pixScaleToResolution(PIX*, l_float32, l_float32, l_float32*)
*/
public static native Pix pixScaleToResolution(Pix pixs, float target, float assumed, FloatBuffer pscalefact);
/**
* Original signature :
* PIX* pixScaleGeneral(PIX*, l_float32, l_float32, l_float32, l_int32)
*/
public static native Pix pixScaleGeneral(Pix pixs, float scalex, float scaley, float sharpfract, int sharpwidth);
/**
* Original signature :
* PIX* pixScaleLI(PIX*, l_float32, l_float32)
*/
public static native Pix pixScaleLI(Pix pixs, float scalex, float scaley);
/**
* Original signature :
* PIX* pixScaleColorLI(PIX*, l_float32, l_float32)
*/
public static native Pix pixScaleColorLI(Pix pixs, float scalex, float scaley);
/**
* Original signature : PIX* pixScaleColor2xLI(PIX*)
*/
public static native Pix pixScaleColor2xLI(Pix pixs);
/**
* Original signature : PIX* pixScaleColor4xLI(PIX*)
*/
public static native Pix pixScaleColor4xLI(Pix pixs);
/**
* Original signature :
* PIX* pixScaleGrayLI(PIX*, l_float32, l_float32)
*/
public static native Pix pixScaleGrayLI(Pix pixs, float scalex, float scaley);
/**
* Original signature : PIX* pixScaleGray2xLI(PIX*)
*/
public static native Pix pixScaleGray2xLI(Pix pixs);
/**
* Original signature : PIX* pixScaleGray4xLI(PIX*)
*/
public static native Pix pixScaleGray4xLI(Pix pixs);
/**
* Original signature :
* PIX* pixScaleGray2xLIThresh(PIX*, l_int32)
*/
public static native Pix pixScaleGray2xLIThresh(Pix pixs, int thresh);
/**
* Original signature : PIX* pixScaleGray2xLIDither(PIX*)
*/
public static native Pix pixScaleGray2xLIDither(Pix pixs);
/**
* Original signature :
* PIX* pixScaleGray4xLIThresh(PIX*, l_int32)
*/
public static native Pix pixScaleGray4xLIThresh(Pix pixs, int thresh);
/**
* Original signature : PIX* pixScaleGray4xLIDither(PIX*)
*/
public static native Pix pixScaleGray4xLIDither(Pix pixs);
/**
* Original signature :
* PIX* pixScaleBySampling(PIX*, l_float32, l_float32)
*/
public static native Pix pixScaleBySampling(Pix pixs, float scalex, float scaley);
/**
* Original signature :
* PIX* pixScaleBySamplingToSize(PIX*, l_int32, l_int32)
*/
public static native Pix pixScaleBySamplingToSize(Pix pixs, int wd, int hd);
/**
* Original signature :
* PIX* pixScaleByIntSampling(PIX*, l_int32)
*/
public static native Pix pixScaleByIntSampling(Pix pixs, int factor);
/**
* Original signature :
* PIX* pixScaleRGBToGrayFast(PIX*, l_int32, l_int32)
*/
public static native Pix pixScaleRGBToGrayFast(Pix pixs, int factor, int color);
/**
* Original signature :
* PIX* pixScaleRGBToBinaryFast(PIX*, l_int32, l_int32)
*/
public static native Pix pixScaleRGBToBinaryFast(Pix pixs, int factor, int thresh);
/**
* Original signature :
* PIX* pixScaleGrayToBinaryFast(PIX*, l_int32, l_int32)
*/
public static native Pix pixScaleGrayToBinaryFast(Pix pixs, int factor, int thresh);
/**
* Original signature :
* PIX* pixScaleSmooth(PIX*, l_float32, l_float32)
*/
public static native Pix pixScaleSmooth(Pix pix, float scalex, float scaley);
/**
* Original signature :
* PIX* pixScaleSmoothToSize(PIX*, l_int32, l_int32)
*/
public static native Pix pixScaleSmoothToSize(Pix pixs, int wd, int hd);
/**
* Original signature :
* PIX* pixScaleRGBToGray2(PIX*, l_float32, l_float32, l_float32)
*/
public static native Pix pixScaleRGBToGray2(Pix pixs, float rwt, float gwt, float bwt);
/**
* Original signature :
* PIX* pixScaleAreaMap(PIX*, l_float32, l_float32)
*/
public static native Pix pixScaleAreaMap(Pix pix, float scalex, float scaley);
/**
* Original signature : PIX* pixScaleAreaMap2(PIX*)
*/
public static native Pix pixScaleAreaMap2(Pix pix);
/**
* Original signature :
* PIX* pixScaleAreaMapToSize(PIX*, l_int32, l_int32)
*/
public static native Pix pixScaleAreaMapToSize(Pix pixs, int wd, int hd);
/**
* Original signature :
* PIX* pixScaleBinary(PIX*, l_float32, l_float32)
*/
public static native Pix pixScaleBinary(Pix pixs, float scalex, float scaley);
/**
* Original signature : PIX* pixScaleToGray(PIX*, l_float32)
*/
public static native Pix pixScaleToGray(Pix pixs, float scalefactor);
/**
* Original signature :
* PIX* pixScaleToGrayFast(PIX*, l_float32)
*/
public static native Pix pixScaleToGrayFast(Pix pixs, float scalefactor);
/**
* Original signature : PIX* pixScaleToGray2(PIX*)
*/
public static native Pix pixScaleToGray2(Pix pixs);
/**
* Original signature : PIX* pixScaleToGray3(PIX*)
*/
public static native Pix pixScaleToGray3(Pix pixs);
/**
* Original signature : PIX* pixScaleToGray4(PIX*)
*/
public static native Pix pixScaleToGray4(Pix pixs);
/**
* Original signature : PIX* pixScaleToGray6(PIX*)
*/
public static native Pix pixScaleToGray6(Pix pixs);
/**
* Original signature : PIX* pixScaleToGray8(PIX*)
*/
public static native Pix pixScaleToGray8(Pix pixs);
/**
* Original signature : PIX* pixScaleToGray16(PIX*)
*/
public static native Pix pixScaleToGray16(Pix pixs);
/**
* Original signature :
* PIX* pixScaleToGrayMipmap(PIX*, l_float32)
*/
public static native Pix pixScaleToGrayMipmap(Pix pixs, float scalefactor);
/**
* Original signature :
* PIX* pixScaleMipmap(PIX*, PIX*, l_float32)
*/
public static native Pix pixScaleMipmap(Pix pixs1, Pix pixs2, float scale);
/**
* Original signature : PIX* pixExpandReplicate(PIX*, l_int32)
*/
public static native Pix pixExpandReplicate(Pix pixs, int factor);
/**
* Original signature :
* PIX* pixScaleGrayMinMax(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixScaleGrayMinMax(Pix pixs, int xfact, int yfact, int type);
/**
* Original signature : PIX* pixScaleGrayMinMax2(PIX*, l_int32)
*/
public static native Pix pixScaleGrayMinMax2(Pix pixs, int type);
/**
* Original signature :
* PIX* pixScaleGrayRankCascade(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixScaleGrayRankCascade(Pix pixs, int level1, int level2, int level3, int level4);
/**
* Original signature : PIX* pixScaleGrayRank2(PIX*, l_int32)
*/
public static native Pix pixScaleGrayRank2(Pix pixs, int rank);
/**
* Original signature :
* l_ok pixScaleAndTransferAlpha(PIX*, PIX*, l_float32, l_float32)
*/
public static native int pixScaleAndTransferAlpha(Pix pixd, Pix pixs, float scalex, float scaley);
/**
* Original signature :
* PIX* pixScaleWithAlpha(PIX*, l_float32, l_float32, PIX*, l_float32)
*/
public static native Pix pixScaleWithAlpha(Pix pixs, float scalex, float scaley, Pix pixg, float fract);
/**
* Original signature :
* PIX* pixSeedfillBinary(PIX*, PIX*, PIX*, l_int32)
*/
public static native Pix pixSeedfillBinary(Pix pixd, Pix pixs, Pix pixm, int connectivity);
/**
* Original signature :
* PIX* pixSeedfillBinaryRestricted(PIX*, PIX*, PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixSeedfillBinaryRestricted(Pix pixd, Pix pixs, Pix pixm, int connectivity, int xmax, int ymax);
/**
* Original signature : PIX* pixHolesByFilling(PIX*, l_int32)
*/
public static native Pix pixHolesByFilling(Pix pixs, int connectivity);
/**
* Original signature :
* PIX* pixFillClosedBorders(PIX*, l_int32)
*/
public static native Pix pixFillClosedBorders(Pix pixs, int connectivity);
/**
* Original signature :
* PIX* pixExtractBorderConnComps(PIX*, l_int32)
*/
public static native Pix pixExtractBorderConnComps(Pix pixs, int connectivity);
/**
* Original signature :
* PIX* pixRemoveBorderConnComps(PIX*, l_int32)
*/
public static native Pix pixRemoveBorderConnComps(Pix pixs, int connectivity);
/**
* Original signature : PIX* pixFillBgFromBorder(PIX*, l_int32)
*/
public static native Pix pixFillBgFromBorder(Pix pixs, int connectivity);
/**
* Original signature :
* PIX* pixFillHolesToBoundingRect(PIX*, l_int32, l_float32, l_float32)
*/
public static native Pix pixFillHolesToBoundingRect(Pix pixs, int minsize, float maxhfract, float minfgfract);
/**
* Original signature :
* l_ok pixSeedfillGray(PIX*, PIX*, l_int32)
*/
public static native int pixSeedfillGray(Pix pixs, Pix pixm, int connectivity);
/**
* Original signature :
* l_ok pixSeedfillGrayInv(PIX*, PIX*, l_int32)
*/
public static native int pixSeedfillGrayInv(Pix pixs, Pix pixm, int connectivity);
/**
* Original signature :
* l_ok pixSeedfillGraySimple(PIX*, PIX*, l_int32)
*/
public static native int pixSeedfillGraySimple(Pix pixs, Pix pixm, int connectivity);
/**
* Original signature :
* l_ok pixSeedfillGrayInvSimple(PIX*, PIX*, l_int32)
*/
public static native int pixSeedfillGrayInvSimple(Pix pixs, Pix pixm, int connectivity);
/**
* Original signature :
* PIX* pixSeedfillGrayBasin(PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixSeedfillGrayBasin(Pix pixb, Pix pixm, int delta, int connectivity);
/**
* Original signature :
* PIX* pixDistanceFunction(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixDistanceFunction(Pix pixs, int connectivity, int outdepth, int boundcond);
/**
* Original signature : PIX* pixSeedspread(PIX*, l_int32)
*/
public static native Pix pixSeedspread(Pix pixs, int connectivity);
/**
* Original signature :
* l_ok pixLocalExtrema(PIX*, l_int32, l_int32, PIX**, PIX**)
*/
public static native int pixLocalExtrema(Pix pixs, int maxmin, int minmax, PointerByReference ppixmin, PointerByReference ppixmax);
/**
* Original signature :
* l_ok pixSelectedLocalExtrema(PIX*, l_int32, PIX**, PIX**)
*/
public static native int pixSelectedLocalExtrema(Pix pixs, int mindist, PointerByReference ppixmin, PointerByReference ppixmax);
/**
* Original signature : PIX* pixFindEqualValues(PIX*, PIX*)
*/
public static native Pix pixFindEqualValues(Pix pixs1, Pix pixs2);
/**
* Original signature :
* l_ok pixSelectMinInConnComp(PIX*, PIX*, PTA**, NUMA**)
*/
public static native int pixSelectMinInConnComp(Pix pixs, Pix pixm, PointerByReference ppta, PointerByReference pnav);
/**
* Original signature :
* PIX* pixRemoveSeededComponents(PIX*, PIX*, PIX*, l_int32, l_int32)
*/
public static native Pix pixRemoveSeededComponents(Pix pixd, Pix pixs, Pix pixm, int connectivity, int bordersize);
/**
* Original signature : SELA* selaCreate(l_int32)
*/
public static native Sela selaCreate(int n);
/**
* Original signature : void selaDestroy(SELA**)
*/
public static native void selaDestroy(PointerByReference psela);
/**
* Original signature :
* SEL* selCreate(l_int32, l_int32, const char*)
*/
public static native Sel selCreate(int height, int width, String name);
/**
* Original signature : void selDestroy(SEL**)
*/
public static native void selDestroy(PointerByReference psel);
/**
* Original signature : SEL* selCopy(SEL*)
*/
public static native Sel selCopy(Pointer sel);
/**
* Original signature :
* SEL* selCreateBrick(l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Sel selCreateBrick(int h, int w, int cy, int cx, int type);
/**
* Original signature :
* SEL* selCreateComb(l_int32, l_int32, l_int32)
*/
public static native Sel selCreateComb(int factor1, int factor2, int direction);
/**
* Original signature :
* l_int32** create2dIntArray(l_int32, l_int32)
*/
public static native PointerByReference create2dIntArray(int sy, int sx);
/**
* Original signature :
* l_ok selaAddSel(SELA*, SEL*, const char*, l_int32)
*/
public static native int selaAddSel(Sela sela, Pointer sel, String selname, int copyflag);
/**
* Original signature : l_int32 selaGetCount(SELA*)
*/
public static native int selaGetCount(Sela sela);
/**
* Original signature : SEL* selaGetSel(SELA*, l_int32)
*/
public static native Sel selaGetSel(Sela sela, int i);
/**
* Original signature : char* selGetName(SEL*)
*/
public static native Pointer selGetName(Pointer sel);
/**
* Original signature : l_ok selSetName(SEL*, const char*)
*/
public static native int selSetName(Pointer sel, String name);
/**
* Original signature :
* l_ok selaFindSelByName(SELA*, const char*, l_int32*, SEL**)
*/
public static native int selaFindSelByName(Sela sela, String name, IntBuffer pindex, PointerByReference psel);
/**
* Original signature :
* l_ok selGetElement(SEL*, l_int32, l_int32, l_int32*)
*/
public static native int selGetElement(Pointer sel, int row, int col, IntBuffer ptype);
/**
* Original signature :
* l_ok selSetElement(SEL*, l_int32, l_int32, l_int32)
*/
public static native int selSetElement(Pointer sel, int row, int col, int type);
/**
* Original signature :
* l_ok selGetParameters(SEL*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int selGetParameters(Pointer sel, IntBuffer psy, IntBuffer psx, IntBuffer pcy, IntBuffer pcx);
/**
* Original signature :
* l_ok selSetOrigin(SEL*, l_int32, l_int32)
*/
public static native int selSetOrigin(Pointer sel, int cy, int cx);
/**
* Original signature : l_ok selGetTypeAtOrigin(SEL*, l_int32*)
*/
public static native int selGetTypeAtOrigin(Pointer sel, IntBuffer ptype);
/**
* Original signature :
* char* selaGetBrickName(SELA*, l_int32, l_int32)
*/
public static native Pointer selaGetBrickName(Sela sela, int hsize, int vsize);
/**
* Original signature :
* char* selaGetCombName(SELA*, l_int32, l_int32)
*/
public static native Pointer selaGetCombName(Sela sela, int size, int direction);
/**
* Original signature :
* l_ok getCompositeParameters(l_int32, l_int32*, l_int32*, char**, char**, char**, char**)
*/
public static native int getCompositeParameters(int size, IntBuffer psize1, IntBuffer psize2, PointerByReference pnameh1, PointerByReference pnameh2, PointerByReference pnamev1, PointerByReference pnamev2);
/**
* Original signature : SARRAY* selaGetSelnames(SELA*)
*/
public static native Sarray selaGetSelnames(Sela sela);
/**
* Original signature :
* l_ok selFindMaxTranslations(SEL*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int selFindMaxTranslations(Pointer sel, IntBuffer pxp, IntBuffer pyp, IntBuffer pxn, IntBuffer pyn);
/**
* Original signature : SEL* selRotateOrth(SEL*, l_int32)
*/
public static native Sel selRotateOrth(Pointer sel, int quads);
/**
* Original signature : SELA* selaRead(const char*)
*/
public static native Sela selaRead(String fname);
/**
* Original signature : SELA* selaReadStream(FILE*)
*/
public static native Sela selaReadStream(FILE fp);
/**
* Original signature : SEL* selRead(const char*)
*/
public static native Sel selRead(String fname);
/**
* Original signature : SEL* selReadStream(FILE*)
*/
public static native Sel selReadStream(FILE fp);
/**
* Original signature : l_ok selaWrite(const char*, SELA*)
*/
public static native int selaWrite(String fname, Sela sela);
/**
* Original signature : l_ok selaWriteStream(FILE*, SELA*)
*/
public static native int selaWriteStream(FILE fp, Sela sela);
/**
* Original signature : l_ok selWrite(const char*, SEL*)
*/
public static native int selWrite(String fname, Pointer sel);
/**
* Original signature : l_ok selWriteStream(FILE*, SEL*)
*/
public static native int selWriteStream(FILE fp, Pointer sel);
/**
* Original signature :
* SEL* selCreateFromString(const char*, l_int32, l_int32, const char*)
*/
public static native Sel selCreateFromString(String text, int h, int w, String name);
/**
* Original signature : char* selPrintToString(SEL*)
*/
public static native Pointer selPrintToString(Pointer sel);
/**
* Original signature : SELA* selaCreateFromFile(const char*)
*/
public static native Sela selaCreateFromFile(String filename);
/**
* Original signature :
* SEL* selCreateFromPta(PTA*, l_int32, l_int32, const char*)
*/
public static native Sel selCreateFromPta(Pta pta, int cy, int cx, String name);
/**
* Original signature :
* SEL* selCreateFromPix(PIX*, l_int32, l_int32, const char*)
*/
public static native Sel selCreateFromPix(Pix pix, int cy, int cx, String name);
/**
* Original signature : SEL* selReadFromColorImage(const char*)
*/
public static native Sel selReadFromColorImage(String pathname);
/**
* Original signature :
* SEL* selCreateFromColorPix(PIX*, const char*)
*/
public static native Sel selCreateFromColorPix(Pix pixs, String selname);
/**
* Original signature :
* SELA* selaCreateFromColorPixa(PIXA*, SARRAY*)
*/
public static native Sela selaCreateFromColorPixa(Pixa pixa, Sarray sa);
/**
* Original signature :
* PIX* selDisplayInPix(SEL*, l_int32, l_int32)
*/
public static native Pix selDisplayInPix(Pointer sel, int size, int gthick);
/**
* Original signature :
* PIX* selaDisplayInPix(SELA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix selaDisplayInPix(Sela sela, int size, int gthick, int spacing, int ncols);
/**
* Original signature : SELA* selaAddBasic(SELA*)
*/
public static native Sela selaAddBasic(Sela sela);
/**
* Original signature : SELA* selaAddHitMiss(SELA*)
*/
public static native Sela selaAddHitMiss(Sela sela);
/**
* Original signature : SELA* selaAddDwaLinear(SELA*)
*/
public static native Sela selaAddDwaLinear(Sela sela);
/**
* Original signature : SELA* selaAddDwaCombs(SELA*)
*/
public static native Sela selaAddDwaCombs(Sela sela);
/**
* Original signature :
* SELA* selaAddCrossJunctions(SELA*, l_float32, l_float32, l_int32, l_int32)
*/
public static native Sela selaAddCrossJunctions(Sela sela, float hlsize, float mdist, int norient, int debugflag);
/**
* Original signature :
* SELA* selaAddTJunctions(SELA*, l_float32, l_float32, l_int32, l_int32)
*/
public static native Sela selaAddTJunctions(Sela sela, float hlsize, float mdist, int norient, int debugflag);
/**
* Original signature : SELA* sela4ccThin(SELA*)
*/
public static native Sela sela4ccThin(Sela sela);
/**
* Original signature : SELA* sela8ccThin(SELA*)
*/
public static native Sela sela8ccThin(Sela sela);
/**
* Original signature : SELA* sela4and8ccThin(SELA*)
*/
public static native Sela sela4and8ccThin(Sela sela);
/**
* Original signature : SEL* selMakePlusSign(l_int32, l_int32)
*/
public static native Sel selMakePlusSign(int size, int linewidth);
/**
* Original signature :
* SEL* pixGenerateSelWithRuns(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, PIX**)
*/
public static native Sel pixGenerateSelWithRuns(Pix pixs, int nhlines, int nvlines, int distance, int minlength, int toppix, int botpix, int leftpix, int rightpix, PointerByReference ppixe);
/**
* Original signature :
* SEL* pixGenerateSelRandom(PIX*, l_float32, l_float32, l_int32, l_int32, l_int32, l_int32, l_int32, PIX**)
*/
public static native Sel pixGenerateSelRandom(Pix pixs, float hitfract, float missfract, int distance, int toppix, int botpix, int leftpix, int rightpix, PointerByReference ppixe);
/**
* Original signature :
* SEL* pixGenerateSelBoundary(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32, PIX**)
*/
public static native Sel pixGenerateSelBoundary(Pix pixs, int hitdist, int missdist, int hitskip, int missskip, int topflag, int botflag, int leftflag, int rightflag, PointerByReference ppixe);
/**
* Original signature :
* NUMA* pixGetRunCentersOnLine(PIX*, l_int32, l_int32, l_int32)
*/
public static native Numa pixGetRunCentersOnLine(Pix pixs, int x, int y, int minlength);
/**
* Original signature :
* NUMA* pixGetRunsOnLine(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Numa pixGetRunsOnLine(Pix pixs, int x1, int y1, int x2, int y2);
/**
* Original signature :
* PTA* pixSubsampleBoundaryPixels(PIX*, l_int32)
*/
public static native Pta pixSubsampleBoundaryPixels(Pix pixs, int skip);
/**
* Original signature :
* l_int32 adjacentOnPixelInRaster(PIX*, l_int32, l_int32, l_int32*, l_int32*)
*/
public static native int adjacentOnPixelInRaster(Pix pixs, int x, int y, IntBuffer pxa, IntBuffer pya);
/**
* Original signature :
* PIX* pixDisplayHitMissSel(PIX*, SEL*, l_int32, l_uint32, l_uint32)
*/
public static native Pix pixDisplayHitMissSel(Pix pixs, Pointer sel, int scalefactor, int hitcolor, int misscolor);
/**
* Original signature :
* PIX* pixHShear(PIX*, PIX*, l_int32, l_float32, l_int32)
*/
public static native Pix pixHShear(Pix pixd, Pix pixs, int yloc, float radang, int incolor);
/**
* Original signature :
* PIX* pixVShear(PIX*, PIX*, l_int32, l_float32, l_int32)
*/
public static native Pix pixVShear(Pix pixd, Pix pixs, int xloc, float radang, int incolor);
/**
* Original signature :
* PIX* pixHShearCorner(PIX*, PIX*, l_float32, l_int32)
*/
public static native Pix pixHShearCorner(Pix pixd, Pix pixs, float radang, int incolor);
/**
* Original signature :
* PIX* pixVShearCorner(PIX*, PIX*, l_float32, l_int32)
*/
public static native Pix pixVShearCorner(Pix pixd, Pix pixs, float radang, int incolor);
/**
* Original signature :
* PIX* pixHShearCenter(PIX*, PIX*, l_float32, l_int32)
*/
public static native Pix pixHShearCenter(Pix pixd, Pix pixs, float radang, int incolor);
/**
* Original signature :
* PIX* pixVShearCenter(PIX*, PIX*, l_float32, l_int32)
*/
public static native Pix pixVShearCenter(Pix pixd, Pix pixs, float radang, int incolor);
/**
* Original signature :
* l_ok pixHShearIP(PIX*, l_int32, l_float32, l_int32)
*/
public static native int pixHShearIP(Pix pixs, int yloc, float radang, int incolor);
/**
* Original signature :
* l_ok pixVShearIP(PIX*, l_int32, l_float32, l_int32)
*/
public static native int pixVShearIP(Pix pixs, int xloc, float radang, int incolor);
/**
* Original signature :
* PIX* pixHShearLI(PIX*, l_int32, l_float32, l_int32)
*/
public static native Pix pixHShearLI(Pix pixs, int yloc, float radang, int incolor);
/**
* Original signature :
* PIX* pixVShearLI(PIX*, l_int32, l_float32, l_int32)
*/
public static native Pix pixVShearLI(Pix pixs, int xloc, float radang, int incolor);
/**
* Original signature : PIX* pixDeskewBoth(PIX*, l_int32)
*/
public static native Pix pixDeskewBoth(Pix pixs, int redsearch);
/**
* Original signature : PIX* pixDeskew(PIX*, l_int32)
*/
public static native Pix pixDeskew(Pix pixs, int redsearch);
/**
* Original signature :
* PIX* pixFindSkewAndDeskew(PIX*, l_int32, l_float32*, l_float32*)
*/
public static native Pix pixFindSkewAndDeskew(Pix pixs, int redsearch, FloatBuffer pangle, FloatBuffer pconf);
/**
* Original signature :
* PIX* pixDeskewGeneral(PIX*, l_int32, l_float32, l_float32, l_int32, l_int32, l_float32*, l_float32*)
*/
public static native Pix pixDeskewGeneral(Pix pixs, int redsweep, float sweeprange, float sweepdelta, int redsearch, int thresh, FloatBuffer pangle, FloatBuffer pconf);
/**
* Original signature :
* l_ok pixFindSkew(PIX*, l_float32*, l_float32*)
*/
public static native int pixFindSkew(Pix pixs, FloatBuffer pangle, FloatBuffer pconf);
/**
* Original signature :
* l_ok pixFindSkewSweep(PIX*, l_float32*, l_int32, l_float32, l_float32)
*/
public static native int pixFindSkewSweep(Pix pixs, FloatBuffer pangle, int reduction, float sweeprange, float sweepdelta);
/**
* Original signature :
* l_ok pixFindSkewSweepAndSearch(PIX*, l_float32*, l_float32*, l_int32, l_int32, l_float32, l_float32, l_float32)
*/
public static native int pixFindSkewSweepAndSearch(Pix pixs, FloatBuffer pangle, FloatBuffer pconf, int redsweep, int redsearch, float sweeprange, float sweepdelta, float minbsdelta);
/**
* Original signature :
* l_ok pixFindSkewSweepAndSearchScore(PIX*, l_float32*, l_float32*, l_float32*, l_int32, l_int32, l_float32, l_float32, l_float32, l_float32)
*/
public static native int pixFindSkewSweepAndSearchScore(Pix pixs, FloatBuffer pangle, FloatBuffer pconf, FloatBuffer pendscore, int redsweep, int redsearch, float sweepcenter, float sweeprange, float sweepdelta, float minbsdelta);
/**
* Original signature :
* l_ok pixFindSkewSweepAndSearchScorePivot(PIX*, l_float32*, l_float32*, l_float32*, l_int32, l_int32, l_float32, l_float32, l_float32, l_float32, l_int32)
*/
public static native int pixFindSkewSweepAndSearchScorePivot(Pix pixs, FloatBuffer pangle, FloatBuffer pconf, FloatBuffer pendscore, int redsweep, int redsearch, float sweepcenter, float sweeprange, float sweepdelta, float minbsdelta, int pivot);
/**
* Original signature :
* l_int32 pixFindSkewOrthogonalRange(PIX*, l_float32*, l_float32*, l_int32, l_int32, l_float32, l_float32, l_float32, l_float32)
*/
public static native int pixFindSkewOrthogonalRange(Pix pixs, FloatBuffer pangle, FloatBuffer pconf, int redsweep, int redsearch, float sweeprange, float sweepdelta, float minbsdelta, float confprior);
/**
* Original signature :
* l_ok pixFindDifferentialSquareSum(PIX*, l_float32*)
*/
public static native int pixFindDifferentialSquareSum(Pix pixs, FloatBuffer psum);
/**
* Original signature :
* l_ok pixFindNormalizedSquareSum(PIX*, l_float32*, l_float32*, l_float32*)
*/
public static native int pixFindNormalizedSquareSum(Pix pixs, FloatBuffer phratio, FloatBuffer pvratio, FloatBuffer pfract);
/**
* Original signature : PIX* pixReadStreamSpix(FILE*)
*/
public static native Pix pixReadStreamSpix(FILE fp);
/**
* Original signature :
* l_ok readHeaderSpix(const char*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderSpix(String filename, IntBuffer pwidth, IntBuffer pheight, IntBuffer pbps, IntBuffer pspp, IntBuffer piscmap);
/**
* Original signature :
* l_ok freadHeaderSpix(FILE*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int freadHeaderSpix(FILE fp, IntBuffer pwidth, IntBuffer pheight, IntBuffer pbps, IntBuffer pspp, IntBuffer piscmap);
/**
* Original signature :
* l_ok sreadHeaderSpix(const l_uint32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int sreadHeaderSpix(IntBuffer data, IntBuffer pwidth, IntBuffer pheight, IntBuffer pbps, IntBuffer pspp, IntBuffer piscmap);
/**
* Original signature : l_ok pixWriteStreamSpix(FILE*, PIX*)
*/
public static native int pixWriteStreamSpix(FILE fp, Pix pix);
/**
* Original signature :
* PIX* pixReadMemSpix(const l_uint8*, size_t)
*/
public static native Pix pixReadMemSpix(ByteBuffer data, NativeSize size);
/**
* Original signature :
* l_ok pixWriteMemSpix(l_uint8**, size_t*, PIX*)
*/
public static native int pixWriteMemSpix(PointerByReference pdata, NativeSizeByReference psize, Pix pix);
/**
* Original signature :
* l_ok pixSerializeToMemory(PIX*, l_uint32**, size_t*)
*/
public static native int pixSerializeToMemory(Pix pixs, PointerByReference pdata, NativeSizeByReference pnbytes);
/**
* Original signature :
* PIX* pixDeserializeFromMemory(const l_uint32*, size_t)
*/
public static native Pix pixDeserializeFromMemory(IntBuffer data, NativeSize nbytes);
/**
* Original signature : L_STACK* lstackCreate(l_int32)
*/
public static native L_Stack lstackCreate(int n);
/**
* Original signature : void lstackDestroy(L_STACK**, l_int32)
*/
public static native void lstackDestroy(PointerByReference plstack, int freeflag);
/**
* Original signature : l_ok lstackAdd(L_STACK*, void*)
*/
public static native int lstackAdd(L_Stack lstack, Pointer item);
/**
* Original signature : void* lstackRemove(L_STACK*)
*/
public static native Pointer lstackRemove(L_Stack lstack);
/**
* Original signature : l_int32 lstackGetCount(L_STACK*)
*/
public static native int lstackGetCount(L_Stack lstack);
/**
* Original signature : l_ok lstackPrint(FILE*, L_STACK*)
*/
public static native int lstackPrint(FILE fp, L_Stack lstack);
/**
* Original signature : L_STRCODE* strcodeCreate(l_int32)
*/
public static native L_StrCode strcodeCreate(int fileno);
/**
* Original signature :
* l_ok strcodeCreateFromFile(const char*, l_int32, const char*)
*/
public static native int strcodeCreateFromFile(String filein, int fileno, String outdir);
/**
* Original signature :
* l_ok strcodeGenerate(L_STRCODE*, const char*, const char*)
*/
public static native int strcodeGenerate(L_StrCode strcode, String filein, String type);
/**
* Original signature :
* l_int32 strcodeFinalize(L_STRCODE**, const char*)
*/
public static native int strcodeFinalize(PointerByReference pstrcode, String outdir);
/**
* Original signature :
* l_int32 strcodeFinalize(L_STRCODE**, const char*)
*/
public static native int strcodeFinalize(PointerByReference pstrcode, Pointer outdir);
/**
* Original signature :
* l_int32 l_getStructStrFromFile(const char*, l_int32, char**)
*/
public static native int l_getStructStrFromFile(String filename, int field, PointerByReference pstr);
/**
* Original signature :
* l_ok pixFindStrokeLength(PIX*, l_int32*, l_int32*)
*/
public static native int pixFindStrokeLength(Pix pixs, IntBuffer tab8, IntBuffer plength);
/**
* Original signature :
* l_ok pixFindStrokeWidth(PIX*, l_float32, l_int32*, l_float32*, NUMA**)
*/
public static native int pixFindStrokeWidth(Pix pixs, float thresh, IntBuffer tab8, FloatBuffer pwidth, PointerByReference pnahisto);
/**
* Original signature :
* l_ok pixFindStrokeWidth(PIX*, l_float32, l_int32*, l_float32*, NUMA**)
*/
public static native int pixFindStrokeWidth(Pix pixs, float thresh, IntByReference tab8, FloatByReference pwidth, PointerByReference pnahisto);
/**
* Original signature :
* NUMA* pixaFindStrokeWidth(PIXA*, l_float32, l_int32*, l_int32)
*/
public static native Numa pixaFindStrokeWidth(Pixa pixa, float thresh, IntBuffer tab8, int debug);
/**
* Original signature :
* PIXA* pixaModifyStrokeWidth(PIXA*, l_float32)
*/
public static native Pixa pixaModifyStrokeWidth(Pixa pixas, float targetw);
/**
* Original signature :
* PIX* pixModifyStrokeWidth(PIX*, l_float32, l_float32)
*/
public static native Pix pixModifyStrokeWidth(Pix pixs, float width, float targetw);
/**
* Original signature :
* PIXA* pixaSetStrokeWidth(PIXA*, l_int32, l_int32, l_int32)
*/
public static native Pixa pixaSetStrokeWidth(Pixa pixas, int width, int thinfirst, int connectivity);
/**
* Original signature :
* PIX* pixSetStrokeWidth(PIX*, l_int32, l_int32, l_int32)
*/
public static native Pix pixSetStrokeWidth(Pix pixs, int width, int thinfirst, int connectivity);
/**
* Original signature : l_int32* sudokuReadFile(const char*)
*/
public static native IntByReference sudokuReadFile(String filename);
/**
* Original signature : l_int32* sudokuReadString(const char*)
*/
public static native IntByReference sudokuReadString(String str);
/**
* Original signature : L_SUDOKU* sudokuCreate(l_int32*)
*/
public static native L_Sudoku sudokuCreate(IntBuffer array);
/**
* Original signature : void sudokuDestroy(L_SUDOKU**)
*/
public static native void sudokuDestroy(PointerByReference psud);
/**
* Original signature : l_int32 sudokuSolve(L_SUDOKU*)
*/
public static native int sudokuSolve(L_Sudoku sud);
/**
* Original signature :
* l_ok sudokuTestUniqueness(l_int32*, l_int32*)
*/
public static native int sudokuTestUniqueness(IntBuffer array, IntBuffer punique);
/**
* Original signature :
* L_SUDOKU* sudokuGenerate(l_int32*, l_int32, l_int32, l_int32)
*/
public static native L_Sudoku sudokuGenerate(IntBuffer array, int seed, int minelems, int maxtries);
/**
* Original signature :
* l_int32 sudokuOutput(L_SUDOKU*, l_int32)
*/
public static native int sudokuOutput(L_Sudoku sud, int arraytype);
/**
* Original signature :
* PIX* pixAddSingleTextblock(PIX*, L_BMF*, const char*, l_uint32, l_int32, l_int32*)
*/
public static native Pix pixAddSingleTextblock(Pix pixs, L_Bmf bmf, String textstr, int val, int location, IntBuffer poverflow);
/**
* Original signature :
* PIX* pixAddTextlines(PIX*, L_BMF*, const char*, l_uint32, l_int32)
*/
public static native Pix pixAddTextlines(Pix pixs, L_Bmf bmf, String textstr, int val, int location);
/**
* Original signature :
* l_ok pixSetTextblock(PIX*, L_BMF*, const char*, l_uint32, l_int32, l_int32, l_int32, l_int32, l_int32*)
*/
public static native int pixSetTextblock(Pix pixs, L_Bmf bmf, String textstr, int val, int x0, int y0, int wtext, int firstindent, IntBuffer poverflow);
/**
* Original signature :
* l_ok pixSetTextline(PIX*, L_BMF*, const char*, l_uint32, l_int32, l_int32, l_int32*, l_int32*)
*/
public static native int pixSetTextline(Pix pixs, L_Bmf bmf, String textstr, int val, int x0, int y0, IntBuffer pwidth, IntBuffer poverflow);
/**
* Original signature :
* PIXA* pixaAddTextNumber(PIXA*, L_BMF*, NUMA*, l_uint32, l_int32)
*/
public static native Pixa pixaAddTextNumber(Pixa pixas, L_Bmf bmf, Numa na, int val, int location);
/**
* Original signature :
* PIXA* pixaAddTextlines(PIXA*, L_BMF*, SARRAY*, l_uint32, l_int32)
*/
public static native Pixa pixaAddTextlines(Pixa pixas, L_Bmf bmf, Sarray sa, int val, int location);
/**
* Original signature :
* l_ok pixaAddPixWithText(PIXA*, PIX*, l_int32, L_BMF*, const char*, l_uint32, l_int32)
*/
public static native int pixaAddPixWithText(Pixa pixa, Pix pixs, int reduction, L_Bmf bmf, String textstr, int val, int location);
/**
* Original signature :
* SARRAY* bmfGetLineStrings(L_BMF*, const char*, l_int32, l_int32, l_int32*)
*/
public static native Sarray bmfGetLineStrings(L_Bmf bmf, String textstr, int maxw, int firstindent, IntBuffer ph);
/**
* Original signature :
* NUMA* bmfGetWordWidths(L_BMF*, const char*, SARRAY*)
*/
public static native Numa bmfGetWordWidths(L_Bmf bmf, String textstr, Sarray sa);
/**
* Original signature :
* l_ok bmfGetStringWidth(L_BMF*, const char*, l_int32*)
*/
public static native int bmfGetStringWidth(L_Bmf bmf, String textstr, IntBuffer pw);
/**
* Original signature :
* SARRAY* splitStringToParagraphs(char*, l_int32)
*/
public static native Sarray splitStringToParagraphs(ByteBuffer textstr, int splitflag);
/**
* Original signature : PIX* pixReadTiff(const char*, l_int32)
*/
public static native Pix pixReadTiff(String filename, int n);
/**
* Original signature : PIX* pixReadStreamTiff(FILE*, l_int32)
*/
public static native Pix pixReadStreamTiff(FILE fp, int n);
/**
* Original signature :
* l_ok pixWriteTiff(const char*, PIX*, l_int32, const char*)
*/
public static native int pixWriteTiff(String filename, Pix pix, int comptype, String modestr);
/**
* Original signature :
* l_ok pixWriteTiffCustom(const char*, PIX*, l_int32, const char*, NUMA*, SARRAY*, SARRAY*, NUMA*)
*/
public static native int pixWriteTiffCustom(String filename, Pix pix, int comptype, String modestr, Numa natags, Sarray savals, Sarray satypes, Numa nasizes);
/**
* Original signature :
* l_ok pixWriteStreamTiff(FILE*, PIX*, l_int32)
*/
public static native int pixWriteStreamTiff(FILE fp, Pix pix, int comptype);
/**
* Original signature :
* l_ok pixWriteStreamTiffWA(FILE*, PIX*, l_int32, const char*)
*/
public static native int pixWriteStreamTiffWA(FILE fp, Pix pix, int comptype, String modestr);
/**
* Original signature :
* PIX* pixReadFromMultipageTiff(const char*, size_t*)
*/
public static native Pix pixReadFromMultipageTiff(String fname, NativeSizeByReference poffset);
/**
* Original signature :
* PIXA* pixaReadMultipageTiff(const char*)
*/
public static native Pixa pixaReadMultipageTiff(String filename);
/**
* Original signature :
* l_ok pixaWriteMultipageTiff(const char*, PIXA*)
*/
public static native int pixaWriteMultipageTiff(String fname, Pixa pixa);
/**
* Original signature :
* l_ok writeMultipageTiff(const char*, const char*, const char*)
*/
public static native int writeMultipageTiff(String dirin, String substr, String fileout);
/**
* Original signature :
* l_ok writeMultipageTiffSA(SARRAY*, const char*)
*/
public static native int writeMultipageTiffSA(Sarray sa, String fileout);
/**
* Original signature : l_ok fprintTiffInfo(FILE*, const char*)
*/
public static native int fprintTiffInfo(FILE fpout, String tiffile);
/**
* Original signature : l_ok tiffGetCount(FILE*, l_int32*)
*/
public static native int tiffGetCount(FILE fp, IntBuffer pn);
/**
* Original signature :
* l_ok getTiffResolution(FILE*, l_int32*, l_int32*)
*/
public static native int getTiffResolution(FILE fp, IntBuffer pxres, IntBuffer pyres);
/**
* Original signature :
* l_ok readHeaderTiff(const char*, l_int32, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderTiff(String filename, int n, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp, IntBuffer pres, IntBuffer pcmap, IntBuffer pformat);
/**
* Original signature :
* l_ok freadHeaderTiff(FILE*, l_int32, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int freadHeaderTiff(FILE fp, int n, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp, IntBuffer pres, IntBuffer pcmap, IntBuffer pformat);
/**
* Original signature :
* l_ok readHeaderMemTiff(const l_uint8*, size_t, l_int32, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderMemTiff(ByteBuffer cdata, NativeSize size, int n, IntBuffer pw, IntBuffer ph, IntBuffer pbps, IntBuffer pspp, IntBuffer pres, IntBuffer pcmap, IntBuffer pformat);
/**
* Original signature :
* l_ok findTiffCompression(FILE*, l_int32*)
*/
public static native int findTiffCompression(FILE fp, IntBuffer pcomptype);
/**
* Original signature :
* l_ok extractG4DataFromFile(const char*, l_uint8**, size_t*, l_int32*, l_int32*, l_int32*)
*/
public static native int extractG4DataFromFile(String filein, PointerByReference pdata, NativeSizeByReference pnbytes, IntBuffer pw, IntBuffer ph, IntBuffer pminisblack);
/**
* Original signature :
* PIX* pixReadMemTiff(const l_uint8*, size_t, l_int32)
*/
public static native Pix pixReadMemTiff(ByteBuffer cdata, NativeSize size, int n);
/**
* Original signature :
* PIX* pixReadMemFromMultipageTiff(const l_uint8*, size_t, size_t*)
*/
public static native Pix pixReadMemFromMultipageTiff(ByteBuffer cdata, NativeSize size, NativeSizeByReference poffset);
/**
* Original signature :
* PIXA* pixaReadMemMultipageTiff(const l_uint8*, size_t)
*/
public static native Pixa pixaReadMemMultipageTiff(ByteBuffer data, NativeSize size);
/**
* Original signature :
* l_ok pixaWriteMemMultipageTiff(l_uint8**, size_t*, PIXA*)
*/
public static native int pixaWriteMemMultipageTiff(PointerByReference pdata, NativeSizeByReference psize, Pixa pixa);
/**
* Original signature :
* l_ok pixWriteMemTiff(l_uint8**, size_t*, PIX*, l_int32)
*/
public static native int pixWriteMemTiff(PointerByReference pdata, NativeSizeByReference psize, Pix pix, int comptype);
/**
* Original signature :
* l_ok pixWriteMemTiffCustom(l_uint8**, size_t*, PIX*, l_int32, NUMA*, SARRAY*, SARRAY*, NUMA*)
*/
public static native int pixWriteMemTiffCustom(PointerByReference pdata, NativeSizeByReference psize, Pix pix, int comptype, Numa natags, Sarray savals, Sarray satypes, Numa nasizes);
/**
* Original signature : l_int32 setMsgSeverity(l_int32)
*/
public static native int setMsgSeverity(int newsev);
/**
* Original signature :
* l_int32 returnErrorInt(const char*, const char*, l_int32)
*/
public static native int returnErrorInt(String msg, String procname, int ival);
/**
* Original signature :
* l_float32 returnErrorFloat(const char*, const char*, l_float32)
*/
public static native float returnErrorFloat(String msg, String procname, float fval);
/**
* Original signature :
* void* returnErrorPtr(const char*, const char*, void*)
*/
public static native Pointer returnErrorPtr(String msg, String procname, Pointer pval);
/**
* Original signature :
* void leptSetStderrHandler(leptSetStderrHandler_handler_callback*)
*/
public static native void leptSetStderrHandler(leptSetStderrHandler_handler_callback handler);
/**
* Original signature : void lept_stderr(const char*, null)
*/
public static native void lept_stderr(String fmt, PointerByReference varArgs1);
/**
* Original signature :
* l_ok filesAreIdentical(const char*, const char*, l_int32*)
*/
public static native int filesAreIdentical(String fname1, String fname2, IntBuffer psame);
/**
* Original signature : l_uint16 convertOnLittleEnd16(l_uint16)
*/
public static native short convertOnLittleEnd16(short shortin);
/**
* Original signature : l_uint16 convertOnBigEnd16(l_uint16)
*/
public static native short convertOnBigEnd16(short shortin);
/**
* Original signature : l_uint32 convertOnLittleEnd32(l_uint32)
*/
public static native int convertOnLittleEnd32(int wordin);
/**
* Original signature : l_uint32 convertOnBigEnd32(l_uint32)
*/
public static native int convertOnBigEnd32(int wordin);
/**
* Original signature :
* l_ok fileCorruptByDeletion(const char*, l_float32, l_float32, const char*)
*/
public static native int fileCorruptByDeletion(String filein, float loc, float size, String fileout);
/**
* Original signature :
* l_ok fileCorruptByMutation(const char*, l_float32, l_float32, const char*)
*/
public static native int fileCorruptByMutation(String filein, float loc, float size, String fileout);
/**
* Original signature :
* l_ok fileReplaceBytes(const char*, l_int32, l_int32, l_uint8*, size_t, const char*)
*/
public static native int fileReplaceBytes(String filein, int start, int nbytes, ByteBuffer newdata, NativeSize newsize, String fileout);
/**
* Original signature :
* l_ok genRandomIntegerInRange(l_int32, l_int32, l_int32*)
*/
public static native int genRandomIntegerInRange(int range, int seed, IntBuffer pval);
/**
* Original signature : l_int32 lept_roundftoi(l_float32)
*/
public static native int lept_roundftoi(float fval);
/**
* Original signature :
* l_ok l_hashStringToUint64(const char*, l_uint64*)
*/
public static native int l_hashStringToUint64(String str, LongBuffer phash);
/**
* Original signature :
* l_ok l_hashPtToUint64(l_int32, l_int32, l_uint64*)
*/
public static native int l_hashPtToUint64(int x, int y, LongBuffer phash);
/**
* Original signature :
* l_ok l_hashFloat64ToUint64(l_int32, l_float64, l_uint64*)
*/
public static native int l_hashFloat64ToUint64(int nbuckets, double val, LongBuffer phash);
/**
* Original signature :
* l_ok findNextLargerPrime(l_int32, l_uint32*)
*/
public static native int findNextLargerPrime(int start, IntBuffer pprime);
/**
* Original signature :
* l_ok lept_isPrime(l_uint64, l_int32*, l_uint32*)
*/
public static native int lept_isPrime(long n, IntBuffer pis_prime, IntBuffer pfactor);
/**
* Original signature : l_uint32 convertIntToGrayCode(l_uint32)
*/
public static native int convertIntToGrayCode(int val);
/**
* Original signature : l_uint32 convertGrayCodeToInt(l_uint32)
*/
public static native int convertGrayCodeToInt(int val);
/**
* Original signature : char* getLeptonicaVersion()
*/
public static native Pointer getLeptonicaVersion();
/**
* Original signature : void startTimer()
*/
public static native void startTimer();
/**
* Original signature : l_float32 stopTimer()
*/
public static native float stopTimer();
/**
* Original signature : L_TIMER startTimerNested()
*/
public static native Pointer startTimerNested();
/**
* Original signature : l_float32 stopTimerNested(L_TIMER)
*/
public static native float stopTimerNested(Pointer rusage_start);
/**
* Original signature :
* void l_getCurrentTime(l_int32*, l_int32*)
*/
public static native void l_getCurrentTime(IntBuffer sec, IntBuffer usec);
/**
* Original signature : L_WALLTIMER* startWallTimer()
*/
public static native L_WallTimer startWallTimer();
/**
* Original signature : l_float32 stopWallTimer(L_WALLTIMER**)
*/
public static native float stopWallTimer(PointerByReference ptimer);
/**
* Original signature : char* l_getFormattedDate()
*/
public static native Pointer l_getFormattedDate();
/**
* Original signature : char* stringNew(const char*)
*/
public static native Pointer stringNew(String src);
/**
* Original signature :
* l_ok stringCopy(char*, const char*, l_int32)
*/
public static native int stringCopy(ByteBuffer dest, String src, int n);
/**
* Original signature :
* char* stringCopySegment(const char*, l_int32, l_int32)
*/
public static native Pointer stringCopySegment(String src, int start, int nbytes);
/**
* Original signature : l_ok stringReplace(char**, const char*)
*/
public static native int stringReplace(PointerByReference pdest, String src);
/**
* Original signature :
* l_int32 stringLength(const char*, size_t)
*/
public static native int stringLength(String src, NativeSize size);
/**
* Original signature :
* l_int32 stringCat(char*, size_t, const char*)
*/
public static native int stringCat(ByteBuffer dest, NativeSize size, String src);
/**
* Original signature :
* char* stringConcatNew(const char*, null)
*/
public static native Pointer stringConcatNew(String first, PointerByReference varArgs1);
/**
* Original signature :
* char* stringJoin(const char*, const char*)
*/
public static native Pointer stringJoin(String src1, String src2);
/**
* Original signature : l_ok stringJoinIP(char**, const char*)
*/
public static native int stringJoinIP(PointerByReference psrc1, String src2);
/**
* Original signature : char* stringReverse(const char*)
*/
public static native Pointer stringReverse(String src);
/**
* Original signature :
* char* strtokSafe(char*, const char*, char**)
*/
public static native Pointer strtokSafe(ByteBuffer cstr, String seps, PointerByReference psaveptr);
/**
* Original signature :
* l_ok stringSplitOnToken(char*, const char*, char**, char**)
*/
public static native int stringSplitOnToken(ByteBuffer cstr, String seps, PointerByReference phead, PointerByReference ptail);
/**
* Original signature :
* l_ok stringCheckForChars(const char*, const char*, l_int32*)
*/
public static native int stringCheckForChars(String src, String chars, IntBuffer pfound);
/**
* Original signature :
* char* stringRemoveChars(const char*, const char*)
*/
public static native Pointer stringRemoveChars(String src, String remchars);
/**
* Original signature :
* char* stringReplaceEachSubstr(const char*, const char*, const char*, l_int32*)
*/
public static native Pointer stringReplaceEachSubstr(String src, String sub1, String sub2, IntBuffer pcount);
/**
* Original signature :
* char* stringReplaceSubstr(const char*, const char*, const char*, l_int32*, l_int32*)
*/
public static native Pointer stringReplaceSubstr(String src, String sub1, String sub2, IntBuffer ploc, IntBuffer pfound);
/**
* Original signature :
* L_DNA* stringFindEachSubstr(const char*, const char*)
*/
public static native L_Dna stringFindEachSubstr(String src, String sub);
/**
* Original signature :
* l_int32 stringFindSubstr(const char*, const char*, l_int32*)
*/
public static native int stringFindSubstr(String src, String sub, IntBuffer ploc);
/**
* Original signature :
* l_uint8* arrayReplaceEachSequence(const l_uint8*, size_t, const l_uint8*, size_t, const l_uint8*, size_t, size_t*, l_int32*)
*/
public static native Pointer arrayReplaceEachSequence(ByteBuffer datas, NativeSize dataslen, ByteBuffer seq, NativeSize seqlen, ByteBuffer newseq, NativeSize newseqlen, NativeSizeByReference pdatadlen, IntBuffer pcount);
/**
* Original signature :
* L_DNA* arrayFindEachSequence(const l_uint8*, size_t, const l_uint8*, size_t)
*/
public static native L_Dna arrayFindEachSequence(ByteBuffer data, NativeSize datalen, ByteBuffer sequence, NativeSize seqlen);
/**
* Original signature :
* l_ok arrayFindSequence(const l_uint8*, size_t, const l_uint8*, size_t, l_int32*, l_int32*)
*/
public static native int arrayFindSequence(ByteBuffer data, NativeSize datalen, ByteBuffer sequence, NativeSize seqlen, IntBuffer poffset, IntBuffer pfound);
/**
* Original signature :
* void* reallocNew(void**, l_int32, l_int32)
*/
public static native Pointer reallocNew(PointerByReference pindata, int oldsize, int newsize);
/**
* Original signature :
* l_uint8* l_binaryRead(const char*, size_t*)
*/
public static native Pointer l_binaryRead(String filename, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_uint8* l_binaryReadStream(FILE*, size_t*)
*/
public static native Pointer l_binaryReadStream(FILE fp, NativeSizeByReference pnbytes);
/**
* Original signature :
* l_uint8* l_binaryReadSelect(const char*, size_t, size_t, size_t*)
*/
public static native Pointer l_binaryReadSelect(String filename, NativeSize start, NativeSize nbytes, NativeSizeByReference pnread);
/**
* Original signature :
* l_uint8* l_binaryReadSelectStream(FILE*, size_t, size_t, size_t*)
*/
public static native Pointer l_binaryReadSelectStream(FILE fp, NativeSize start, NativeSize nbytes, NativeSizeByReference pnread);
/**
* Original signature :
* l_ok l_binaryWrite(const char*, const char*, const void*, size_t)
*/
public static native int l_binaryWrite(String filename, String operation, Pointer data, NativeSize nbytes);
/**
* Original signature : size_t nbytesInFile(const char*)
*/
public static native NativeSize nbytesInFile(String filename);
/**
* Original signature : size_t fnbytesInFile(FILE*)
*/
public static native NativeSize fnbytesInFile(FILE fp);
/**
* Original signature :
* l_uint8* l_binaryCopy(const l_uint8*, size_t)
*/
public static native Pointer l_binaryCopy(ByteBuffer datas, NativeSize size);
/**
* Original signature :
* l_ok l_binaryCompare(const l_uint8*, size_t, const l_uint8*, size_t, l_int32*)
*/
public static native int l_binaryCompare(ByteBuffer data1, NativeSize size1, ByteBuffer data2, NativeSize size2, IntBuffer psame);
/**
* Original signature : l_ok fileCopy(const char*, const char*)
*/
public static native int fileCopy(String srcfile, String newfile);
/**
* Original signature :
* l_ok fileConcatenate(const char*, const char*)
*/
public static native int fileConcatenate(String srcfile, String destfile);
/**
* Original signature :
* l_ok fileAppendString(const char*, const char*)
*/
public static native int fileAppendString(String filename, String str);
/**
* Original signature : FILE* fopenReadStream(const char*)
*/
public static native FILE fopenReadStream(String filename);
/**
* Original signature :
* FILE* fopenWriteStream(const char*, const char*)
*/
public static native FILE fopenWriteStream(String filename, String modestring);
/**
* Original signature :
* FILE* fopenReadFromMemory(const l_uint8*, size_t)
*/
public static native FILE fopenReadFromMemory(ByteBuffer data, NativeSize size);
/**
* Original signature : FILE* fopenWriteWinTempfile()
*/
public static native FILE fopenWriteWinTempfile();
/**
* Original signature :
* FILE* lept_fopen(const char*, const char*)
*/
public static native FILE lept_fopen(String filename, String mode);
/**
* Original signature : l_ok lept_fclose(FILE*)
*/
public static native int lept_fclose(FILE fp);
/**
* Original signature : void* lept_calloc(size_t, size_t)
*/
public static native Pointer lept_calloc(NativeSize nmemb, NativeSize size);
/**
* Original signature : void lept_free(void*)
*/
public static native void lept_free(Pointer ptr);
/**
* Original signature : l_int32 lept_mkdir(const char*)
*/
public static native int lept_mkdir(String subdir);
/**
* Original signature : l_int32 lept_rmdir(const char*)
*/
public static native int lept_rmdir(String subdir);
/**
* Original signature :
* void lept_direxists(const char*, l_int32*)
*/
public static native void lept_direxists(String dir, IntBuffer pexists);
/**
* Original signature :
* l_int32 lept_rm_match(const char*, const char*)
*/
public static native int lept_rm_match(String subdir, String substr);
/**
* Original signature :
* l_int32 lept_rm(const char*, const char*)
*/
public static native int lept_rm(String subdir, String tail);
/**
* Original signature : l_int32 lept_rmfile(const char*)
*/
public static native int lept_rmfile(String filepath);
/**
* Original signature :
* l_int32 lept_mv(const char*, const char*, const char*, char**)
*/
public static native int lept_mv(String srcfile, String newdir, String newtail, PointerByReference pnewpath);
/**
* Original signature :
* l_int32 lept_cp(const char*, const char*, const char*, char**)
*/
public static native int lept_cp(String srcfile, String newdir, String newtail, PointerByReference pnewpath);
/**
* Original signature : void callSystemDebug(const char*)
*/
public static native void callSystemDebug(String cmd);
/**
* Original signature :
* l_ok splitPathAtDirectory(const char*, char**, char**)
*/
public static native int splitPathAtDirectory(String pathname, PointerByReference pdir, PointerByReference ptail);
/**
* Original signature :
* l_ok splitPathAtExtension(const char*, char**, char**)
*/
public static native int splitPathAtExtension(String pathname, PointerByReference pbasename, PointerByReference pextension);
/**
* Original signature :
* char* pathJoin(const char*, const char*)
*/
public static native Pointer pathJoin(String dir, String fname);
/**
* Original signature :
* char* appendSubdirs(const char*, const char*)
*/
public static native Pointer appendSubdirs(String basedir, String subdirs);
/**
* Original signature :
* l_ok convertSepCharsInPath(char*, l_int32)
*/
public static native int convertSepCharsInPath(ByteBuffer path, int type);
/**
* Original signature :
* char* genPathname(const char*, const char*)
*/
public static native Pointer genPathname(String dir, String fname);
/**
* Original signature :
* l_ok makeTempDirname(char*, size_t, const char*)
*/
public static native int makeTempDirname(ByteBuffer result, NativeSize nbytes, String subdir);
/**
* Original signature :
* l_ok modifyTrailingSlash(char*, size_t, l_int32)
*/
public static native int modifyTrailingSlash(ByteBuffer path, NativeSize nbytes, int flag);
/**
* Original signature : char* l_makeTempFilename()
*/
public static native Pointer l_makeTempFilename();
/**
* Original signature :
* l_int32 extractNumberFromFilename(const char*, l_int32, l_int32)
*/
public static native int extractNumberFromFilename(String fname, int numpre, int numpost);
/**
* Original signature :
* PIX* pixSimpleCaptcha(PIX*, l_int32, l_int32, l_uint32, l_uint32, l_int32)
*/
public static native Pix pixSimpleCaptcha(Pix pixs, int border, int nterms, int seed, int color, int cmapflag);
/**
* Original signature :
* PIX* pixRandomHarmonicWarp(PIX*, l_float32, l_float32, l_float32, l_float32, l_int32, l_int32, l_uint32, l_int32)
*/
public static native Pix pixRandomHarmonicWarp(Pix pixs, float xmag, float ymag, float xfreq, float yfreq, int nx, int ny, int seed, int grayval);
/**
* Original signature :
* PIX* pixWarpStereoscopic(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixWarpStereoscopic(Pix pixs, int zbend, int zshiftt, int zshiftb, int ybendt, int ybendb, int redleft);
/**
* Original signature :
* PIX* pixStretchHorizontal(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixStretchHorizontal(Pix pixs, int dir, int type, int hmax, int operation, int incolor);
/**
* Original signature :
* PIX* pixStretchHorizontalSampled(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixStretchHorizontalSampled(Pix pixs, int dir, int type, int hmax, int incolor);
/**
* Original signature :
* PIX* pixStretchHorizontalLI(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixStretchHorizontalLI(Pix pixs, int dir, int type, int hmax, int incolor);
/**
* Original signature :
* PIX* pixQuadraticVShear(PIX*, l_int32, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixQuadraticVShear(Pix pixs, int dir, int vmaxt, int vmaxb, int operation, int incolor);
/**
* Original signature :
* PIX* pixQuadraticVShearSampled(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixQuadraticVShearSampled(Pix pixs, int dir, int vmaxt, int vmaxb, int incolor);
/**
* Original signature :
* PIX* pixQuadraticVShearLI(PIX*, l_int32, l_int32, l_int32, l_int32)
*/
public static native Pix pixQuadraticVShearLI(Pix pixs, int dir, int vmaxt, int vmaxb, int incolor);
/**
* Original signature :
* PIX* pixStereoFromPair(PIX*, PIX*, l_float32, l_float32, l_float32)
*/
public static native Pix pixStereoFromPair(Pix pix1, Pix pix2, float rwt, float gwt, float bwt);
/**
* Original signature :
* L_WSHED* wshedCreate(PIX*, PIX*, l_int32, l_int32)
*/
public static native L_WShed wshedCreate(Pix pixs, Pix pixm, int mindepth, int debugflag);
/**
* Original signature : void wshedDestroy(L_WSHED**)
*/
public static native void wshedDestroy(PointerByReference pwshed);
/**
* Original signature : l_ok wshedApply(L_WSHED*)
*/
public static native int wshedApply(L_WShed wshed);
/**
* Original signature :
* l_ok wshedBasins(L_WSHED*, PIXA**, NUMA**)
*/
public static native int wshedBasins(L_WShed wshed, PointerByReference ppixa, PointerByReference pnalevels);
/**
* Original signature : PIX* wshedRenderFill(L_WSHED*)
*/
public static native Pix wshedRenderFill(L_WShed wshed);
/**
* Original signature : PIX* wshedRenderColors(L_WSHED*)
*/
public static native Pix wshedRenderColors(L_WShed wshed);
/**
* Original signature :
* l_ok pixaWriteWebPAnim(const char*, PIXA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixaWriteWebPAnim(String filename, Pixa pixa, int loopcount, int duration, int quality, int lossless);
/**
* Original signature :
* l_ok pixaWriteStreamWebPAnim(FILE*, PIXA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixaWriteStreamWebPAnim(FILE fp, Pixa pixa, int loopcount, int duration, int quality, int lossless);
/**
* Original signature :
* l_ok pixaWriteMemWebPAnim(l_uint8**, size_t*, PIXA*, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixaWriteMemWebPAnim(PointerByReference pencdata, NativeSizeByReference pencsize, Pixa pixa, int loopcount, int duration, int quality, int lossless);
/**
* Original signature : PIX* pixReadStreamWebP(FILE*)
*/
public static native Pix pixReadStreamWebP(FILE fp);
/**
* Original signature :
* PIX* pixReadMemWebP(const l_uint8*, size_t)
*/
public static native Pix pixReadMemWebP(ByteBuffer filedata, NativeSize filesize);
/**
* Original signature :
* l_ok readHeaderWebP(const char*, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderWebP(String filename, IntBuffer pw, IntBuffer ph, IntBuffer pspp);
/**
* Original signature :
* l_ok readHeaderMemWebP(const l_uint8*, size_t, l_int32*, l_int32*, l_int32*)
*/
public static native int readHeaderMemWebP(ByteBuffer data, NativeSize size, IntBuffer pw, IntBuffer ph, IntBuffer pspp);
/**
* Original signature :
* l_ok pixWriteWebP(const char*, PIX*, l_int32, l_int32)
*/
public static native int pixWriteWebP(String filename, Pix pixs, int quality, int lossless);
/**
* Original signature :
* l_ok pixWriteStreamWebP(FILE*, PIX*, l_int32, l_int32)
*/
public static native int pixWriteStreamWebP(FILE fp, Pix pixs, int quality, int lossless);
/**
* Original signature :
* l_ok pixWriteMemWebP(l_uint8**, size_t*, PIX*, l_int32, l_int32)
*/
public static native int pixWriteMemWebP(PointerByReference pencdata, NativeSizeByReference pencsize, Pix pixs, int quality, int lossless);
/**
* Original signature : l_int32 l_jpegSetQuality(l_int32)
*/
public static native int l_jpegSetQuality(int new_quality);
/**
* Original signature : void setLeptDebugOK(l_int32)
*/
public static native void setLeptDebugOK(int allow);
/**
* Original signature :
* l_ok pixaWriteFiles(const char*, PIXA*, l_int32)
*/
public static native int pixaWriteFiles(String rootname, Pixa pixa, int format);
/**
* Original signature :
* l_ok pixWriteDebug(const char*, PIX*, l_int32)
*/
public static native int pixWriteDebug(String fname, Pix pix, int format);
/**
* Original signature :
* l_ok pixWrite(const char*, PIX*, l_int32)
*/
public static native int pixWrite(String fname, Pix pix, int format);
/**
* Original signature :
* l_ok pixWriteAutoFormat(const char*, PIX*)
*/
public static native int pixWriteAutoFormat(String filename, Pix pix);
/**
* Original signature :
* l_ok pixWriteStream(FILE*, PIX*, l_int32)
*/
public static native int pixWriteStream(FILE fp, Pix pix, int format);
/**
* Original signature :
* l_ok pixWriteImpliedFormat(const char*, PIX*, l_int32, l_int32)
*/
public static native int pixWriteImpliedFormat(String filename, Pix pix, int quality, int progressive);
/**
* Original signature : l_int32 pixChooseOutputFormat(PIX*)
*/
public static native int pixChooseOutputFormat(Pix pix);
/**
* Original signature :
* l_int32 getImpliedFileFormat(const char*)
*/
public static native int getImpliedFileFormat(String filename);
/**
* Original signature : l_ok pixGetAutoFormat(PIX*, l_int32*)
*/
public static native int pixGetAutoFormat(Pix pix, IntBuffer pformat);
/**
* Original signature : char* getFormatExtension(l_int32)
*/
public static native Pointer getFormatExtension(int format);
/**
* Original signature :
* l_ok pixWriteMem(l_uint8**, size_t*, PIX*, l_int32)
*/
public static native int pixWriteMem(PointerByReference pdata, NativeSizeByReference psize, Pix pix, int format);
/**
* Original signature :
* l_ok l_fileDisplay(const char*, l_int32, l_int32, l_float32)
*/
public static native int l_fileDisplay(String fname, int x, int y, float scale);
/**
* Original signature : l_ok pixDisplay(PIX*, l_int32, l_int32)
*/
public static native int pixDisplay(Pix pixs, int x, int y);
/**
* Original signature :
* l_ok pixDisplayWithTitle(PIX*, l_int32, l_int32, const char*, l_int32)
*/
public static native int pixDisplayWithTitle(Pix pixs, int x, int y, String title, int dispflag);
/**
* Original signature :
* PIX* pixMakeColorSquare(l_uint32, l_int32, l_int32, l_int32, l_uint32)
*/
public static native Pix pixMakeColorSquare(int color, int size, int addlabel, int location, int textcolor);
/**
* Original signature : void l_chooseDisplayProg(l_int32)
*/
public static native void l_chooseDisplayProg(int selection);
/**
* Original signature :
* void changeFormatForMissingLib(l_int32*)
*/
public static native void changeFormatForMissingLib(IntBuffer pformat);
/**
* Original signature : l_ok pixDisplayWrite(PIX*, l_int32)
*/
public static native int pixDisplayWrite(Pix pixs, int reduction);
/**
* Original signature :
* l_ok pixSaveTiled(PIX*, PIXA*, l_float32, l_int32, l_int32, l_int32)
*/
public static native int pixSaveTiled(Pix pixs, Pixa pixa, float scalefactor, int newrow, int space, int dp);
/**
* Original signature :
* l_ok pixSaveTiledOutline(PIX*, PIXA*, l_float32, l_int32, l_int32, l_int32, l_int32)
*/
public static native int pixSaveTiledOutline(Pix pixs, Pixa pixa, float scalefactor, int newrow, int space, int linewidth, int dp);
/**
* Original signature :
* l_ok pixSaveTiledWithText(PIX*, PIXA*, l_int32, l_int32, l_int32, l_int32, L_BMF*, const char*, l_uint32, l_int32)
*/
public static native int pixSaveTiledWithText(Pix pixs, Pixa pixa, int outwidth, int newrow, int space, int linewidth, L_Bmf bmf, String textstr, int val, int location);
/**
* Original signature :
* l_uint8* zlibCompress(l_uint8*, size_t, size_t*)
*/
public static native Pointer zlibCompress(ByteBuffer datain, NativeSize nin, NativeSizeByReference pnout);
/**
* Original signature :
* l_uint8* zlibUncompress(l_uint8*, size_t, size_t*)
*/
public static native Pointer zlibUncompress(ByteBuffer datain, NativeSize nin, NativeSizeByReference pnout);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy