Documentation
 All Classes Functions Variables Properties
ImageProcess Class Reference

#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...
 

Detailed Description

ImageProcess class provides the implementation of all the supported image operations and filters.

Member Function Documentation

Image ImageProcess::AutoCrop ( System::Drawing::Image^  srcImage,
System::Drawing::Color^  cropColor 
)

Implements autocrop operation on the given image.

Parameters
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 .
Returns
Returns the cropped image.
Image ImageProcess::BrightContIntImage ( System::Drawing::Image^  srcImage,
int  iBrightness,
int  iContrast,
int  iIntensity 
)

Implements Brightness, Contrast and Intensity on the source image.

Parameters
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.
Returns
Returns the processed image after implementing all the three operations.
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.

Parameters
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).
Returns
Returns the list of the rectangles of the locations which are different in the two images.
Image ImageProcess::CropImage ( System::Drawing::Image^  srcImage,
System::Drawing::Rectangle^  cropRect 
)

Gets a cropped image from the source according to the given rectangle.

Parameters
srcImage: The image which is to be Cropped.
cropRect: The crop rectangle which defines the area that will be cropped.
Returns
Returns the cropped portion of the image.
Image ImageProcess::DeskewImage ( System::Drawing::Image^  srcImage)

Implements Deskew operation on an image.

Parameters
srcImage: is the image on which the operation is to be implemented.
Returns
Returns : the Deskewed image.
Image ImageProcess::EdgeDetectorImage ( System::Drawing::Image^  srcImage)

Detects the edges of the objects present in the given image.

Parameters
srcImage: The image on which the edge detection operation is to be applied.
Returns
Returns the image with only the edges drawn.
Image ImageProcess::FlipImageH ( System::Drawing::Image^  srcImage)

Flips given image Horizontally.

Parameters
srcImage: The image which is to be flipped.
Returns
Returns the flipped image.
Image ImageProcess::FlipImageV ( System::Drawing::Image^  srcImage)

Flips given image Vertically.

Parameters
srcImage: The image which is to be flipped.
Returns
Returns the flipped image.
Image ImageProcess::GrayScaleImage ( System::Drawing::Image^  srcImage)

Converts the given image to Grayscale image.

Parameters
srcImage: The image on which the grayscale operation is to be applied.
Returns
Returns the grayscaled image .
Image ImageProcess::ImageBrigthness ( System::Drawing::Image^  srcImage,
float  fValue 
)

Implements Brightness on the source image by the given float value.

Parameters
srcImage: The image on which the Brightness is to be applied.
fValue: The float value by which the Brightness is to be implemented.
Returns
Returns the image with the the given brightness implemented.
Image ImageProcess::ImageContrast ( System::Drawing::Image^  srcImage,
float  fValue 
)

Implements contrast on the source image by the given float value.

Parameters
srcImage: The image on which the Contrast is to be applied.
fValue: The float value by which the contrast is to be implemented.
Returns
Returns the image with the the given contrast 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.

Parameters
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.
Returns
Returns the image with the the given brightness implemented.
Image ImageProcess::LaplacianEdgeDetection ( System::Drawing::Image^  srcImage)

Detects the edges of the objects present in the given image using the Laplacian algorithm.

Parameters
srcImage: The image on which the edge detection operation is to be applied.
Returns
Returns the image with only the edges drawn.
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.

Parameters
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.
Returns
Returns the processed image.
Image ImageProcess::RotateImage ( System::Drawing::Image^  srcImage,
int  iRotate_Angle 
)

Rotates the given image by provided angle of rotation.

Parameters
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 .
Returns
Returns the rotated image.
Image ImageProcess::ScaleImage ( System::Drawing::Image^  srcImage,
int  iWidth,
int  iHeight 
)

Scales the source image according to the given dimensions.

Parameters
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.
Returns
Returns the Scaled image.
Image ImageProcess::SharpImage ( System::Drawing::Image^  srcImage)

Increases the sharpness of the given image.

Parameters
srcImage: The image on which the sharpness operation is to be applied.
Returns
Returns the sharpend image .
Image ImageProcess::SmoothEdgesImage ( System::Drawing::Image^  srcImage)

Increases the smoothness of the edges in the given image.

Parameters
srcImage: The image on which the smoothness operation is to be applied.
Returns
Returns the smoothened image .
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.

Parameters
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:Setsthe font size of the string so as to fit the page size if set to true else the the text may get truncated.
Returns
Returns the cropped image.

The documentation for this class was generated from the following file: