Class mediapipe::api2::ImageToTensorCalculator
ClassList > mediapipe > api2 > ImageToTensorCalculator
Inherits the following classes: mediapipe::api2::Node
Public Static Attributes
Type | Name |
---|---|
constexpr Input< OneOf< mediapipe::Image, mediapipe::ImageFrame > >::Optional | kIn = {"IMAGE"} |
constexpr Input< GpuBuffer >::Optional | kInGpu = {"IMAGE\_GPU"} |
constexpr Input< mediapipe::NormalizedRect >::Optional | kInNormRect = /* multi line expression */ |
constexpr Output< std::array< float, 4 > >::Optional | kOutLetterboxPadding = /* multi line expression */ |
constexpr Output< std::array< float, 16 > >::Optional | kOutMatrix = {"MATRIX"} |
constexpr Output< std::vector< Tensor > > | kOutTensors = {"TENSORS"} |
Public Functions
Type | Name |
---|---|
MEDIAPIPE_NODE_CONTRACT (kIn, kInGpu, kInNormRect, kOutTensors, kOutLetterboxPadding, kOutMatrix) |
|
absl::Status | Open (CalculatorContext * cc) |
absl::Status | Process (CalculatorContext * cc) |
Public Static Functions
Type | Name |
---|---|
absl::Status | UpdateContract (CalculatorContract * cc) |
Public Static Attributes Documentation
variable kIn
constexpr Input<OneOf<mediapipe::Image,mediapipe::ImageFrame>>::Optional mediapipe::api2::ImageToTensorCalculator::kIn;
variable kInGpu
constexpr Input<GpuBuffer>::Optional mediapipe::api2::ImageToTensorCalculator::kInGpu;
variable kInNormRect
constexpr Input<mediapipe::NormalizedRect>::Optional mediapipe::api2::ImageToTensorCalculator::kInNormRect;
variable kOutLetterboxPadding
constexpr Output<std::array<float,4>>::Optional mediapipe::api2::ImageToTensorCalculator::kOutLetterboxPadding;
variable kOutMatrix
constexpr Output<std::array<float,16>>::Optional mediapipe::api2::ImageToTensorCalculator::kOutMatrix;
variable kOutTensors
constexpr Output<std::vector<Tensor> > mediapipe::api2::ImageToTensorCalculator::kOutTensors;
Public Functions Documentation
function MEDIAPIPE_NODE_CONTRACT
mediapipe::api2::ImageToTensorCalculator::MEDIAPIPE_NODE_CONTRACT (
kIn,
kInGpu,
kInNormRect,
kOutTensors,
kOutLetterboxPadding,
kOutMatrix
)
function Open
inline absl::Status mediapipe::api2::ImageToTensorCalculator::Open (
CalculatorContext * cc
)
function Process
inline absl::Status mediapipe::api2::ImageToTensorCalculator::Process (
CalculatorContext * cc
)
Public Static Functions Documentation
function UpdateContract
static inline absl::Status mediapipe::api2::ImageToTensorCalculator::UpdateContract (
CalculatorContract * cc
)
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR-plugins/hand_tracking/mediapipe/calculators/tensor/image_to_tensor_calculator.cc