|
OpenCV for Unity 2.6.3
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
|
Template class for 2D rectangles. More...
Public Member Functions | |
| Rect2d (double x, double y, double width, double height) | |
| Rect2d () | |
| Rect2d (Point p1, Point p2) | |
| Rect2d (Point p, Size s) | |
| Rect2d (double[] vals) | |
| void | set (double[] vals) |
| Rect2d | clone () |
| Point | tl () |
| Point | br () |
| Size | size () |
| double | area () |
| bool | empty () |
| bool | contains (Point p) |
| override int | GetHashCode () |
| override bool | Equals (Object obj) |
| override String | ToString () |
| Rect2d (in Vec4d vals) | |
| Rect2d (in(double x, double y, double width, double height) vals) | |
| void | set (in Vec4d vals) |
| void | set (in(double x, double y, double width, double height) vals) |
| Vec4d | cloneAsVec4d () |
| double double double double height | cloneAsValueTuple () |
| Vec2d | tlAsVec2d () |
| double double y | tlAsValueTuple () |
| Vec2d | brAsVec2d () |
| double double y | brAsValueTuple () |
| Vec2d | sizeAsVec2d () |
| double double height | sizeAsValueTuple () |
| bool | contains (double x, double y) |
| bool | contains (in Vec2d p) |
| bool | contains (in(double x, double y) p) |
| double double double double height | ToValueTuple () |
| Vec4d | ToVec4d () |
| bool | contains (Rect2d rect) |
| bool | contains (in Vec4d rect) |
| bool | contains (in(double x, double y, double width, double height) rect) |
| void | inflate (double width, double height) |
| Expands the rectangle by decreasing its position and increasing its size by the specified width and height. | |
| void | inflate (Size size) |
| Expands the rectangle by decreasing its position and increasing its size by the specified width and height. | |
| void | inflate (in Vec2d size) |
| Expands the rectangle by decreasing its position and increasing its size by the specified width and height. | |
| void | inflate (in(double width, double height) size) |
| Expands the rectangle by decreasing its position and increasing its size by the specified width and height. | |
| Rect2d | intersect (Rect2d rect) |
| Computes the intersection of the current rectangle with the specified rectangle. | |
| Vec4d | intersectAsVec4d (in Vec4d rect) |
| Computes the intersection of the current rectangle with the specified rectangle. | |
| double double double double height | intersectAsValueTuple (in(double x, double y, double width, double height) rect) |
| bool | intersectsWith (Rect2d rect) |
| Determines whether the current rectangle intersects with the specified rectangle. | |
| bool | intersectsWith (in Vec4d rect) |
| Determines whether the current rectangle intersects with the specified rectangle. | |
| bool | intersectsWith (in(double x, double y, double width, double height) rect) |
| Determines whether the current rectangle intersects with the specified rectangle. | |
| Rect2d | union (Rect2d rect) |
| Returns a new rectangle that represents the union of the current rectangle and the specified rectangle. | |
| Vec4d | unionAsVec4d (in Vec4d rect) |
| Returns a new rectangle that represents the union of the current rectangle and the specified rectangle. | |
| double double double double height | union (in(double x, double y, double width, double height) rect) |
| bool | Equals (Rect2d a) |
Static Public Member Functions | |
| static | operator Vec4d (Rect2d rect) |
| static | operator (double x, double y, double width, double height)(Rect2d rect) |
| static | operator Rect2d (in(double x, double y, double width, double height) valueTuple) |
| static Rect2d | inflate (Rect2d rect, double x, double y) |
| Expands the specified rectangle by decreasing its position and increasing its size by the specified amounts. | |
| static Vec4d | inflateAsVec4d (in Vec4d rect, double x, double y) |
| Expands the specified rectangle by decreasing its position and increasing its size by the specified amounts. | |
| static double double double double height | inflateAsValueTuple (in(double x, double y, double width, double height) rect, double x, double y) |
| static Rect2d | intersect (Rect2d a, Rect2d b) |
| Computes the intersection of two rectangles. | |
| static Vec4d | intersectAsVec4d (in Vec4d a, in Vec4d b) |
| Computes the intersection of two rectangles. | |
| static double double double double height | intersectAsValueTuple (in(double x, double y, double width, double height) a, in(double x, double y, double width, double height) b) |
| static Rect2d | union (Rect2d a, Rect2d b) |
| Returns a new rectangle that represents the union of two specified rectangles. | |
| static Vec4d | unionAsVec4d (in Vec4d a, in Vec4d b) |
| Returns a new rectangle that represents the union of two specified rectangles. | |
| static double double double double height | unionAsValueTuple (in(double x, double y, double width, double height) a, in(double x, double y, double width, double height) b) |
| static Rect2d | operator+ (Rect2d a, Point b) |
| static Rect2d | operator+ (Rect2d a, Size b) |
| static Rect2d | operator- (Rect2d a, Point b) |
| static Rect2d | operator- (Rect2d a, Size b) |
| static Rect2d | operator& (Rect2d a, Rect2d b) |
| static Rect2d | operator| (Rect2d a, Rect2d b) |
| static bool | operator== (Rect2d a, Rect2d b) |
| static bool | operator!= (Rect2d a, Rect2d b) |
Public Attributes | |
| double | x |
| Computes the intersection of the current rectangle with the specified rectangle. | |
| double | y |
| double | width |
| double | height |
| double double | y |
| double double double | width |
Static Public Attributes | |
| static double | x |
| Expands the specified rectangle by decreasing its position and increasing its size by the specified amounts. | |
| static double double | y |
| static double double double | width |
Template class for 2D rectangles.
Described by the following parameters:
OpenCV typically assumes that the top and left boundary of the rectangle are inclusive, while the right and bottom boundaries are not.
C++: cv::Rect_<_Tp> Class Template Reference
| OpenCVForUnity.CoreModule.Rect2d.Rect2d | ( | double | x, |
| double | y, | ||
| double | width, | ||
| double | height ) |
| OpenCVForUnity.CoreModule.Rect2d.Rect2d | ( | ) |
default constructor
| OpenCVForUnity.CoreModule.Rect2d.Rect2d | ( | double[] | vals | ) |
| OpenCVForUnity.CoreModule.Rect2d.Rect2d | ( | in Vec4d | vals | ) |
| double OpenCVForUnity.CoreModule.Rect2d.area | ( | ) |
area (width*height) of the rectangle
| Point OpenCVForUnity.CoreModule.Rect2d.br | ( | ) |
the bottom-right corner
| double double y OpenCVForUnity.CoreModule.Rect2d.brAsValueTuple | ( | ) |
| Vec2d OpenCVForUnity.CoreModule.Rect2d.brAsVec2d | ( | ) |
the bottom-right corner
| Rect2d OpenCVForUnity.CoreModule.Rect2d.clone | ( | ) |
| double double double double height OpenCVForUnity.CoreModule.Rect2d.cloneAsValueTuple | ( | ) |
| Vec4d OpenCVForUnity.CoreModule.Rect2d.cloneAsVec4d | ( | ) |
| bool OpenCVForUnity.CoreModule.Rect2d.contains | ( | double | x, |
| double | y ) |
checks whether the rectangle contains the point
| bool OpenCVForUnity.CoreModule.Rect2d.contains | ( | in Vec2d | p | ) |
checks whether the rectangle contains the point
| bool OpenCVForUnity.CoreModule.Rect2d.contains | ( | in Vec4d | rect | ) |
checks whether the rectangle contains the point
checks whether the rectangle contains the point
| bool OpenCVForUnity.CoreModule.Rect2d.contains | ( | in(double x, double y, double width, double height) | rect | ) |
checks whether the rectangle contains the point
| bool OpenCVForUnity.CoreModule.Rect2d.contains | ( | Point | p | ) |
checks whether the rectangle contains the point
| bool OpenCVForUnity.CoreModule.Rect2d.contains | ( | Rect2d | rect | ) |
checks whether the rectangle contains the point
| bool OpenCVForUnity.CoreModule.Rect2d.empty | ( | ) |
true if empty
| override bool OpenCVForUnity.CoreModule.Rect2d.Equals | ( | Object | obj | ) |
| bool OpenCVForUnity.CoreModule.Rect2d.Equals | ( | Rect2d | a | ) |
| override int OpenCVForUnity.CoreModule.Rect2d.GetHashCode | ( | ) |
| void OpenCVForUnity.CoreModule.Rect2d.inflate | ( | double | width, |
| double | height ) |
Expands the rectangle by decreasing its position and increasing its size by the specified width and height.
| width | The amount to decrease the x-coordinate and increase the width. |
| height | The amount to decrease the y-coordinate and increase the height. |
| void OpenCVForUnity.CoreModule.Rect2d.inflate | ( | in Vec2d | size | ) |
Expands the rectangle by decreasing its position and increasing its size by the specified width and height.
| width | The amount to decrease the x-coordinate and increase the width. |
| height | The amount to decrease the y-coordinate and increase the height. |
Expands the rectangle by decreasing its position and increasing its size by the specified width and height.
| width | The amount to decrease the x-coordinate and increase the width. |
| height | The amount to decrease the y-coordinate and increase the height. |
Expands the specified rectangle by decreasing its position and increasing its size by the specified amounts.
| rect | The rectangle to be expanded. |
| x | The amount to decrease the x-coordinate and increase the width. |
| y | The amount to decrease the y-coordinate and increase the height. |
| void OpenCVForUnity.CoreModule.Rect2d.inflate | ( | Size | size | ) |
Expands the rectangle by decreasing its position and increasing its size by the specified width and height.
| width | The amount to decrease the x-coordinate and increase the width. |
| height | The amount to decrease the y-coordinate and increase the height. |
|
static |
|
static |
Expands the specified rectangle by decreasing its position and increasing its size by the specified amounts.
| rect | The rectangle to be expanded. |
| x | The amount to decrease the x-coordinate and increase the width. |
| y | The amount to decrease the y-coordinate and increase the height. |
Computes the intersection of two rectangles.
| a | The first rectangle. |
| b | The second rectangle. |
Computes the intersection of the current rectangle with the specified rectangle.
| rect | The rectangle to intersect with the current rectangle. |
|
static |
| double double double double height OpenCVForUnity.CoreModule.Rect2d.intersectAsValueTuple | ( | in(double x, double y, double width, double height) | rect | ) |
Computes the intersection of two rectangles.
| a | The first rectangle. |
| b | The second rectangle. |
Computes the intersection of the current rectangle with the specified rectangle.
| rect | The rectangle to intersect with the current rectangle. |
| bool OpenCVForUnity.CoreModule.Rect2d.intersectsWith | ( | in Vec4d | rect | ) |
Determines whether the current rectangle intersects with the specified rectangle.
| rect | The rectangle to check for intersection with the current rectangle. |
true if the rectangles intersect; otherwise, false. | bool OpenCVForUnity.CoreModule.Rect2d.intersectsWith | ( | in(double x, double y, double width, double height) | rect | ) |
Determines whether the current rectangle intersects with the specified rectangle.
| rect | The rectangle to check for intersection with the current rectangle. |
true if the rectangles intersect; otherwise, false. | bool OpenCVForUnity.CoreModule.Rect2d.intersectsWith | ( | Rect2d | rect | ) |
Determines whether the current rectangle intersects with the specified rectangle.
| rect | The rectangle to check for intersection with the current rectangle. |
true if the rectangles intersect; otherwise, false.
|
explicitstatic |
|
explicitstatic |
|
explicitstatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void OpenCVForUnity.CoreModule.Rect2d.set | ( | double[] | vals | ) |
| void OpenCVForUnity.CoreModule.Rect2d.set | ( | in Vec4d | vals | ) |
| void OpenCVForUnity.CoreModule.Rect2d.set | ( | in(double x, double y, double width, double height) | vals | ) |
| Size OpenCVForUnity.CoreModule.Rect2d.size | ( | ) |
size (width, height) of the rectangle
| double double height OpenCVForUnity.CoreModule.Rect2d.sizeAsValueTuple | ( | ) |
| Vec2d OpenCVForUnity.CoreModule.Rect2d.sizeAsVec2d | ( | ) |
size (width, height) of the rectangle
| Point OpenCVForUnity.CoreModule.Rect2d.tl | ( | ) |
the top-left corner
| double double y OpenCVForUnity.CoreModule.Rect2d.tlAsValueTuple | ( | ) |
| Vec2d OpenCVForUnity.CoreModule.Rect2d.tlAsVec2d | ( | ) |
the top-left corner
| override String OpenCVForUnity.CoreModule.Rect2d.ToString | ( | ) |
| double double double double height OpenCVForUnity.CoreModule.Rect2d.ToValueTuple | ( | ) |
| Vec4d OpenCVForUnity.CoreModule.Rect2d.ToVec4d | ( | ) |
| double double double double height OpenCVForUnity.CoreModule.Rect2d.union | ( | in(double x, double y, double width, double height) | rect | ) |
Returns a new rectangle that represents the union of two specified rectangles.
| a | The first rectangle to union. |
| b | The second rectangle to union. |
Returns a new rectangle that represents the union of the current rectangle and the specified rectangle.
| rect | The rectangle to combine with the current rectangle. |
|
static |
Returns a new rectangle that represents the union of two specified rectangles.
| a | The first rectangle to union. |
| b | The second rectangle to union. |
Returns a new rectangle that represents the union of the current rectangle and the specified rectangle.
| rect | The rectangle to combine with the current rectangle. |
| double OpenCVForUnity.CoreModule.Rect2d.height |
height of the rectangle
| static double double double OpenCVForUnity.CoreModule.Rect2d.width |
width of the rectangle
size (width, height) of the rectangle
| double double double OpenCVForUnity.CoreModule.Rect2d.width |
|
static |
| static double OpenCVForUnity.CoreModule.Rect2d.x |
Computes the intersection of the current rectangle with the specified rectangle.
Returns a new rectangle that represents the union of two specified rectangles.
Computes the intersection of two rectangles.
Returns a new rectangle that represents the union of the current rectangle and the specified rectangle.
x coordinate of the top-left corner
the top-left corner
the bottom-right corner
| rect | The rectangle to intersect with the current rectangle. |
| rect | The rectangle to combine with the current rectangle. |
| a | The first rectangle. |
| b | The second rectangle. |
| a | The first rectangle to union. |
| b | The second rectangle to union. |
|
static |
Expands the specified rectangle by decreasing its position and increasing its size by the specified amounts.
Returns a new rectangle that represents the union of two specified rectangles.
Computes the intersection of two rectangles.
| rect | The rectangle to be expanded. |
| x | The amount to decrease the x-coordinate and increase the width. |
| y | The amount to decrease the y-coordinate and increase the height. |
| a | The first rectangle. |
| b | The second rectangle. |
| a | The first rectangle to union. |
| b | The second rectangle to union. |
| static double double OpenCVForUnity.CoreModule.Rect2d.y |
y coordinate of the top-left corner
| double double OpenCVForUnity.CoreModule.Rect2d.y |
|
static |