ImageGear .NET - Updated
Open Method (ImGearRasterProcessing)




ImageGear23.Core Assembly > ImageGear.Processing Namespace > ImGearRasterProcessing Class : Open Method
Page class object to apply effect to.

Matrix specifying a structuring element (sometimes called the kernel) used to probe the input image. It consists of only 0's and 1's that can have any arbitrary shape and size. The pixels with values of 1 define the neighborhood.

Two-dimensional, or flat, structuring elements are typically much smaller than the image being processed. The center pixel of the structuring element, called the origin, identifies the pixel of interest - the pixel being processed. The pixels in the structuring element containing 1's define the neighborhood of the structuring element. These pixels are also considered in dilation or erosion processing.

You typically choose a structuring element the same size and shape as the objects you want to process in the input image. For example, to find lines in an image, create a linear structuring element.

Applies opening effect to provided raster page using the specified structuring element.
Syntax
'Declaration
 
Public Shared Sub Open( _
   ByVal page As ImGearRasterPage, _
   ByVal matrix(,) As Integer _
) 
'Usage
 
Dim page As ImGearRasterPage
Dim matrix() As Integer
 
ImGearRasterProcessing.Open(page, matrix)
public static void Open( 
   ImGearRasterPage page,
   int[,] matrix
)
public: static void Open( 
   ImGearRasterPage* page,
   int[,]* matrix
) 
public:
static void Open( 
   ImGearRasterPage^ page,
   array<int>^ matrix
) 

Parameters

page
Page class object to apply effect to.
matrix

Matrix specifying a structuring element (sometimes called the kernel) used to probe the input image. It consists of only 0's and 1's that can have any arbitrary shape and size. The pixels with values of 1 define the neighborhood.

Two-dimensional, or flat, structuring elements are typically much smaller than the image being processed. The center pixel of the structuring element, called the origin, identifies the pixel of interest - the pixel being processed. The pixels in the structuring element containing 1's define the neighborhood of the structuring element. These pixels are also considered in dilation or erosion processing.

You typically choose a structuring element the same size and shape as the objects you want to process in the input image. For example, to find lines in an image, create a linear structuring element.

Remarks
This method is applicable to:

The basic effect of an opening is somewhat like erosion (Erode) in that it tends to remove some of the foreground (bright) pixels from the edges of regions of foreground pixels. However it is less destructive than erosion in general. The exact operation is determined by the matrix structuring element. The effect of the operator is to preserve foreground regions that have a similar shape to this structuring element, or that can completely contain the structuring element, while eliminating all other regions of foreground pixels.

See Also

Reference

ImGearRasterProcessing Class
ImGearRasterProcessing Members
ImGearRasterPage Class