OpenCV for Unity 2.6.5
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 | |
Rect () | |
Rect (double[] vals) | |
Rect (in Vec4i vals) | |
Rect (in(int x, int y, int width, int height) vals) | |
Rect (int x, int y, int width, int height) | |
Rect (Point p, Size s) | |
Rect (Point p1, Point p2) | |
double | area () |
Point | br () |
double double y | brAsValueTuple () |
Vec2d | brAsVec2d () |
Rect | clone () |
int int int int height | cloneAsValueTuple () |
Vec4i | cloneAsVec4i () |
bool | contains (in Vec2d p) |
bool | contains (in Vec4i rect) |
bool | contains (in(double x, double y) p) |
bool | contains (in(int x, int y, int width, int height) rect) |
bool | contains (int x, int y) |
bool | contains (Point p) |
bool | contains (Rect rect) |
bool | empty () |
override bool | Equals (Object obj) |
bool | Equals (Rect a) |
override int | GetHashCode () |
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. | |
void | inflate (int width, int 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. | |
Rect | intersect (Rect rect) |
Computes the intersection of the current rectangle with the specified rectangle. | |
int int int int height | intersectAsValueTuple (in(int x, int y, int width, int height) rect) |
Vec4i | intersectAsVec4i (in Vec4i rect) |
Computes the intersection of the current rectangle with the specified rectangle. | |
bool | intersectsWith (in Vec4i rect) |
Determines whether the current rectangle intersects with the specified rectangle. | |
bool | intersectsWith (in(int x, int y, int width, int height) rect) |
Determines whether the current rectangle intersects with the specified rectangle. | |
bool | intersectsWith (Rect rect) |
Determines whether the current rectangle intersects with the specified rectangle. | |
void | set (double[] vals) |
void | set (in Vec4i vals) |
void | set (in(int x, int y, int width, int height) vals) |
Size | size () |
double double height | sizeAsValueTuple () |
Vec2d | sizeAsVec2d () |
Point | tl () |
double double y | tlAsValueTuple () |
Vec2d | tlAsVec2d () |
UnityEngine.RectInt | ToRectInt () |
override string | ToString () |
int int int int height | ToValueTuple () |
Vec4i | ToVec4i () |
int int int int height | union (in(int x, int y, int width, int height) rect) |
Rect | union (Rect rect) |
Returns a new rectangle that represents the union of the current rectangle and the specified rectangle. | |
Vec4i | unionAsVec4i (in Vec4i rect) |
Returns a new rectangle that represents the union of the current rectangle and the specified rectangle. | |
Static Public Member Functions | |
static Rect | inflate (Rect rect, int x, int y) |
Expands the specified rectangle by decreasing its position and increasing its size by the specified amounts. | |
static int int int int height | inflateAsValueTuple (in(int x, int y, int width, int height) rect, int x, int y) |
static Vec4i | inflateAsVec4i (in Vec4i rect, int x, int y) |
Expands the specified rectangle by decreasing its position and increasing its size by the specified amounts. | |
static Rect | intersect (Rect a, Rect b) |
Computes the intersection of two rectangles. | |
static int int int int height | intersectAsValueTuple (in(int x, int y, int width, int height) a, in(int x, int y, int width, int height) b) |
static Vec4i | intersectAsVec4i (in Vec4i a, in Vec4i b) |
Computes the intersection of two rectangles. | |
static | operator (int x, int y, int width, int height)(Rect rect) |
static | operator Rect (in(int x, int y, int width, int height) valueTuple) |
static | operator UnityEngine.RectInt (Rect rect) |
static | operator Vec4i (Rect rect) |
static bool | operator!= (Rect a, Rect b) |
static Rect | operator& (Rect a, Rect b) |
static Rect | operator+ (Rect a, Point b) |
static Rect | operator+ (Rect a, Size b) |
static Rect | operator- (Rect a, Point b) |
static Rect | operator- (Rect a, Size b) |
static bool | operator== (Rect a, Rect b) |
static Rect | operator| (Rect a, Rect b) |
static int int int int height | union (in(int x, int y, int width, int height) a, in(int x, int y, int width, int height) b) |
static Rect | union (Rect a, Rect b) |
Returns a new rectangle that represents the union of two specified rectangles. | |
static Vec4i | unionAsVec4i (in Vec4i a, in Vec4i b) |
Returns a new rectangle that represents the union of two specified rectangles. | |
Public Attributes | |
int | height |
int | width |
int int int | width |
double | width |
int | x |
Computes the intersection of the current rectangle with the specified rectangle. | |
double | x |
int | y |
int int | y |
Static Public Attributes | |
static int int int | width |
static int | x |
Expands the specified rectangle by decreasing its position and increasing its size by the specified amounts. | |
static int int | y |
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.Rect.Rect | ( | int | x, |
int | y, | ||
int | width, | ||
int | height ) |
OpenCVForUnity.CoreModule.Rect.Rect | ( | ) |
default constructor
OpenCVForUnity.CoreModule.Rect.Rect | ( | double[] | vals | ) |
OpenCVForUnity.CoreModule.Rect.Rect | ( | in Vec4i | vals | ) |
double OpenCVForUnity.CoreModule.Rect.area | ( | ) |
area (width*height) of the rectangle
Point OpenCVForUnity.CoreModule.Rect.br | ( | ) |
the bottom-right corner
double double y OpenCVForUnity.CoreModule.Rect.brAsValueTuple | ( | ) |
Vec2d OpenCVForUnity.CoreModule.Rect.brAsVec2d | ( | ) |
the bottom-right corner
Rect OpenCVForUnity.CoreModule.Rect.clone | ( | ) |
int int int int height OpenCVForUnity.CoreModule.Rect.cloneAsValueTuple | ( | ) |
Vec4i OpenCVForUnity.CoreModule.Rect.cloneAsVec4i | ( | ) |
bool OpenCVForUnity.CoreModule.Rect.contains | ( | in Vec2d | p | ) |
checks whether the rectangle contains the point
bool OpenCVForUnity.CoreModule.Rect.contains | ( | in Vec4i | rect | ) |
checks whether the rectangle contains the point
checks whether the rectangle contains the point
checks whether the rectangle contains the point
bool OpenCVForUnity.CoreModule.Rect.contains | ( | int | x, |
int | y ) |
checks whether the rectangle contains the point
bool OpenCVForUnity.CoreModule.Rect.contains | ( | Point | p | ) |
checks whether the rectangle contains the point
bool OpenCVForUnity.CoreModule.Rect.contains | ( | Rect | rect | ) |
checks whether the rectangle contains the point
bool OpenCVForUnity.CoreModule.Rect.empty | ( | ) |
true if empty
override bool OpenCVForUnity.CoreModule.Rect.Equals | ( | Object | obj | ) |
bool OpenCVForUnity.CoreModule.Rect.Equals | ( | Rect | a | ) |
override int OpenCVForUnity.CoreModule.Rect.GetHashCode | ( | ) |
void OpenCVForUnity.CoreModule.Rect.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. |
void OpenCVForUnity.CoreModule.Rect.inflate | ( | int | width, |
int | 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.Rect.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 |
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 |
int int int int height OpenCVForUnity.CoreModule.Rect.intersectAsValueTuple | ( | in(int x, int y, int width, int 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.Rect.intersectsWith | ( | in Vec4i | 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
. 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.Rect.intersectsWith | ( | Rect | 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 |
|
explicitstatic |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void OpenCVForUnity.CoreModule.Rect.set | ( | double[] | vals | ) |
void OpenCVForUnity.CoreModule.Rect.set | ( | in Vec4i | vals | ) |
Size OpenCVForUnity.CoreModule.Rect.size | ( | ) |
size (width, height) of the rectangle
double double height OpenCVForUnity.CoreModule.Rect.sizeAsValueTuple | ( | ) |
Vec2d OpenCVForUnity.CoreModule.Rect.sizeAsVec2d | ( | ) |
size (width, height) of the rectangle
Point OpenCVForUnity.CoreModule.Rect.tl | ( | ) |
the top-left corner
double double y OpenCVForUnity.CoreModule.Rect.tlAsValueTuple | ( | ) |
Vec2d OpenCVForUnity.CoreModule.Rect.tlAsVec2d | ( | ) |
the top-left corner
UnityEngine.RectInt OpenCVForUnity.CoreModule.Rect.ToRectInt | ( | ) |
override string OpenCVForUnity.CoreModule.Rect.ToString | ( | ) |
int int int int height OpenCVForUnity.CoreModule.Rect.ToValueTuple | ( | ) |
Vec4i OpenCVForUnity.CoreModule.Rect.ToVec4i | ( | ) |
|
static |
int int int int height OpenCVForUnity.CoreModule.Rect.union | ( | in(int x, int y, int width, int 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. |
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. |
int OpenCVForUnity.CoreModule.Rect.height |
height of the rectangle
static int int int OpenCVForUnity.CoreModule.Rect.width |
width of the rectangle
int int int OpenCVForUnity.CoreModule.Rect.width |
double OpenCVForUnity.CoreModule.Rect.width |
size (width, height) of the rectangle
|
static |
static int OpenCVForUnity.CoreModule.Rect.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
rect | The rectangle to intersect with the current rectangle. |
rect | The rectangle to combine with the current rectangle. |
the bottom-right corner
a | The first rectangle. |
b | The second rectangle. |
a | The first rectangle to union. |
b | The second rectangle to union. |
double OpenCVForUnity.CoreModule.Rect.x |
the top-left corner
the bottom-right corner
|
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 int int OpenCVForUnity.CoreModule.Rect.y |
y coordinate of the top-left corner
int int OpenCVForUnity.CoreModule.Rect.y |
|
static |