MatrixFunc
Inheritance: java.lang.Object
public class MatrixFunc
Constructors
Constructor | Description |
---|---|
MatrixFunc() |
Methods
MatrixFunc()
public MatrixFunc()
convertByteBitmapToFloatBitmap(ByteBitmap aBmp)
public static FloatBitmap convertByteBitmapToFloatBitmap(ByteBitmap aBmp)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap |
Returns: FloatBitmap
convertByteBitmapToShortBitmap(ByteBitmap aBmp)
public static ShortBitmap convertByteBitmapToShortBitmap(ByteBitmap aBmp)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap |
Returns: ShortBitmap
convertFloatBitmapToByteBitmap(FloatBitmap aBmp)
public static ByteBitmap convertFloatBitmapToByteBitmap(FloatBitmap aBmp)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | FloatBitmap |
Returns: ByteBitmap
convertShortBitmapToByteBitmap(ShortBitmap aBmp)
public static ByteBitmap convertShortBitmapToByteBitmap(ShortBitmap aBmp)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ShortBitmap |
Returns: ByteBitmap
cut(ByteBitmap bitmap, System.Drawing.Rectangle aRect)
public static ByteBitmap cut(ByteBitmap bitmap, System.Drawing.Rectangle aRect)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | |
aRect | com.aspose.ms.System.Drawing.Rectangle |
Returns: ByteBitmap
cut(ByteBitmap bitmap, System.Drawing.Rectangle rectangle, int orientation)
public static ByteBitmap cut(ByteBitmap bitmap, System.Drawing.Rectangle rectangle, int orientation)
Fast cuts and rotate the bitmap by a rectangle and the orientation
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | Input bitmap |
rectangle | com.aspose.ms.System.Drawing.Rectangle | A rectangle |
orientation | int | An orientation |
Returns: ByteBitmap - The cutted and rotated bytebitmap
cut(FloatBitmap bitmap, System.Drawing.Rectangle aRect)
public static FloatBitmap cut(FloatBitmap bitmap, System.Drawing.Rectangle aRect)
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | FloatBitmap | |
aRect | com.aspose.ms.System.Drawing.Rectangle |
Returns: FloatBitmap
decreaseBitmapOriginal(ByteBitmap aBmp, int aZoom)
public static ByteBitmap decreaseBitmapOriginal(ByteBitmap aBmp, int aZoom)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | |
aZoom | int |
Returns: ByteBitmap
decreaseBitmapSelection(ByteBitmap aBmp, int aZoom)
public static ByteBitmap decreaseBitmapSelection(ByteBitmap aBmp, int aZoom)
Decreases bitmap. This algorithm select an one point (very fast) o x x x x x x x x x x x x x x x x x x x x x x x x
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | input bitmap |
aZoom | int | zoom |
Returns: ByteBitmap - decreased bitmap
decreaseBitmapSelectionCross(ByteBitmap aBmp, int aZoom)
public static ByteBitmap decreaseBitmapSelectionCross(ByteBitmap aBmp, int aZoom)
Decreases bitmap. This algorithm calculate average color by the cross(not tested, archived) o o o o o o x x x x o x x x x o x x x x o x x x x
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | input bitmap |
aZoom | int | zoom |
Returns: ByteBitmap - decreased bitmap
decreaseBitmapSelectionMedian(ByteBitmap aBmp, int aZoom)
public static ByteBitmap decreaseBitmapSelectionMedian(ByteBitmap aBmp, int aZoom)
Decreases bitmap. This algorithm calculate average color by median(archived)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | input bitmap |
aZoom | int | zoom |
Returns: ByteBitmap - decreased bitmap
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
extendBitmap(ByteBitmap aBmp, int aSide)
public static ByteBitmap extendBitmap(ByteBitmap aBmp, int aSide)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | |
aSide | int |
Returns: ByteBitmap
extendBitmap(ByteBitmap aBmp, int aSide, byte DefaultColor)
public static ByteBitmap extendBitmap(ByteBitmap aBmp, int aSide, byte DefaultColor)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | |
aSide | int | |
DefaultColor | byte |
Returns: ByteBitmap
fitRectangleSizeToArea(System.Drawing.Rectangle aRect, int aMaxWidth, int aMaxHeight)
public static System.Drawing.Rectangle fitRectangleSizeToArea(System.Drawing.Rectangle aRect, int aMaxWidth, int aMaxHeight)
Parameters:
Parameter | Type | Description |
---|---|---|
aRect | com.aspose.ms.System.Drawing.Rectangle | |
aMaxWidth | int | |
aMaxHeight | int |
Returns: com.aspose.ms.System.Drawing.Rectangle
fitRectangleSizeToBitmap(ByteBitmap aBitmap, System.Drawing.Rectangle aRect)
public static System.Drawing.Rectangle fitRectangleSizeToBitmap(ByteBitmap aBitmap, System.Drawing.Rectangle aRect)
Parameters:
Parameter | Type | Description |
---|---|---|
aBitmap | ByteBitmap | |
aRect | com.aspose.ms.System.Drawing.Rectangle |
Returns: com.aspose.ms.System.Drawing.Rectangle
fitReducedSize(int aSize, int ClSide)
public static int fitReducedSize(int aSize, int ClSide)
Parameters:
Parameter | Type | Description |
---|---|---|
aSize | int | |
ClSide | int |
Returns: int
fitToHeight(ByteBitmap byteBitmap, int aVal)
public static int fitToHeight(ByteBitmap byteBitmap, int aVal)
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | |
aVal | int |
Returns: int
fitToWidth(ByteBitmap byteBitmap, int aVal)
public static int fitToWidth(ByteBitmap byteBitmap, int aVal)
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | |
aVal | int |
Returns: int
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
hashCode()
public native int hashCode()
Returns: int
increaseByNearestNeighbour(ByteBitmap byteBitmap, int zoom)
public static ByteBitmap increaseByNearestNeighbour(ByteBitmap byteBitmap, int zoom)
Increases the bytebitmap by nearest neighbour algorithm
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | A bytebitmap |
zoom | int | A zoom |
Returns: ByteBitmap - Increased bytebitmap
inverseByteBitmapColors(ByteBitmap aBitmap)
public static ByteBitmap inverseByteBitmapColors(ByteBitmap aBitmap)
Parameters:
Parameter | Type | Description |
---|---|---|
aBitmap | ByteBitmap |
Returns: ByteBitmap
locateWhiteZone(ByteBitmap byteBitmap, int fromI, int toI, int start, int stop, int sign, boolean flip, int whiteThreshold)
public static List<Integer> locateWhiteZone(ByteBitmap byteBitmap, int fromI, int toI, int start, int stop, int sign, boolean flip, int whiteThreshold)
Locate white zone
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | Input bytebitmap |
fromI | int | first coordinate start |
toI | int | first coordinate end |
start | int | second coordinate start |
stop | int | second coordinate stop |
sign | int | direction of first coordinate |
flip | boolean | True - research vertical lines (1st coordinate y, 2nd - x). False - research horizontal lines (1st coordinate x, 2nd - y) |
whiteThreshold | int |
Returns: List - Quiet zones possible starts
makeBitmapBlur(ByteBitmap aBmp, int HalfWindow)
public static ByteBitmap makeBitmapBlur(ByteBitmap aBmp, int HalfWindow)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | |
HalfWindow | int |
Returns: ByteBitmap
makeBitmapBlurLight(ByteBitmap bitmap)
public static ByteBitmap makeBitmapBlurLight(ByteBitmap bitmap)
Make lighting blur bitmap.
Parameters:
Parameter | Type | Description |
---|---|---|
bitmap | ByteBitmap | bitmap |
Returns: ByteBitmap -
mirrorBitmapHoriz(ByteBitmap aBmp)
public static ByteBitmap mirrorBitmapHoriz(ByteBitmap aBmp)
Mirror Bitmap horizontally
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | Input bytebitmap |
Returns: ByteBitmap - Mirrored bitmap horizontally
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
putBitmap(ByteBitmap SrcBitmap, ByteBitmap DstBitmap, int XShift, int YShift)
public static void putBitmap(ByteBitmap SrcBitmap, ByteBitmap DstBitmap, int XShift, int YShift)
Parameters:
Parameter | Type | Description |
---|---|---|
SrcBitmap | ByteBitmap | |
DstBitmap | ByteBitmap | |
XShift | int | |
YShift | int |
putBitmap(FloatBitmap SrcBitmap, FloatBitmap DstBitmap, int XShift, int YShift)
public static void putBitmap(FloatBitmap SrcBitmap, FloatBitmap DstBitmap, int XShift, int YShift)
Parameters:
Parameter | Type | Description |
---|---|---|
SrcBitmap | FloatBitmap | |
DstBitmap | FloatBitmap | |
XShift | int | |
YShift | int |
reduceBitmap(ByteBitmap aBmp, int aSide)
public static ByteBitmap reduceBitmap(ByteBitmap aBmp, int aSide)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | |
aSide | int |
Returns: ByteBitmap
regrowsBinarized(ByteBitmap aBmp, int aBlackCnt)
public static ByteBitmap regrowsBinarized(ByteBitmap aBmp, int aBlackCnt)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap | |
aBlackCnt | int |
Returns: ByteBitmap
rotate180(ByteBitmap aBmp)
public static ByteBitmap rotate180(ByteBitmap aBmp)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap |
Returns: ByteBitmap
rotate90ClockWise(ByteBitmap aBmp)
public static ByteBitmap rotate90ClockWise(ByteBitmap aBmp)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap |
Returns: ByteBitmap
rotate90CounterClockWise(ByteBitmap aBmp)
public static ByteBitmap rotate90CounterClockWise(ByteBitmap aBmp)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap |
Returns: ByteBitmap
rotateImage(ByteBitmap aBitmap, System.Drawing.Size aResultBmpSize, System.Drawing.PointF aStartPoint, double aAngle, byte aBackground, boolean aClockwise)
public static ByteBitmap rotateImage(ByteBitmap aBitmap, System.Drawing.Size aResultBmpSize, System.Drawing.PointF aStartPoint, double aAngle, byte aBackground, boolean aClockwise)
Parameters:
Parameter | Type | Description |
---|---|---|
aBitmap | ByteBitmap | |
aResultBmpSize | com.aspose.ms.System.Drawing.Size | |
aStartPoint | com.aspose.ms.System.Drawing.PointF | |
aAngle | double | |
aBackground | byte | |
aClockwise | boolean |
Returns: ByteBitmap
rotateImage(ByteBitmap aBitmap, double aAngle, byte aBackground, boolean aClockwise)
public static ByteBitmap rotateImage(ByteBitmap aBitmap, double aAngle, byte aBackground, boolean aClockwise)
Parameters:
Parameter | Type | Description |
---|---|---|
aBitmap | ByteBitmap | |
aAngle | double | |
aBackground | byte | |
aClockwise | boolean |
Returns: ByteBitmap
rotateImageBilinear(ByteBitmap aBitmap, System.Drawing.Size aResultBmpSize, System.Drawing.PointF aResultPoint, System.Drawing.PointF aStartPoint, double aAngle, byte aBackground, boolean aClockwise)
public static ByteBitmap rotateImageBilinear(ByteBitmap aBitmap, System.Drawing.Size aResultBmpSize, System.Drawing.PointF aResultPoint, System.Drawing.PointF aStartPoint, double aAngle, byte aBackground, boolean aClockwise)
Parameters:
Parameter | Type | Description |
---|---|---|
aBitmap | ByteBitmap | |
aResultBmpSize | com.aspose.ms.System.Drawing.Size | |
aResultPoint | com.aspose.ms.System.Drawing.PointF | |
aStartPoint | com.aspose.ms.System.Drawing.PointF | |
aAngle | double | |
aBackground | byte | |
aClockwise | boolean |
Returns: ByteBitmap
rotateImageBilinear(ByteBitmap aBitmap, System.Drawing.Size aResultBmpSize, System.Drawing.PointF aStartPoint, double aAngle, byte aBackground, boolean aClockwise)
public static ByteBitmap rotateImageBilinear(ByteBitmap aBitmap, System.Drawing.Size aResultBmpSize, System.Drawing.PointF aStartPoint, double aAngle, byte aBackground, boolean aClockwise)
Parameters:
Parameter | Type | Description |
---|---|---|
aBitmap | ByteBitmap | |
aResultBmpSize | com.aspose.ms.System.Drawing.Size | |
aStartPoint | com.aspose.ms.System.Drawing.PointF | |
aAngle | double | |
aBackground | byte | |
aClockwise | boolean |
Returns: ByteBitmap
selectAverageBy5Pts(ByteBitmap byteBitmap, int x1, int y1)
public static byte selectAverageBy5Pts(ByteBitmap byteBitmap, int x1, int y1)
Get a average from 5 points: (x1,y1) and 4 pts around
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | Input bytebitmap |
x1 | int | X-coordinate of central point |
y1 | int | y-coordinate of central point |
Returns: byte - A median
selectBlackBitmapFromBinarized(ByteBitmap aBmp)
public static ByteBitmap selectBlackBitmapFromBinarized(ByteBitmap aBmp)
Parameters:
Parameter | Type | Description |
---|---|---|
aBmp | ByteBitmap |
Returns: ByteBitmap
selectMedianAround(ByteBitmap byteBitmap, int x1, int y1)
public static byte selectMedianAround(ByteBitmap byteBitmap, int x1, int y1)
Get a median from 5 points: (x1,y1) and 4 pts around
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | Input bytebitmap |
x1 | int | X-coordinate of central point |
y1 | int | y-coordinate of central point |
Returns: byte - A median
sumLine(ByteBitmap byteBitmap, int start, int stop, int i, boolean flip)
public static float sumLine(ByteBitmap byteBitmap, int start, int stop, int i, boolean flip)
Sum line. Only horizontal or vertical
Parameters:
Parameter | Type | Description |
---|---|---|
byteBitmap | ByteBitmap | Input bytebitmap |
start | int | Start second coordinate |
stop | int | Stop second coordinate |
i | int | First coordinate |
flip | boolean | True - vertical line, false - horizontal line |
Returns: float - Sum of line pixels
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |