CARLA
Loading...
Searching...
No Matches
carla::sensor::data::OpticalFlowPixel Struct Reference

Optical flow pixel format. 2 channel float data. More...

#include <Color.h>

Public Member Functions

 MSGPACK_DEFINE_ARRAY (x, y)
bool operator!= (const OpticalFlowPixel &rhs) const
OpticalFlowPixel & operator= (const OpticalFlowPixel &)=default
bool operator== (const OpticalFlowPixel &rhs) const
 OpticalFlowPixel ()=default
 OpticalFlowPixel (const OpticalFlowPixel &)=default
 OpticalFlowPixel (float x, float y)

Public Attributes

float x = 0
float y = 0

Detailed Description

Optical flow pixel format. 2 channel float data.

Definition at line 56 of file sensor/data/Color.h.

Constructor & Destructor Documentation

◆ OpticalFlowPixel() [1/3]

carla::sensor::data::OpticalFlowPixel::OpticalFlowPixel ( )
default

◆ OpticalFlowPixel() [2/3]

carla::sensor::data::OpticalFlowPixel::OpticalFlowPixel ( const OpticalFlowPixel & )
default

References OpticalFlowPixel().

◆ OpticalFlowPixel() [3/3]

carla::sensor::data::OpticalFlowPixel::OpticalFlowPixel ( float x,
float y )
inline

Definition at line 60 of file sensor/data/Color.h.

References x, and y.

Member Function Documentation

◆ MSGPACK_DEFINE_ARRAY()

carla::sensor::data::OpticalFlowPixel::MSGPACK_DEFINE_ARRAY ( x ,
y  )

References x, and y.

◆ operator!=()

bool carla::sensor::data::OpticalFlowPixel::operator!= ( const OpticalFlowPixel & rhs) const
inline

Definition at line 69 of file sensor/data/Color.h.

References OpticalFlowPixel().

◆ operator=()

OpticalFlowPixel & carla::sensor::data::OpticalFlowPixel::operator= ( const OpticalFlowPixel & )
default

References OpticalFlowPixel().

◆ operator==()

bool carla::sensor::data::OpticalFlowPixel::operator== ( const OpticalFlowPixel & rhs) const
inline

Definition at line 65 of file sensor/data/Color.h.

References OpticalFlowPixel(), x, and y.

Member Data Documentation

◆ x

float carla::sensor::data::OpticalFlowPixel::x = 0

Definition at line 73 of file sensor/data/Color.h.

Referenced by MSGPACK_DEFINE_ARRAY(), operator==(), and OpticalFlowPixel().

◆ y

float carla::sensor::data::OpticalFlowPixel::y = 0

Definition at line 74 of file sensor/data/Color.h.

Referenced by MSGPACK_DEFINE_ARRAY(), operator==(), and OpticalFlowPixel().


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