Documentation
|
#include <ImageProcess.h>
Public Member Functions | |
ImageProcess (void) | |
Default Constructor for ImageProcess. | |
System::Drawing::Image^ | DeskewImage (System::Drawing::Image^ srcImage) |
Implements Deskew operation on an image. More... | |
System::Drawing::Image^ | RotateImage (System::Drawing::Image^ srcImage, int iRotate_Angle) |
Rotates the given image by provided angle of rotation. More... | |
System::Drawing::Image^ | FlipImageH (System::Drawing::Image^ srcImage) |
Flips given image Horizontally. More... | |
System::Drawing::Image^ | FlipImageV (System::Drawing::Image^ srcImage) |
Flips given image Vertically. More... | |
System::Drawing::Image^ | ScaleImage (System::Drawing::Image^ srcImage, int iWidth, int iHeight) |
Scales the source image according to the given dimensions. More... | |
System::Drawing::Image^ | CropImage (System::Drawing::Image^ srcImage, System::Drawing::Rectangle^ cropRect) |
Gets a cropped image from the source according to the given rectangle. More... | |
System::Drawing::Image^ | ImageContrast (System::Drawing::Image^ srcImage, float fValue) |
Implements contrast on the source image by the given float value. More... | |
System::Drawing::Image^ | ImageBrigthness (System::Drawing::Image^ srcImage, float fValue) |
Implements Brightness on the source image by the given float value. More... | |
System::Drawing::Image^ | ImageIntensity (System::Drawing::Image^ srcImage, int iLow, int iHigh, int iGamma) |
Implements image intensity operation on grayscale images if the source is not grayscale dose'nt performs any operation. More... | |
System::Drawing::Image^ | GrayScaleImage (System::Drawing::Image^ srcImage) |
Converts the given image to Grayscale image. More... | |
System::Drawing::Image^ | SharpImage (System::Drawing::Image^ srcImage) |
Increases the sharpness of the given image. More... | |
System::Drawing::Image^ | SmoothEdgesImage (System::Drawing::Image^ srcImage) |
Increases the smoothness of the edges in the given image. More... | |
System::Drawing::Image^ | EdgeDetectorImage (System::Drawing::Image^ srcImage) |
Detects the edges of the objects present in the given image. More... | |
System::Drawing::Image^ | LaplacianEdgeDetection (System::Drawing::Image^ srcImage) |
Detects the edges of the objects present in the given image using the Laplacian algorithm. More... | |
System::Drawing::Image^ | AutoCrop (System::Drawing::Image^ srcImage, System::Drawing::Color^ cropColor) |
Implements autocrop operation on the given image. More... | |
System::Drawing::Image^ | WatermarkImage (System::Drawing::Image^ SrcImage, System::String^ WatermarkText, System::Drawing::Color^ textColor, System::Drawing::Font^ font, int iRotation_Angle, int iOpacity, bool bAutoAdjust) |
Writes a water mark image to the given image. More... | |
List< System::Drawing::Rectangle >^ | CompareImages (System::Drawing::Image^ baseImage, System::Drawing::Image^ newImage) |
Compares the given images on the basis of pixel wise differences in the colors. More... | |
System::Drawing::Image^ | GaussianFilterImage (System::Drawing::Image^ srcImage) |
System::Drawing::Image^ | GaussianFilterImage (System::Drawing::Image^ srcImage, int iWeight) |
System::Drawing::Image^ | ProcessImage (System::Drawing::Image^ srcImage, PageInfo^ pgInfo) |
Implements various operations on the given image according to the values provided in the PageInfo object. More... | |
System::Drawing::Image^ | BrightContIntImage (System::Drawing::Image^ srcImage, int iBrightness, int iContrast, int iIntensity) |
Implements Brightness, Contrast and Intensity on the source image. More... | |
ImageProcess class provides the implementation of all the supported image operations and filters.
Image ImageProcess::AutoCrop | ( | System::Drawing::Image^ | srcImage, |
System::Drawing::Color^ | cropColor | ||
) |
Implements autocrop operation on the given image.
srcImage | : The image on which the autocrop operation is to be applied. |
cropColor | : The color which will be used to define the boundries ot he object present in the source image . |
Image ImageProcess::BrightContIntImage | ( | System::Drawing::Image^ | srcImage, |
int | iBrightness, | ||
int | iContrast, | ||
int | iIntensity | ||
) |
Implements Brightness, Contrast and Intensity on the source image.
srcImage | : The source image which is to be processed. |
iBrightness | : Brightness value of the new image. |
iContrast | : Contrast value of the new image. |
iIntensity | : Intensity value of the new image. |
List< Rectangle > ImageProcess::CompareImages | ( | System::Drawing::Image^ | baseImage, |
System::Drawing::Image^ | newImage | ||
) |
Compares the given images on the basis of pixel wise differences in the colors.
baseImage | : The base image aginst which the new image is to be compared . |
newImage | : The image which is being compared(Should be equal in dimensions and bit depth to the base image else the result will be empty list). |
Image ImageProcess::CropImage | ( | System::Drawing::Image^ | srcImage, |
System::Drawing::Rectangle^ | cropRect | ||
) |
Gets a cropped image from the source according to the given rectangle.
srcImage | : The image which is to be Cropped. |
cropRect | : The crop rectangle which defines the area that will be cropped. |
Image ImageProcess::DeskewImage | ( | System::Drawing::Image^ | srcImage | ) |
Implements Deskew operation on an image.
srcImage | : is the image on which the operation is to be implemented. |
Image ImageProcess::EdgeDetectorImage | ( | System::Drawing::Image^ | srcImage | ) |
Detects the edges of the objects present in the given image.
srcImage | : The image on which the edge detection operation is to be applied. |
Image ImageProcess::FlipImageH | ( | System::Drawing::Image^ | srcImage | ) |
Flips given image Horizontally.
srcImage | : The image which is to be flipped. |
Image ImageProcess::FlipImageV | ( | System::Drawing::Image^ | srcImage | ) |
Flips given image Vertically.
srcImage | : The image which is to be flipped. |
Image ImageProcess::GrayScaleImage | ( | System::Drawing::Image^ | srcImage | ) |
Converts the given image to Grayscale image.
srcImage | : The image on which the grayscale operation is to be applied. |
Image ImageProcess::ImageBrigthness | ( | System::Drawing::Image^ | srcImage, |
float | fValue | ||
) |
Implements Brightness on the source image by the given float value.
srcImage | : The image on which the Brightness is to be applied. |
fValue | : The float value by which the Brightness is to be implemented. |
Image ImageProcess::ImageContrast | ( | System::Drawing::Image^ | srcImage, |
float | fValue | ||
) |
Implements contrast on the source image by the given float value.
srcImage | : The image on which the Contrast is to be applied. |
fValue | : The float value by which the contrast is to be implemented. |
Image ImageProcess::ImageIntensity | ( | System::Drawing::Image^ | srcImage, |
int | iLow, | ||
int | iHigh, | ||
int | iGamma | ||
) |
Implements image intensity operation on grayscale images if the source is not grayscale dose'nt performs any operation.
srcImage | : The image on which the Intensity is to be applied. |
iLow | : The pixel values below this will be clipped to 0 i.e will be made black. |
iHigh | : The pixel values above this will be clipped to 255 i.e will be made white. |
iGamma | : The factor by which the remaining pixels will linearly mapped to a new values between 0 and 255. |
Image ImageProcess::LaplacianEdgeDetection | ( | System::Drawing::Image^ | srcImage | ) |
Detects the edges of the objects present in the given image using the Laplacian algorithm.
srcImage | : The image on which the edge detection operation is to be applied. |
Image ImageProcess::ProcessImage | ( | System::Drawing::Image^ | srcImage, |
PageInfo^ | pgInfo | ||
) |
Implements various operations on the given image according to the values provided in the PageInfo object.
srcImage | : The source image which is to be processed. |
pgInfo | : The PageInfo object which is used to decide the operations to be implemented on the source image. |
Image ImageProcess::RotateImage | ( | System::Drawing::Image^ | srcImage, |
int | iRotate_Angle | ||
) |
Rotates the given image by provided angle of rotation.
srcImage | : The image on which the rotation is to be implemented. |
iRotate_Angle | : The angle (in degree) by which the image is to be rotated . |
Image ImageProcess::ScaleImage | ( | System::Drawing::Image^ | srcImage, |
int | iWidth, | ||
int | iHeight | ||
) |
Scales the source image according to the given dimensions.
srcImage | : The image which is to be Scaled. |
iFinal_Width | : The desired width of the scaled Image. |
iFinal_Height | : The desired height of the scaled Image. |
Image ImageProcess::SharpImage | ( | System::Drawing::Image^ | srcImage | ) |
Increases the sharpness of the given image.
srcImage | : The image on which the sharpness operation is to be applied. |
Image ImageProcess::SmoothEdgesImage | ( | System::Drawing::Image^ | srcImage | ) |
Increases the smoothness of the edges in the given image.
srcImage | : The image on which the smoothness operation is to be applied. |
Image ImageProcess::WatermarkImage | ( | System::Drawing::Image^ | SrcImage, |
System::String^ | WatermarkText, | ||
System::Drawing::Color^ | textColor, | ||
System::Drawing::Font^ | font, | ||
int | iRotation_Angle, | ||
int | iOpacity, | ||
bool | bAutoAdjust | ||
) |
Writes a water mark image to the given image.
watermarkText | : The text string to be written as water mark to the source image. |
textColor | : the desired color of rhe text of the water mark. |
font | : The font which will be used to write water mark text. Can be any supported font. |
iRotation_Angle | : The angle by which the water mark will be rotated according to the given image. |
iOpacity | : The desired opacity value of the water mark. |
bAutoAdjust:Sets | the font size of the string so as to fit the page size if set to true else the the text may get truncated. |