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.
Loading...
Searching...
No Matches
OpenCVForUnity.CoreModule.Range Class Reference

Template class specifying a continuous subsequence (slice) of a sequence. More...

Public Member Functions

 Range ()
 
 Range (double[] vals)
 
 Range (in Vec2i vals)
 
 Range (in(int start, int end) vals)
 
 Range (int s, int e)
 
Range clone ()
 
int int end cloneAsValueTuple ()
 
Vec2i cloneAsVec2i ()
 
bool empty ()
 
override bool Equals (Object obj)
 
bool Equals (Range a)
 
override int GetHashCode ()
 
Range intersection (Range r1)
 
int int end intersectionAsValueTuple (in(int start, int end) r1)
 
Vec2i intersectionAsVec2i (in Vec2i r1)
 
void set (double[] vals)
 
void set (in Vec2i vals)
 
void set (in(int start, int end) vals)
 
Range shift (int delta)
 
int int end shiftAsValueTuple (int delta)
 
Vec2i shiftAsVec2i (int delta)
 
int size ()
 
override string ToString ()
 
int int end ToValueTuple ()
 
Vec2i ToVec2i ()
 

Static Public Member Functions

static Range all ()
 
static int int end allAsValueTuple ()
 
static Vec2i allAsVec2i ()
 
static operator (int start, int end)(Range range)
 
static operator Range (in(int start, int end) valueTuple)
 
static operator Vec2i (Range range)
 
static bool operator! (Range r)
 
static bool operator!= (Range a, Range b)
 
static Range operator& (Range r1, Range r2)
 
static Range operator+ (int delta, Range r1)
 
static Range operator+ (Range r1, int delta)
 
static Range operator- (Range r1, int delta)
 
static bool operator== (Range a, Range b)
 

Public Attributes

int end
 
int start
 

Static Public Attributes

static int start
 

Detailed Description

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:

void my_function(..., const Range& r, ....)
{
if(r == Range::all()) {
// process all the data
}
else {
// process [r.start, r.end)
}
}
Template class specifying a continuous subsequence (slice) of a sequence.
Definition Range_Ex.cs:8

C++: cv::Range Class Reference

See also
https://docs.opencv.org/4.10.0/da/d35/classcv_1_1Range.html

Constructor & Destructor Documentation

◆ Range() [1/5]

OpenCVForUnity.CoreModule.Range.Range ( int s,
int e )

◆ Range() [2/5]

OpenCVForUnity.CoreModule.Range.Range ( )

default constructor

◆ Range() [3/5]

OpenCVForUnity.CoreModule.Range.Range ( double[] vals)

◆ Range() [4/5]

OpenCVForUnity.CoreModule.Range.Range ( in Vec2i vals)

◆ Range() [5/5]

OpenCVForUnity.CoreModule.Range.Range ( in(int start, int end) vals)

Member Function Documentation

◆ all()

static Range OpenCVForUnity.CoreModule.Range.all ( )
static

◆ allAsValueTuple()

static int int end OpenCVForUnity.CoreModule.Range.allAsValueTuple ( )
static

◆ allAsVec2i()

static Vec2i OpenCVForUnity.CoreModule.Range.allAsVec2i ( )
static

◆ clone()

Range OpenCVForUnity.CoreModule.Range.clone ( )

◆ cloneAsValueTuple()

int int end OpenCVForUnity.CoreModule.Range.cloneAsValueTuple ( )

◆ cloneAsVec2i()

Vec2i OpenCVForUnity.CoreModule.Range.cloneAsVec2i ( )

◆ empty()

bool OpenCVForUnity.CoreModule.Range.empty ( )

◆ Equals() [1/2]

override bool OpenCVForUnity.CoreModule.Range.Equals ( Object obj)

◆ Equals() [2/2]

bool OpenCVForUnity.CoreModule.Range.Equals ( Range a)

◆ GetHashCode()

override int OpenCVForUnity.CoreModule.Range.GetHashCode ( )

◆ intersection()

Range OpenCVForUnity.CoreModule.Range.intersection ( Range r1)

◆ intersectionAsValueTuple()

int int end OpenCVForUnity.CoreModule.Range.intersectionAsValueTuple ( in(int start, int end) r1)

◆ intersectionAsVec2i()

Vec2i OpenCVForUnity.CoreModule.Range.intersectionAsVec2i ( in Vec2i r1)

◆ operator()

static OpenCVForUnity.CoreModule.Range.operator ( int start,
int end )
explicitstatic

◆ operator Range()

static OpenCVForUnity.CoreModule.Range.operator Range ( in(int start, int end) valueTuple)
explicitstatic

◆ operator Vec2i()

static OpenCVForUnity.CoreModule.Range.operator Vec2i ( Range range)
explicitstatic

◆ operator!()

static bool OpenCVForUnity.CoreModule.Range.operator! ( Range r)
static

◆ operator!=()

static bool OpenCVForUnity.CoreModule.Range.operator!= ( Range a,
Range b )
static

◆ operator&()

static Range OpenCVForUnity.CoreModule.Range.operator& ( Range r1,
Range r2 )
static

◆ operator+() [1/2]

static Range OpenCVForUnity.CoreModule.Range.operator+ ( int delta,
Range r1 )
static

◆ operator+() [2/2]

static Range OpenCVForUnity.CoreModule.Range.operator+ ( Range r1,
int delta )
static

◆ operator-()

static Range OpenCVForUnity.CoreModule.Range.operator- ( Range r1,
int delta )
static

◆ operator==()

static bool OpenCVForUnity.CoreModule.Range.operator== ( Range a,
Range b )
static

◆ set() [1/3]

void OpenCVForUnity.CoreModule.Range.set ( double[] vals)

◆ set() [2/3]

void OpenCVForUnity.CoreModule.Range.set ( in Vec2i vals)

◆ set() [3/3]

void OpenCVForUnity.CoreModule.Range.set ( in(int start, int end) vals)

◆ shift()

Range OpenCVForUnity.CoreModule.Range.shift ( int delta)

◆ shiftAsValueTuple()

int int end OpenCVForUnity.CoreModule.Range.shiftAsValueTuple ( int delta)

◆ shiftAsVec2i()

Vec2i OpenCVForUnity.CoreModule.Range.shiftAsVec2i ( int delta)

◆ size()

int OpenCVForUnity.CoreModule.Range.size ( )

◆ ToString()

override string OpenCVForUnity.CoreModule.Range.ToString ( )

◆ ToValueTuple()

int int end OpenCVForUnity.CoreModule.Range.ToValueTuple ( )

◆ ToVec2i()

Vec2i OpenCVForUnity.CoreModule.Range.ToVec2i ( )

Member Data Documentation

◆ end

int OpenCVForUnity.CoreModule.Range.end

◆ start [1/2]

int OpenCVForUnity.CoreModule.Range.start

◆ start [2/2]

int OpenCVForUnity.CoreModule.Range.start
static

The documentation for this class was generated from the following files: