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 specifying a continuous subsequence (slice) of a sequence. More...
Public Member Functions | |
Range (int s, int e) | |
Range () | |
Range (double[] vals) | |
void | set (double[] vals) |
int | size () |
bool | empty () |
Range | intersection (Range r1) |
Range | shift (int delta) |
Range | clone () |
override int | GetHashCode () |
override bool | Equals (Object obj) |
override string | ToString () |
Range (in Vec2i vals) | |
Range (in(int start, int end) vals) | |
void | set (in Vec2i vals) |
void | set (in(int start, int end) vals) |
Vec2i | intersectionAsVec2i (in Vec2i r1) |
int int end | intersectionAsValueTuple (in(int start, int end) r1) |
Vec2i | shiftAsVec2i (int delta) |
int int end | shiftAsValueTuple (int delta) |
Vec2i | cloneAsVec2i () |
int int end | cloneAsValueTuple () |
int int end | ToValueTuple () |
Vec2i | ToVec2i () |
bool | Equals (Range a) |
Static Public Member Functions | |
static Range | all () |
static Vec2i | allAsVec2i () |
static int int end | allAsValueTuple () |
static | operator Vec2i (Range range) |
static | operator (int start, int end)(Range range) |
static | operator Range (in(int start, int end) valueTuple) |
static bool | operator! (Range r) |
static Range | operator+ (Range r1, int delta) |
static Range | operator+ (int delta, Range r1) |
static Range | operator- (Range r1, int delta) |
static Range | operator& (Range r1, Range r2) |
static bool | operator== (Range a, Range b) |
static bool | operator!= (Range a, Range b) |
Public Attributes | |
int | start |
int | end |
Static Public Attributes | |
static int | start |
Template class specifying a continuous subsequence (slice) of a sequence.
The class is used to specify a row or a column span in a matrix ( Mat ) and for many other purposes. Range(a,b) is basically the same as a:b in Matlab or a..b in Python. As in Python, start is an inclusive left boundary of the range and end is an exclusive right boundary of the range. Such a half-opened interval is usually denoted as \([start,end)\).
The static method Range::all() returns a special variable that means "the whole sequence" or "the whole range", just like " : " in Matlab or " ... " in Python. All the methods and functions in OpenCV that take Range support this special Range::all() value. But, of course, in case of your own custom processing, you will probably have to check and handle it explicitly:
C++: cv::Range Class Reference
OpenCVForUnity.CoreModule.Range.Range | ( | int | s, |
int | e ) |
OpenCVForUnity.CoreModule.Range.Range | ( | ) |
default constructor
OpenCVForUnity.CoreModule.Range.Range | ( | double[] | vals | ) |
OpenCVForUnity.CoreModule.Range.Range | ( | in Vec2i | vals | ) |
|
static |
|
static |
|
static |
Range OpenCVForUnity.CoreModule.Range.clone | ( | ) |
int int end OpenCVForUnity.CoreModule.Range.cloneAsValueTuple | ( | ) |
Vec2i OpenCVForUnity.CoreModule.Range.cloneAsVec2i | ( | ) |
bool OpenCVForUnity.CoreModule.Range.empty | ( | ) |
override bool OpenCVForUnity.CoreModule.Range.Equals | ( | Object | obj | ) |
bool OpenCVForUnity.CoreModule.Range.Equals | ( | Range | a | ) |
override int OpenCVForUnity.CoreModule.Range.GetHashCode | ( | ) |
|
explicitstatic |
|
explicitstatic |
|
static |
void OpenCVForUnity.CoreModule.Range.set | ( | double[] | vals | ) |
void OpenCVForUnity.CoreModule.Range.set | ( | in Vec2i | vals | ) |
Range OpenCVForUnity.CoreModule.Range.shift | ( | int | delta | ) |
int int end OpenCVForUnity.CoreModule.Range.shiftAsValueTuple | ( | int | delta | ) |
Vec2i OpenCVForUnity.CoreModule.Range.shiftAsVec2i | ( | int | delta | ) |
int OpenCVForUnity.CoreModule.Range.size | ( | ) |
override string OpenCVForUnity.CoreModule.Range.ToString | ( | ) |
int int end OpenCVForUnity.CoreModule.Range.ToValueTuple | ( | ) |
Vec2i OpenCVForUnity.CoreModule.Range.ToVec2i | ( | ) |
int OpenCVForUnity.CoreModule.Range.end |
int OpenCVForUnity.CoreModule.Range.start |
|
static |