public class PercentageOfTargetPixels extends Object implements IVmtiMetadataValue, IVTrackItemMetadataValue
From ST0903:
The percentage of pixels within the bounding box detected to be target pixels rather than background pixels. Range 1 to 100, where 100 signifies that the target completely fills the bounding box. Use of the VMask, VChip, VObject, or VFeature Local Sets recommended where more detail about a target is necessary. If a detection has occurred, the size of the bounding box should be such that a non-zero percentage of pixels overlaps the target.
Constructor and Description |
---|
PercentageOfTargetPixels(byte[] bytes)
Create from encoded bytes.
|
PercentageOfTargetPixels(short percentage)
Create from value.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Get the encoded bytes.
|
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
short |
getPercentageOfTargetPixels()
Get the percentage of target pixels.
|
public PercentageOfTargetPixels(short percentage)
percentage
- the target percentage as a percentage (1 lowest, 100 highest)public PercentageOfTargetPixels(byte[] bytes)
bytes
- Encoded byte array, length 1 bytepublic byte[] getBytes()
IVmtiMetadataValue
getBytes
in interface IVmtiMetadataValue
getBytes
in interface IVTrackItemMetadataValue
public String getDisplayableValue()
IKlvValue
getDisplayableValue
in interface IKlvValue
public final String getDisplayName()
IKlvValue
getDisplayName
in interface IKlvValue
public short getPercentageOfTargetPixels()
Copyright © 2022 West Ridge Systems. All rights reserved.