Template Class ImgDetectionsT
Defined in File ImgDetectionsT.hpp
Inheritance Relationships
Base Type
public dai::Buffer(Class Buffer)
Class Documentation
-
template<class DetectionT>
class ImgDetectionsT : public dai::Buffer Public Functions
-
ImgDetectionsT() = default
-
virtual ~ImgDetectionsT() = default
-
std::size_t getSegmentationMaskWidth() const
Returns the width of the segmentation mask.
-
std::size_t getSegmentationMaskHeight() const
Returns the height of the segmentation mask.
-
void setSegmentationMask(const std::vector<std::uint8_t> &mask, size_t width, size_t height)
Sets the segmentation mask from a vector of bytes. The size of the vector must be equal to width * height.
-
void setSegmentationMask(dai::ImgFrame &frame)
Sets the segmentation mask from an ImgFrame.
- Parameters:
frame – Frame must be of type GRAY8
-
std::optional<std::vector<std::uint8_t>> getMaskData() const
Returns a copy of the segmentation mask data as a vector of bytes. If mask data is not set, returns std::nullopt.
-
ImgDetectionsT() = default