ImageGear .NET v25.2 - Updated
Intersect Method (ImGearROI)




ImageGear.Core Assembly > ImageGear.Core Namespace > ImGearROI Class : Intersect Method
First ROI to merge.
First image rectangle.
Second ROI to merge.
Second image rectangle.
Horisontal offset of the second ROI and image rectangle.
Vertical offset of the second ROI and image rectangle.
Creates a new ImGearROI instance that is calculated as an intersection of specified ROI and image rectangles.
Syntax
'Declaration
 
Public Shared Function Intersect( _
   ByVal region1 As ImGearROI, _
   ByVal imageRect1 As ImGearRectangle, _
   ByVal region2 As ImGearROI, _
   ByVal imageRect2 As ImGearRectangle, _
   ByVal offsetX As Integer, _
   ByVal offsetY As Integer _
) As ImGearROI
'Usage
 
Dim region1 As ImGearROI
Dim imageRect1 As ImGearRectangle
Dim region2 As ImGearROI
Dim imageRect2 As ImGearRectangle
Dim offsetX As Integer
Dim offsetY As Integer
Dim value As ImGearROI
 
value = ImGearROI.Intersect(region1, imageRect1, region2, imageRect2, offsetX, offsetY)
public static ImGearROI Intersect( 
   ImGearROI region1,
   ImGearRectangle imageRect1,
   ImGearROI region2,
   ImGearRectangle imageRect2,
   int offsetX,
   int offsetY
)
public: static ImGearROI* Intersect( 
   ImGearROI* region1,
   ImGearRectangle imageRect1,
   ImGearROI* region2,
   ImGearRectangle imageRect2,
   int offsetX,
   int offsetY
) 
public:
static ImGearROI^ Intersect( 
   ImGearROI^ region1,
   ImGearRectangle imageRect1,
   ImGearROI^ region2,
   ImGearRectangle imageRect2,
   int offsetX,
   int offsetY
) 

Parameters

region1
First ROI to merge.
imageRect1
First image rectangle.
region2
Second ROI to merge.
imageRect2
Second image rectangle.
offsetX
Horisontal offset of the second ROI and image rectangle.
offsetY
Vertical offset of the second ROI and image rectangle.

Return Value

ImGearROI class object.
Remarks
This method calculate an intersection of regions of interest from two images. Images can have different dimensions, and second image may be positioned at a specified offset relative to the first one. Coordinates of result ROI are relative to the left top corner of the first image.
See Also

Reference

ImGearROI Class
ImGearROI Members
ImGearRectangle Structure

Is this page helpful?
Yes No
Thanks for your feedback.