public class MSTImageProcess
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.awt.image.BufferedImage[] |
buff |
Constructor and Description |
---|
MSTImageProcess() |
Modifier and Type | Method and Description |
---|---|
java.awt.image.BufferedImage |
autoCropImage(java.awt.image.BufferedImage obj)
Gives the minimum image area and crops the rest.
|
java.awt.image.BufferedImage |
brightContarstIntense(java.awt.image.BufferedImage obj,
float brightness,
float contrast,
boolean intensity)
Apply Brightness , Contrast and Intensity of an image simultaneously.
|
java.awt.image.BufferedImage |
cropImage(java.awt.image.BufferedImage img,
java.awt.Rectangle rec)
Crops the area of given height and width from the image.
|
java.awt.image.BufferedImage |
deskewImage(java.awt.image.BufferedImage obj)
Performs DESKEW operation on the given BufferedImage object.
|
java.awt.image.BufferedImage |
edgeDetection(java.awt.image.BufferedImage obj,
int value)
Performs the edge detection on the image.
|
java.awt.image.BufferedImage |
flipImageHorizontal(java.awt.image.BufferedImage obj)
Flips the given BufferedImage horizontally.
|
java.awt.image.BufferedImage |
flipImageVertical(java.awt.image.BufferedImage obj)
Flips the given BufferedImage vertically.
|
java.awt.image.BufferedImage |
gaussianFilter(java.awt.image.BufferedImage obj)
Apply Gaussian Filter on the image.
|
java.awt.image.BufferedImage |
grayScalefilterImage(java.awt.image.BufferedImage obj)
Performs GrayScale-filter operation on the given BufferedImage object.
|
java.awt.image.BufferedImage |
imageBrightness(java.awt.image.BufferedImage obj,
float value)
Adjusts the Brightness of the image.
|
java.util.ArrayList |
imageCompare(java.awt.image.BufferedImage obj,
java.awt.image.BufferedImage obj1)
Gives the minimum image area and crops the rest.
|
java.awt.image.BufferedImage |
imageContrast(java.awt.image.BufferedImage obj,
float value)
Adjusts the Contrast of the image.
|
java.awt.image.BufferedImage |
imageIntensity(java.awt.image.BufferedImage obj)
Adjusts the intensity of the image.
|
java.awt.image.BufferedImage |
imageSharpness(java.awt.image.BufferedImage obj,
int value)
Adjusts the sharpness of the image.
|
java.awt.image.BufferedImage |
imageSmoothness(java.awt.image.BufferedImage obj,
int value)
Adjusts the smoothness of the image.
|
java.awt.image.BufferedImage |
invertImage(java.awt.image.BufferedImage obj)
Performs INVERT operation on the given BufferedImage object.
|
java.awt.image.BufferedImage |
noiceReductionfilterImage(java.awt.image.BufferedImage obj)
Performs noice-reduction operation on the given BufferedImage object.
|
java.awt.image.BufferedImage |
processImage(java.awt.image.BufferedImage image,
MST.Imaging.ImageProcessing.PageInfo pageInfo)
Process the image with the specified image operations in the PageInfo object.
|
java.awt.image.BufferedImage |
resizeImage(java.awt.image.BufferedImage obj,
java.lang.Double scale)
Resize the image on the given scale.
|
java.awt.image.BufferedImage |
rotateImage(java.awt.image.BufferedImage obj,
Rotate rotationValue)
Rotates the given BufferedImage by the specified angle as 90,180,-90 degree.
|
java.awt.image.BufferedImage |
WatermarkImage(java.awt.image.BufferedImage SrcImage,
java.lang.String WatermarkText,
java.awt.Font font,
int RotationAngle,
float opacity)
Apply Watermark on the image.
|
public java.awt.image.BufferedImage rotateImage(java.awt.image.BufferedImage obj, Rotate rotationValue) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object which is to be rotated.rotationValue
- -
- ROTATE_90 = for 90 degree clockwise rotation.-
- ROTATE_180 = for 180 degree rotation.-
- ROTATE_270 = for 90 degree counter-clockwise rotation.MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage grayScalefilterImage(java.awt.image.BufferedImage obj) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage resizeImage(java.awt.image.BufferedImage obj, java.lang.Double scale) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage noiceReductionfilterImage(java.awt.image.BufferedImage obj) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage edgeDetection(java.awt.image.BufferedImage obj, int value) throws MST.Imaging.ImageProcessing.MSTException
obj
- BufferedImage object.value
- 1
- = Fri-Chen,2
- = Prewitt,3
- = Robert,4
- = SobleMST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage gaussianFilter(java.awt.image.BufferedImage obj) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage imageIntensity(java.awt.image.BufferedImage obj) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage imageSmoothness(java.awt.image.BufferedImage obj, int value) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .value
- 0 to 10.MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage imageSharpness(java.awt.image.BufferedImage obj, int value) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .value
- 0 to 10.MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage imageBrightness(java.awt.image.BufferedImage obj, float value) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .value
- 0.0 to 3.0MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage imageContrast(java.awt.image.BufferedImage obj, float value) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .value
- 0.0 to 3.0MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage brightContarstIntense(java.awt.image.BufferedImage obj, float brightness, float contrast, boolean intensity) throws MST.Imaging.ImageProcessing.MSTException
obj
- Bufferedimage .brightness
- 0.0 to 3.0contrast
- 0.0 to 3.0intensity
- MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage flipImageHorizontal(java.awt.image.BufferedImage obj) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object which is to be rotated.MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage flipImageVertical(java.awt.image.BufferedImage obj) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object which is to be rotated.MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage deskewImage(java.awt.image.BufferedImage obj) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage invertImage(java.awt.image.BufferedImage obj) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage autoCropImage(java.awt.image.BufferedImage obj) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage cropImage(java.awt.image.BufferedImage img, java.awt.Rectangle rec) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .rec
- Rectangle object.MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage processImage(java.awt.image.BufferedImage image, MST.Imaging.ImageProcessing.PageInfo pageInfo) throws MST.Imaging.ImageProcessing.MSTException
image
- Source BufferedImage object .pageInfo
- Attributes to open the image with.MST.Imaging.ImageProcessing.MSTException
public java.awt.image.BufferedImage WatermarkImage(java.awt.image.BufferedImage SrcImage, java.lang.String WatermarkText, java.awt.Font font, int RotationAngle, float opacity) throws MST.Imaging.ImageProcessing.MSTException
SrcImage
- Source bufferedImage.WatermarkText
- Text that is to be added as watermark.font
- font.RotationAngle
- Angle at which the text is to be rotated.opacity
- Transparency .MST.Imaging.ImageProcessing.MSTException
public java.util.ArrayList imageCompare(java.awt.image.BufferedImage obj, java.awt.image.BufferedImage obj1) throws MST.Imaging.ImageProcessing.MSTException
obj
- Source BufferedImage object .MST.Imaging.ImageProcessing.MSTException