Unibrain API-810 User Manual Page 54

  • Download
  • Add to my manuals
  • Print
  • Page
    / 95
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 53
54
SetROI method
Prototype
SetROI(ushort left, ushort top, ushort width, ushort height)
Comments
This method is used to set the desired coordinates and size of the Region of Interest for the
FireiUserDefinedStreamFormat.
The left and top values must be greater than or equal to 0 and less than or equal to the MaxWidth and
MaxHeight properties respectively. They must also be perfectly divisible by HorizontalPositionUnit
and VerticalPositionUnit respectively.
The width and height values must be greater than or equal to WidthUnit and HeightUnit respectively
and less than or equal to MaxWidth and MaxHeight respectively. They must also be perfectly divisible by
WidthUnit and HeightUnit respectively. Additionally, they must not be greater than the available
rectangle as set by the left and top values (i.e., the sum of width and left must not be greater than
MaxWidth and the sum of height and top must not be greater than MaxHeight).
In case the above conditions are not met an exception will be thrown, containing an informative message.
The method will not query the camera for validity; any checks are made inside the SDK, according to the
reported parameters of the camera.
Visual Basic syntax
UserDefined.SetROI(0, 0, 160, 120)
C# syntax
UserDefined.SetROI(0, 0, 160, 120);
Page view 53
1 2 ... 49 50 51 52 53 54 55 56 57 58 59 ... 94 95

Comments to this Manuals

No comments