@Name(value="cv::Scalar_<double>") public static class opencv_core.Scalar extends opencv_core.AbstractScalar
Being derived from Vec\<_Tp, 4\> , Scalar\_ and Scalar can be used just as typical 4-element vectors. In addition, they can be converted to/from CvScalar . The type Scalar is widely used in OpenCV to pass pixel values.
| Constructor and Description |
|---|
Scalar()
default constructor
|
Scalar(double v0) |
Scalar(double v0,
double v1) |
Scalar(double v0,
double v1,
double v2,
double v3) |
Scalar(long size)
Native array allocator.
|
Scalar(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static opencv_core.Scalar |
all(double v0)
returns a scalar with all elements set to v0
|
opencv_core.Scalar |
conj()
returns (v0, -v1, -v2, -v3)
|
boolean |
isReal()
returns true iff v1 == v2 == v3 == 0
|
opencv_core.Scalar |
mul(opencv_core.Scalar a) |
opencv_core.Scalar |
mul(opencv_core.Scalar a,
double scale)
per-element product
|
opencv_core.Scalar |
position(long position) |
blue, blue, green, green, magnitude, red, red, scale, toStringasBuffer, capacity, get, get, get, get, limit, put, put, put, putaddress, asByteBuffer, availablePhysicalBytes, calloc, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, setNull, sizeof, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Scalar(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public Scalar(long size)
Pointer.position(long).public Scalar()
public Scalar(double v0,
double v1,
double v2,
double v3)
public Scalar(double v0,
double v1)
public Scalar(double v0)
public opencv_core.Scalar position(long position)
position in class org.bytedeco.javacpp.DoublePointer@ByVal public static opencv_core.Scalar all(double v0)
@ByVal public opencv_core.Scalar mul(@Const @ByRef opencv_core.Scalar a, double scale)
@ByVal public opencv_core.Scalar mul(@Const @ByRef opencv_core.Scalar a)
@ByVal public opencv_core.Scalar conj()
@Cast(value="bool") public boolean isReal()
Copyright © 2018. All rights reserved.