@Namespace(value="cv")
@NoOffset
public static class opencv_core.Range
extends org.bytedeco.javacpp.Pointer
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 \f$[start,end)\f$ .
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)
}
}
| Constructor and Description |
|---|
Range() |
Range(int _start,
int _end) |
Range(long size)
Native array allocator.
|
Range(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static opencv_core.Range |
all() |
boolean |
empty() |
int |
end() |
opencv_core.Range |
end(int end) |
opencv_core.Range |
position(long position) |
int |
size() |
int |
start() |
opencv_core.Range |
start(int start) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Range(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public Range(long size)
Pointer.position(long).public Range()
public Range(int _start,
int _end)
public opencv_core.Range position(long position)
position in class org.bytedeco.javacpp.Pointerpublic int size()
@Cast(value="bool") public boolean empty()
@ByVal public static opencv_core.Range all()
public int start()
public opencv_core.Range start(int start)
public int end()
public opencv_core.Range end(int end)
Copyright © 2018. All rights reserved.