@Namespace(value="tesseract") @NoOffset @Properties(inherit=tesseract.class) public class ImageThresholder extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
ImageThresholder(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
Clear()
Destroy the Pix if there is one, freeing memory.
|
void |
GetImageSizes(int[] left,
int[] top,
int[] width,
int[] height,
int[] imagewidth,
int[] imageheight) |
void |
GetImageSizes(IntBuffer left,
IntBuffer top,
IntBuffer width,
IntBuffer height,
IntBuffer imagewidth,
IntBuffer imageheight) |
void |
GetImageSizes(IntPointer left,
IntPointer top,
IntPointer width,
IntPointer height,
IntPointer imagewidth,
IntPointer imageheight)
Get enough parameters to be able to rebuild bounding boxes in the
original image (not just within the rectangle).
|
org.bytedeco.leptonica.PIX |
GetPixRectThresholds() |
int |
GetScaledEstimatedResolution() |
int |
GetScaledYResolution() |
int |
GetScaleFactor() |
int |
GetSourceYResolution() |
boolean |
IsBinary()
Returns true if the source image is binary.
|
boolean |
IsColor()
Return true if the source image is color.
|
void |
SetEstimatedResolution(int ppi) |
void |
SetSourceYResolution(int ppi) |
boolean |
ThresholdToPix(int pageseg_mode,
org.bytedeco.leptonica.PIX pix) |
boolean |
ThresholdToPix(int pageseg_mode,
PointerPointer pix)
Threshold the source image as efficiently as possible to the output Pix.
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getPointer, getPointer, getPointer, getPointer, hashCode, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public ImageThresholder(Pointer p)
Pointer(Pointer)
.public void Clear()
public void GetImageSizes(IntPointer left, IntPointer top, IntPointer width, IntPointer height, IntPointer imagewidth, IntPointer imageheight)
public void GetImageSizes(IntBuffer left, IntBuffer top, IntBuffer width, IntBuffer height, IntBuffer imagewidth, IntBuffer imageheight)
public void GetImageSizes(int[] left, int[] top, int[] width, int[] height, int[] imagewidth, int[] imageheight)
public int GetScaleFactor()
public void SetSourceYResolution(int ppi)
public int GetSourceYResolution()
public int GetScaledYResolution()
public void SetEstimatedResolution(int ppi)
public int GetScaledEstimatedResolution()
@Cast(value="bool") public boolean ThresholdToPix(@Cast(value="tesseract::PageSegMode") int pageseg_mode, @Cast(value="Pix**") PointerPointer pix)
@Cast(value="bool") public boolean ThresholdToPix(@Cast(value="tesseract::PageSegMode") int pageseg_mode, @ByPtrPtr org.bytedeco.leptonica.PIX pix)
public org.bytedeco.leptonica.PIX GetPixRectThresholds()
Copyright © 2021. All rights reserved.