Skip to main content

ImageSpec Struct

Image-tensor metadata: pixel format and (optional) color space. More...

Declaration

struct simaai::neat::ImageSpec { ... }

Included Headers

#include <TensorCore.h>

Enumerations Index

enum classPixelFormat { ... }

Pixel format enumeration covering the framework's supported image layouts. More...

Public Member Attributes Index

PixelFormatformat = PixelFormat::UNKNOWN

Pixel format of the image data. More...

std::stringcolor_space

Color space hint (e.g., "bt709", "srgb"); empty = unspecified. More...

Description

Image-tensor metadata: pixel format and (optional) color space.

Set on the Tensor::semantic.image optional when the tensor carries pixel data. The pixel format is the structural shape (channels, plane count); color space is informational.

Definition at line 136 of file TensorCore.h.

Enumerations

PixelFormat

enum class simaai::neat::ImageSpec::PixelFormat
strong

Pixel format enumeration covering the framework's supported image layouts.

Enumeration values
RGBPacked RGB, 3 channels, 8 bits per channel (= 0)
BGRPacked BGR (OpenCV's native default), 3 channels, 8 bpp
GRAY8Single-channel 8-bit grayscale
NV124:2:0 chroma with interleaved UV plane (camera-native on most chips)
I4204:2:0 chroma with separate U and V planes
UNKNOWN

Definition at line 138 of file TensorCore.h.

138 enum class PixelFormat {
139 RGB = 0,
140 BGR,
141 GRAY8,
142 NV12,
143 I420,
144 UNKNOWN,
145 };

Public Member Attributes

color_space

std::string simaai::neat::ImageSpec::color_space

Color space hint (e.g., "bt709", "srgb"); empty = unspecified.

Definition at line 148 of file TensorCore.h.

148 std::string color_space;

format

PixelFormat simaai::neat::ImageSpec::format = PixelFormat::UNKNOWN

Pixel format of the image data.

Definition at line 147 of file TensorCore.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.