ImageGear for Java User Guide > Using ImageGear for Java > Using the com.accusoft.imagegear.processing Package |
The com.accusoft.imagegear.processing package API provides various image processing capabilities, including the following image correction, advanced image processing, and image effects methods:
Background Correction
You can add, remove, or find the tilt for a specified image. These methods can be applied only to 8, 16 or 32-bpp grayscale images with one channel.
The ImGearRasterProcessing.AddTilt method adds a specified plane to the input image to correct for a tilt in the image luminance. The plane has X and Y zero crossing at the center of the input image with the slope of the plane in X direction and the slope of the plane in Y direction, as specified in the arguments.
The ImGearRasterProcessing.RemoveTilt method computes the best-fit plane for an image, and then subtracts that plane from the image to produce the output. This is very handy for correcting illumination gradients in a poorly digitized image.
Finding Tilt The ImGearRasterProcessing.FindTilt Method computes the least-squares best fit plane for an image. The plane will be given by formula: f(x, y) = SlopeX * x + SlopeY * y + Piston.
Bi-Linear and Bi-Cubic Interpolation
Image Enhancement
This ImGearRasterProcessing.EnhanceLocal method enhances sharpness of an image using the local standard deviation and mean.
It transforms the input image f(x, y) to a new image g(x, y) based on the following formula,
g(x, y) = A(x, y) * [f(x, y) - m(x, y)] + m(x, y)
where,
A(x, y) = k * M / sigma(x, y), with k being a scaling factor within the range [0, 1], m(x, y) and sigma(x, y) being the local mean and local standard deviation, and M being the global mean of the input image.
To avoid the problem of spikes caused by too small local standard deviation, a check against the minimum allowed standard deviation is performed. If the local standard deviation is too small, the minimum allowed instead will be used in the calculation.
Can be applied only to 8-bit grayscale images with one channel.
Speckle Removal
... and many more.