@Namespace(value="op") @NoOffset @Properties(inherit=openpose.class) public class Datum extends Pointer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
Datum()
Default constructor struct.
|
Datum(Datum datum)
Copy constructor.
|
Datum(long size)
Native array allocator.
|
Datum(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
Matrix |
cameraExtrinsics()
3x4 extrinsic parameters of the camera.
|
Datum |
cameraExtrinsics(Matrix setter) |
Matrix |
cameraIntrinsics()
3x3 intrinsic parameters of the camera.
|
Datum |
cameraIntrinsics(Matrix setter) |
Matrix |
cameraMatrix()
3x4 camera matrix of the camera (equivalent to cameraIntrinsics * cameraExtrinsics).
|
Datum |
cameraMatrix(Matrix setter) |
Datum |
clone()
Clone function.
|
Matrix |
cvInputData()
Original image to be processed in cv::Mat uchar format.
|
Datum |
cvInputData(Matrix setter) |
Matrix |
cvOutputData()
Rendered image in cv::Mat uchar format.
|
Datum |
cvOutputData(Matrix setter) |
Matrix |
cvOutputData3D()
Rendered 3D image in cv::Mat uchar format.
|
Datum |
cvOutputData3D(Matrix setter) |
IntStringPair |
elementRendered()
Pair with the element key id POSE_BODY_PART_MAPPING on
pose/poseParameters.hpp and its mapped value (e.g. |
Datum |
elementRendered(IntStringPair setter) |
boolean |
equals(Datum datum)
Equal comparison operator.
|
FloatArray |
faceHeatMaps()
Face pose heatmaps (face parts and/or background) for the whole image.
|
Datum |
faceHeatMaps(FloatArray setter) |
FloatArray |
faceKeypoints()
Face keypoints (x,y,score) locations for each person in the image.
|
Datum |
faceKeypoints(FloatArray setter) |
FloatArray |
faceKeypoints3D()
Face keypoints (x,y,z,score) locations for each person in the image.
|
Datum |
faceKeypoints3D(FloatArray setter) |
FloatRectangle |
faceRectangles()
Face detection locations (x,y,width,height) for each person in the image.
|
Datum |
faceRectangles(FloatRectangle setter) |
long |
frameNumber()
Corresponding frame number.
|
Datum |
frameNumber(long setter) |
Datum |
getPointer(long i) |
boolean |
greaterThan(Datum datum)
Greater comparison operator.
|
boolean |
greaterThanEquals(Datum datum)
Greater or equal comparison operator.
|
FloatArray2 |
handHeatMaps()
Hand pose heatmaps (hand parts and/or background) for the whole image.
|
Datum |
handHeatMaps(FloatArray2 setter) |
FloatArray2 |
handKeypoints()
Hand keypoints (x,y,score) locations for each person in the image.
|
Datum |
handKeypoints(FloatArray2 setter) |
FloatArray2 |
handKeypoints3D()
Hand keypoints (x,y,z,score) locations for each person in the image.
|
Datum |
handKeypoints3D(FloatArray2 setter) |
FloatRectangle2 |
handRectangles()
Hand detection locations (x,y,width,height) for each person in the image.
|
Datum |
handRectangles(FloatRectangle2 setter) |
long |
id()
Datum ID.
|
Datum |
id(long setter) |
FloatArray |
inputNetData()
Original image to be processed in Array
|
Datum |
inputNetData(FloatArray setter) |
boolean |
lessThan(Datum datum)
Less comparison operator.
|
boolean |
lessThanEquals(Datum datum)
Less or equal comparison operator.
|
BytePointer |
name()
Name used when saving the data to disk (e.g.,
write_images or write_keypoint flags in the demo). |
Datum |
name(BytePointer setter) |
IntPoint |
netInputSizes()
Size(s) (width x height) of the image(s) fed to the pose deep net.
|
Datum |
netInputSizes(IntPoint setter) |
IntPoint |
netOutputSize()
Size (width x height) of the image returned by the deep net.
|
Datum |
netOutputSize(IntPoint setter) |
boolean |
notEquals(Datum datum)
Not equal comparison operator.
|
FloatArray |
outputData()
Rendered image in Array
|
Datum |
outputData(FloatArray setter) |
Float3Vector |
poseCandidates()
Body pose candidates for the whole image.
|
Datum |
poseCandidates(Float3Vector setter) |
FloatArray |
poseHeatMaps()
Body pose heatmaps (body parts, background and/or PAFs) for the whole image.
|
Datum |
poseHeatMaps(FloatArray setter) |
LongLongArray |
poseIds()
People ID
It returns a person ID for each body pose, providing temporal consistency.
|
Datum |
poseIds(LongLongArray setter) |
FloatArray |
poseKeypoints()
Body pose (x,y,score) locations for each person in the image.
|
Datum |
poseKeypoints(FloatArray setter) |
FloatArray |
poseKeypoints3D()
Body pose (x,y,z,score) locations for each person in the image.
|
Datum |
poseKeypoints3D(FloatArray setter) |
FloatArray |
poseNetOutput()
If it is not empty, OpenPose will not run its internal body pose estimation network and will instead use
this data as the substitute of its network.
|
Datum |
poseNetOutput(FloatArray setter) |
FloatArray |
poseScores()
Body pose global confidence/score for each person in the image.
|
Datum |
poseScores(FloatArray setter) |
Datum |
position(long position) |
Datum |
put(Datum datum)
Copy assignment.
|
DoublePointer |
scaleInputToNetInputs()
Scale ratio between the input Datum::cvInputData and the net input size.
|
Datum |
scaleInputToNetInputs(DoublePointer setter) |
double |
scaleInputToOutput()
Scale ratio between the input Datum::cvInputData and the output Datum::cvOutputData.
|
Datum |
scaleInputToOutput(double setter) |
double |
scaleNetToOutput()
Scale ratio between the net output and the final output Datum::cvOutputData.
|
Datum |
scaleNetToOutput(double setter) |
long |
subId()
Datum sub-ID.
|
Datum |
subId(long setter) |
long |
subIdMax()
Datum maximum sub-ID.
|
Datum |
subIdMax(long setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public Datum(Pointer p)
Pointer(Pointer)
.public Datum(long size)
Pointer.position(long)
.public Datum()
public Datum(@Const @ByRef Datum datum)
fast copy
: For performance purpose, copying a Datum or Arraydatum
- Datum to be copied.public Datum getPointer(long i)
getPointer
in class Pointer
@Cast(value="unsigned long long") public long id()
public Datum id(long setter)
@Cast(value="unsigned long long") public long subId()
public Datum subId(long setter)
@Cast(value="unsigned long long") public long subIdMax()
public Datum subIdMax(long setter)
@StdString public BytePointer name()
write_images
or write_keypoint
flags in the demo).public Datum name(BytePointer setter)
@Cast(value="unsigned long long") public long frameNumber()
public Datum frameNumber(long setter)
@ByRef public Matrix cvInputData()
@StdVector public FloatArray inputNetData()
public Datum inputNetData(FloatArray setter)
@ByRef public FloatArray outputData()
no_render_pose
flag in the demo), outputData will be empty.
Size: 3 x output_net_height x output_net_widthpublic Datum outputData(FloatArray setter)
@ByRef public Matrix cvOutputData()
resolution
flag in the demo).
If outputData is empty, cvOutputData will also be empty.
Size: (output_height x output_width) x 3 channels@ByRef public FloatArray poseKeypoints()
resolution
flag in the demo).
Size: #people x #body parts (e.g., 18 for COCO or 15 for MPI) x 3 ((x,y) coordinates + score)public Datum poseKeypoints(FloatArray setter)
@ByRef public LongLongArray poseIds()
public Datum poseIds(LongLongArray setter)
@ByRef public FloatArray poseScores()
public Datum poseScores(FloatArray setter)
@ByRef public FloatArray poseHeatMaps()
pose/poseParameters.hpp
.
The user can choose the heatmaps normalization: ranges [0, 1], [-1, 1] or [0, 255]. Check the
heatmaps_scale
flag in {OpenPose_path}doc/demo_overview.md for more details.
Size: #heatmaps x output_net_height x output_net_widthpublic Datum poseHeatMaps(FloatArray setter)
@StdVector public Float3Vector poseCandidates()
candidates_body
.
Candidates refer to all the detected body parts, before being assembled into people. Note that the number
of candidates is equal or higher than the number of body parts after being assembled into people.
Size: #body parts x min(part candidates, POSE_MAX_PEOPLE) x 3 (x,y,score).
Rather than vector, it should ideally be:
std::arraypublic Datum poseCandidates(Float3Vector setter)
@StdVector public FloatRectangle faceRectangles()
public Datum faceRectangles(FloatRectangle setter)
@ByRef public FloatArray faceKeypoints()
poseKeypoints
.
Size: #people x #face parts (70) x 3 ((x,y) coordinates + score)public Datum faceKeypoints(FloatArray setter)
@ByRef public FloatArray faceHeatMaps()
public Datum faceHeatMaps(FloatArray setter)
@StdVector public FloatRectangle2 handRectangles()
public Datum handRectangles(FloatRectangle2 setter)
@ByRef public FloatArray2 handKeypoints()
poseKeypoints
.
handKeypoints[0] corresponds to left hands, and handKeypoints[1] to right ones.
Size each Array: #people x #hand parts (21) x 3 ((x,y) coordinates + score)public Datum handKeypoints(FloatArray2 setter)
@ByRef public FloatArray2 handHeatMaps()
public Datum handHeatMaps(FloatArray2 setter)
@ByRef public FloatArray poseKeypoints3D()
public Datum poseKeypoints3D(FloatArray setter)
@ByRef public FloatArray faceKeypoints3D()
poseKeypoints3D
.
Size: #people x #face parts (70) x 4 ((x,y,z) coordinates + score)public Datum faceKeypoints3D(FloatArray setter)
@ByRef public FloatArray2 handKeypoints3D()
poseKeypoints3D
.
handKeypoints[0] corresponds to left hands, and handKeypoints[1] to right ones.
Size each Array: #people x #hand parts (21) x 4 ((x,y,z) coordinates + score)public Datum handKeypoints3D(FloatArray2 setter)
@ByRef public Matrix cameraMatrix()
@ByRef public FloatArray poseNetOutput()
--net_resolution
, --scale_number
, etc.).public Datum poseNetOutput(FloatArray setter)
@StdVector public DoublePointer scaleInputToNetInputs()
public Datum scaleInputToNetInputs(DoublePointer setter)
@StdVector public IntPoint netInputSizes()
public double scaleInputToOutput()
public Datum scaleInputToOutput(double setter)
@ByRef public IntPoint netOutputSize()
public double scaleNetToOutput()
public Datum scaleNetToOutput(double setter)
@ByRef public IntStringPair elementRendered()
pose/poseParameters.hpp
and its mapped value (e.g.
1 and "Neck").public Datum elementRendered(IntStringPair setter)
@ByRef @Name(value="operator =") public Datum put(@Const @ByRef Datum datum)
datum
- Datum to be copied.@ByVal public Datum clone()
@Cast(value="bool") @Name(value="operator <") public boolean lessThan(@Const @ByRef Datum datum)
datum
- Datum to be compared.@Cast(value="bool") @Name(value="operator >") public boolean greaterThan(@Const @ByRef Datum datum)
datum
- Datum to be compared.@Cast(value="bool") @Name(value="operator <=") public boolean lessThanEquals(@Const @ByRef Datum datum)
datum
- Datum to be compared.@Cast(value="bool") @Name(value="operator >=") public boolean greaterThanEquals(@Const @ByRef Datum datum)
datum
- Datum to be compared.@Cast(value="bool") @Name(value="operator ==") public boolean equals(@Const @ByRef Datum datum)
datum
- Datum to be compared.Copyright © 2022. All rights reserved.