Bases: builtins.object
region([x, y, w, h [,type=region.RECTANGLE]]) -> creates a rectangular or elliptical region.
This class is a wrapper for the class QRegion of Qt. It provides possibilities for creating pixel-based regions. Furtherone you can calculate new regions based on the intersection, union or subtraction of other regions. Based on the region it is possible to get a uint8 masked dataObject, where every point within the entire region has the value 255 and all other values 0
Parameters: | x : {int}
y : {int}
w : {int}
h : {int}
type : {int}, optional
|
---|
Notes
It is also possible to create an empty instance of the region.