NVIDIA DeepStream SDK API Reference

6.4 Release
NvDsInferSegmentationMeta Struct Reference

Detailed Description

Holds the segmentation model output information for one frame / one object.

The "nvinfer" plugins adds this meta for segmentation models.

This meta data is added as NvDsUserMeta to the frame_user_meta_list of the corresponding frame_meta or object_user_meta_list of the corresponding object with the meta_type set to NVDSINFER_SEGMENTATION_META.

Definition at line 104 of file gstnvdsinfer.h.

Data Fields

guint classes
 Number of classes in the segmentation output. More...
 
guint width
 Width of the segmentation output class map. More...
 
guint height
 Height of the segmentation output class map. More...
 
gint * class_map
 Pointer to the array for 2D pixel class map. More...
 
gfloat * class_probabilities_map
 Pointer to the raw array containing the probabilities. More...
 
void * priv_data
 Private data used for the meta producer's internal memory management. More...
 
gint unique_id
 Unique ID of the gst-nvinfer instance which attached this meta. More...
 

Field Documentation

◆ class_map

gint* NvDsInferSegmentationMeta::class_map

Pointer to the array for 2D pixel class map.

The output for pixel (x,y) will be at index (y * width + x).

Definition at line 114 of file gstnvdsinfer.h.

◆ class_probabilities_map

gfloat* NvDsInferSegmentationMeta::class_probabilities_map

Pointer to the raw array containing the probabilities.

The probability for class c and pixel (x,y) will be at index (c * width *height + y * width + x).

Definition at line 117 of file gstnvdsinfer.h.

◆ classes

guint NvDsInferSegmentationMeta::classes

Number of classes in the segmentation output.

Definition at line 107 of file gstnvdsinfer.h.

◆ height

guint NvDsInferSegmentationMeta::height

Height of the segmentation output class map.

Definition at line 111 of file gstnvdsinfer.h.

◆ priv_data

void* NvDsInferSegmentationMeta::priv_data

Private data used for the meta producer's internal memory management.

Definition at line 119 of file gstnvdsinfer.h.

◆ unique_id

gint NvDsInferSegmentationMeta::unique_id

Unique ID of the gst-nvinfer instance which attached this meta.

Definition at line 121 of file gstnvdsinfer.h.

◆ width

guint NvDsInferSegmentationMeta::width

Width of the segmentation output class map.

Definition at line 109 of file gstnvdsinfer.h.


The documentation for this struct was generated from the following file: