Templated image for any type of pixel. More...
#include <ImageTmpl.h>
Inheritance diagram for carla::sensor::data::ImageTmpl< PixelT >:
Collaboration diagram for carla::sensor::data::ImageTmpl< PixelT >:Public Types | |
| using | pixel_type = PixelT |
Public Types inherited from carla::sensor::data::Array< PixelT > | |
| using | const_iterator = typename std::add_const< value_type >::type * |
| using | const_pointer = typename std::add_const< value_type >::type * |
| using | const_reference = typename std::add_const< value_type >::type & |
| using | const_reverse_iterator = std::reverse_iterator< const_iterator > |
| using | iterator = value_type * |
| using | pointer = value_type * |
| using | reference = value_type & |
| using | reverse_iterator = std::reverse_iterator< iterator > |
| using | size_type = size_t |
| using | value_type = PixelT |
Public Member Functions | |
| auto | GetFOVAngle () const |
| Get horizontal field of view of the image in degrees. More... | |
| auto | GetHeight () const |
| Get image height in pixels. More... | |
| auto | GetWidth () const |
| Get image width in pixels. More... | |
Public Member Functions inherited from carla::sensor::data::Array< PixelT > | |
| reference | at (size_type pos) |
| const_reference | at (size_type pos) const |
| iterator | begin () |
| const_iterator | begin () const |
| const_iterator | cbegin () const |
| const_iterator | cend () const |
| const_reverse_iterator | crbegin () const |
| const_reverse_iterator | crend () const |
| value_type * | data () |
| const value_type * | data () const |
| bool | empty () const |
| iterator | end () |
| const_iterator | end () const |
| reference | operator[] (size_type pos) |
| const_reference | operator[] (size_type pos) const |
| reverse_iterator | rbegin () |
| const_reverse_iterator | rbegin () const |
| reverse_iterator | rend () |
| const_reverse_iterator | rend () const |
| size_type | size () const |
Public Member Functions inherited from carla::sensor::SensorData | |
| size_t | GetFrame () const |
| Frame count when the data was generated. More... | |
| const rpc::Transform & | GetSensorTransform () const |
| Sensor's transform when the data was generated. More... | |
| double | GetTimestamp () const |
| Simulation-time when the data was generated. More... | |
| virtual | ~SensorData ()=default |
Protected Types | |
| using | Serializer = s11n::ImageSerializer |
| using | SerializerNormals = s11n::NormalsImageSerializer |
| using | SerializerOpticalFlow = s11n::OpticalFlowImageSerializer |
Protected Member Functions | |
| ImageTmpl (RawData &&data) | |
Protected Member Functions inherited from carla::sensor::data::Array< PixelT > | |
| Array (RawData &&data, FuncT get_offset) | |
| Array (size_t offset, RawData &&data) | |
| const RawData & | GetRawData () const |
Protected Member Functions inherited from carla::sensor::SensorData | |
| const auto & | GetEpisode () const |
| SensorData (size_t frame, double timestamp, const rpc::Transform &sensor_transform) | |
| SensorData (const RawData &data) | |
Protected Attributes | |
| friend | Serializer |
| friend | SerializerNormals |
| friend | SerializerOpticalFlow |
Private Types | |
| using | Super = Array< PixelT > |
Private Member Functions | |
| const auto & | GetHeader () const |
Friends | |
| class | carla::ros2::ROS2 |
Templated image for any type of pixel.
Definition at line 24 of file ImageTmpl.h.
| using carla::sensor::data::ImageTmpl< PixelT >::pixel_type = PixelT |
Definition at line 52 of file ImageTmpl.h.
|
protected |
Definition at line 29 of file ImageTmpl.h.
|
protected |
Definition at line 31 of file ImageTmpl.h.
|
protected |
Definition at line 30 of file ImageTmpl.h.
|
private |
Definition at line 25 of file ImageTmpl.h.
|
inlineexplicitprotected |
Definition at line 39 of file ImageTmpl.h.
References DEBUG_ASSERT, carla::sensor::data::ImageTmpl< PixelT >::GetHeight(), carla::sensor::data::ImageTmpl< PixelT >::GetWidth(), and carla::sensor::data::Array< PixelT >::size().
Here is the call graph for this function:
|
inline |
Get horizontal field of view of the image in degrees.
Definition at line 65 of file ImageTmpl.h.
References carla::sensor::data::ImageTmpl< PixelT >::GetHeader().
Here is the call graph for this function:
|
inlineprivate |
Definition at line 46 of file ImageTmpl.h.
References carla::sensor::s11n::ImageSerializer::DeserializeHeader(), and carla::sensor::data::Array< PixelT >::GetRawData().
Referenced by carla::sensor::data::ImageTmpl< PixelT >::GetFOVAngle(), carla::sensor::data::ImageTmpl< PixelT >::GetHeight(), and carla::sensor::data::ImageTmpl< PixelT >::GetWidth().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Get image height in pixels.
Definition at line 60 of file ImageTmpl.h.
References carla::sensor::data::ImageTmpl< PixelT >::GetHeader().
Referenced by carla::sensor::data::ImageTmpl< PixelT >::ImageTmpl().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Get image width in pixels.
Definition at line 55 of file ImageTmpl.h.
References carla::sensor::data::ImageTmpl< PixelT >::GetHeader().
Referenced by carla::sensor::data::ImageTmpl< PixelT >::ImageTmpl().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
Definition at line 26 of file ImageTmpl.h.
|
protected |
Definition at line 33 of file ImageTmpl.h.
|
protected |
Definition at line 37 of file ImageTmpl.h.
|
protected |
Definition at line 34 of file ImageTmpl.h.
1.8.13