ImageGear for .NET
ImGearROIMask Constructor(ImGearPage,ImGearPixel,Boolean)
See Also  Example Send Feedback
ImageGear21.Core Assembly > ImageGear.Core Namespace > ImGearROIMask Class > ImGearROIMask Constructor : ImGearROIMask Constructor(ImGearPage,ImGearPixel,Boolean)




page
The page used to construct the ROI mask. Binary (1-bit) pages are not supported.
maskColor
Mask color.
invertSelection
Set to true to build mask according to area not filled with MaskColor.

Glossary Item Box

Initializes a new instance of the ImGearROIMask class, corresponding to an area in the specified page that is filled with the specified color.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

page
The page used to construct the ROI mask. Binary (1-bit) pages are not supported.
maskColor
Mask color.
invertSelection
Set to true to build mask according to area not filled with MaskColor.

Remarks

Creates an instance of ImGearROIMask object corresponding to area in the page that is filled with maskColor. If invertSelection is true, the mask is created for the area that is not filled with maskColor.

The ImGearPixel passed as maskColor should correspond to page's number of channels and bit depth.

This constructor can be used to create an ROI Mask based on the DICOM Pixel Padding Value.

Example

C#Copy Code
// Set ROI to area that is not filled with Pixel Padding Value
ImGearPixel ppv = new ImGearPixel(1, 16);
ppv[0] = 1024;
ImGearRasterPage rasterPage = (ImGearRasterPage)page;
rasterPage.ROI = new ImGearROIMask(page, ppv, true);
Visual BasicCopy Code
' Set ROI to area that is not filled with Pixel Padding Value
Dim ppv As ImGearPixel = New ImGearPixel(1, 16)
ppv(0) = 1024
Dim rasterPage As ImGearRasterPage = igPage
rasterPage.ROI = New ImGearROIMask(igPage, ppv, True)

See Also

©2013. Accusoft Corporation. All Rights Reserved.