MISB 0903 Converter Library  Version 2.0.7
Public Member Functions | Public Attributes | List of all members
VTargetPack Class Reference

VTargetPack helper class. More...

Inheritance diagram for VTargetPack:

Public Member Functions

bool SetTargetCentroidPixel (unsigned __int64 pixel)
 Defines the position of the target within the video frame in pixels.
 
bool SetBoundingBoxTopLeftPixel (unsigned __int64 pixel)
 Defines the position of the top left corner of the target bounding box within the video frame in pixels.
 
bool SetBoundingBoxTopRightPixel (unsigned __int64 pixel)
 Defines the position of the bottom right corner of the target bounding box within the video frame in pixels.
 
bool SetTargetPriority (unsigned char priority)
 Priority or validity of target based on criteria within the VMTI system. The target(s) with the highest priority may not have the highest confidence level.
 
bool SetTargetConfidenceLevel (unsigned char level)
 Confidence level of target based on criteria within the VMTI system. The target(s) with the highest confidence may not have the highest priority value.
 
bool SetNewDetectionFlag (int flag)
 The number of previous times the same target has been detected.
 
bool SetPercentageOfTargetPixels (int percent)
 The percentage of pixels within the bounding box that are detected to be target pixels rather than background pixels.
 
bool SetTargetColor (int color)
 Dominant color of the target. For use when metadata is transmitted in the absence of the underlying video. RGB color value.
 
bool SetTargetIntensity (int color)
 Dominant Intensity of the target. For use when metadata is transmitted in the absence of the underlying video.
 
bool SetTargetLocationLatOffset (double lat)
 Latitude offset for target from frame center latitude (0601). Based on WGS84 ellipsoid. Use with Frame Center Latitude.
 
bool SetTargetLocationLonOffset (double lon)
 Longitude offset for target from frame center longitude (0601). Based on WGS84 ellipsoid. Use with Frame Center Longitude.
 
bool SetTargetHeight (double alt)
 Height of target in meters above WGS84 Ellipsoid.
 
bool SetBoundingBoxTopLeftLatOffset (double lat)
 Latitude offset for top left corner of target bounding box. Use with 0601 Frame Center Latitude.
 
bool SetBoundingBoxTopLeftLonOffset (double lon)
 Longitude offset for top left corner of target bounding box. Use with 0601 Frame Center Longitude.
 
bool SetBoundingBoxBottomRightLatOffset (double lat)
 Latitude offset for bottom right corner of target bounding box. Use with 0601 Frame Center Latitude.
 
bool SetBoundingBoxBottomRightLonOffset (double lon)
 Longitude offset for bottom right corner of target bounding box. Use with 0601 Frame Center Longitude.
 
map< VTargetPackTag, VTargetItem * > & GetVTargetPackItems ()
 
void AddItem (VTargetPackTag tag, unsigned char *val, size_t len)
 
 VTargetPack (int id)
 
 VTargetPack (unsigned int id)
 
 VTargetPack (unsigned int id, unsigned short revision)
 
void SetRevision (unsigned short rev)
 Set Revision for proper processing.
 
bool SetTargetCentroidPixel (unsigned __int64 pixel)
 Tag 1. Defines the position of the target within the video frame in pixels.
 
bool SetBoundingBoxTopLeftPixel (unsigned __int64 pixel)
 Tag 2. Defines the position of the top left corner of the target bounding box within the video frame in pixels.
 
bool SetBoundingBoxBottomRightPixel (unsigned __int64 pixel)
 Tag 3. Defines the position of the bottom right corner of the target bounding box within the video frame in pixels.
 
bool SetTargetPriority (unsigned char priority)
 Tag 4. Priority or validity of target based on criteria within the VMTI system. The target(s) with the highest priority may not have the highest confidence level.
 
bool SetTargetConfidenceLevel (unsigned char level)
 Tag 5. Confidence level of target based on criteria within the VMTI system. The target(s) with the highest confidence may not have the highest priority value.
 
bool SetNewDetectionFlag (unsigned short flag)
 Tag 6. The number of previous times the same target has been detected.
 
bool SetPercentageOfTargetPixels (unsigned char percent)
 Tag 7. The percentage of pixels within the bounding box that are detected to be target pixels rather than background pixels.
 
bool SetTargetColor (unsigned int color)
 Tag 8. Dominant color of the target. For use when metadata is transmitted in the absence of the underlying video. RGB color value.
 
bool SetTargetIntensity (unsigned int intensity)
 Tag 9. Dominant Intensity of the target. For use when metadata is transmitted in the absence of the underlying video.
 
bool SetTargetLocationLatOffset (float lat)
 Tag 10. Latitude offset for target from frame center latitude (0601). Based on WGS84 ellipsoid. Use with Frame Center Latitude.
 
bool SetTargetLocationLonOffset (float lon)
 Tag 11. Longitude offset for target from frame center longitude (0601). Based on WGS84 ellipsoid. Use with Frame Center Longitude.
 
bool SetTargetHeight (float alt)
 Tag 12. Height of target in meters above WGS84 Ellipsoid.
 
bool SetBoundingBoxTopLeftLatOffset (float lat)
 Tag 13. Latitude offset for top left corner of target bounding box. Use with 0601 Frame Center Latitude.
 
bool SetBoundingBoxTopLeftLonOffset (float lon)
 Tag 14. Longitude offset for top left corner of target bounding box. Use with 0601 Frame Center Longitude.
 
bool SetBoundingBoxBottomRightLatOffset (float lat)
 Tag 15. Latitude offset for bottom right corner of target bounding box. Use with 0601 Frame Center Latitude.
 
bool SetBoundingBoxBottomRightLonOffset (float lon)
 Tag 16. Longitude offset for bottom right corner of target bounding box. Use with 0601 Frame Center Longitude.
 
bool SetTargetLocation (LocationType &loc)
 Tag 17. Target Location.
 
bool SetTargetBoundary (LocationType &loc)
 Tag 18. Target Boundary.
 
bool SetVTrackerLDS (VTrackerLDS *vLDS)
 VTracker Local Set.
 
map< VTargetPackTag, VTargetItem * > & GetVTargetPackItems ()
 GetVTargetPackItems returns an internal map of VTargetPackTag / VTargetItem* pairs. More...
 
void AddItem (VTargetPackTag tag, unsigned char *val, size_t len)
 AddItem inserts a VTargetPack item. More...
 
bool DecodeValue (VTargetPackTag tag, VARIANT *vt)
 Converts a "value" into formatted value in units defined in EG0601 spec. More...
 
string DecodeValueH (VTargetPackTag tag)
 Converts a "value" into human readable formatted string. More...
 

Public Attributes

int TargetID
 This element is mandatory and it must come first in the VTarget Pack. It is BER-OID encoded to convey the length but has no Tag or Length field. Range 1.. 2,097,151.
 
unsigned int TargetID
 This element is mandatory and it must come first in the VTarget Pack. It is BER-OID encoded to convey the length but has no Tag or Length field. Range 1.. 2,097,151.
 

Detailed Description

VTargetPack helper class

Examples:
STD0903DemoApp.cpp.

Member Function Documentation

◆ AddItem()

void VTargetPack::AddItem ( VTargetPackTag  tag,
unsigned char *  val,
size_t  len 
)

AddItem inserts a VTargetPack item.

Parameters
taga VTargetPackTag. VTargetPack Tag
valan unsigned char* . Pointer to TargetPack item value
lena size_t. Buffer length
Returns
void.

◆ DecodeValue()

bool VTargetPack::DecodeValue ( VTargetPackTag  tag,
VARIANT *  vt 
)

DecodeValue converts a "value" into formatted value in units defined in EG0601 spec.

Parameters
tagan int. Key Tag
vta VARIANT*. Value
Returns
bool.
Examples:
STD0903DemoApp.cpp.

◆ DecodeValueH()

string VTargetPack::DecodeValueH ( VTargetPackTag  tag)

DecodeValueH (human readable) converts a "value" into formatted string.

Parameters
tagan int. Key Tag
Returns
string.

◆ GetVTargetPackItems()

map<VTargetPackTag, VTargetItem*>& VTargetPack::GetVTargetPackItems ( )
inline

GetVTargetPackItems returns an internal map of VTargetPackTag / VTargetItem* pairs.

Returns
map<VTargetPackTag, VTargetItem*>&.
Untitled 1




 Copyright 2018,    IMPLEOTV SYSTEMS LTD