chrono::sensor::ChFilterImageResize Class Reference
Description
A filter that, when applied to a sensor, resizes the image to the specified dimensions.
#include <ChFilterImageOps.h>
Inheritance diagram for chrono::sensor::ChFilterImageResize:
Collaboration diagram for chrono::sensor::ChFilterImageResize:
Public Member Functions | |
ChFilterImageResize (int w, int h, std::string name={}) | |
Class constructor. More... | |
virtual void | Apply () |
Apply function. Applies the resize operation to the image. | |
virtual void | Initialize (std::shared_ptr< ChSensor > pSensor, std::shared_ptr< SensorBuffer > &bufferInOut) |
Initializes all data needed by the filter access apply function. More... | |
Public Member Functions inherited from chrono::sensor::ChFilter | |
virtual | ~ChFilter () |
Virtual class desctructor. | |
std::string & | Name () |
Accesses the name of the filter. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from chrono::sensor::ChFilter | |
ChFilter (std::string name) | |
protected constructor for the filter which requires a name as input. More... | |
void | InvalidFilterGraphNullBuffer (std::shared_ptr< ChSensor > pSensor) |
Error function for invalid filter graph: null buffer found. | |
void | InvalidFilterGraphBufferTypeMismatch (std::shared_ptr< ChSensor > pSensor) |
Error function for invalid filter graph: type mismatch in graph. | |
void | InvalidFilterGraphSensorTypeMismatch (std::shared_ptr< ChSensor > pSensor) |
Error function for invalid filter graph: type mismatch in graph. | |
Constructor & Destructor Documentation
◆ ChFilterImageResize()
CH_SENSOR_API chrono::sensor::ChFilterImageResize::ChFilterImageResize | ( | int | w, |
int | h, | ||
std::string | name = {} |
||
) |
Class constructor.
- Parameters
-
w Desired width of the image. h Desired height of the image. name String name of the filter.
Member Function Documentation
◆ Initialize()
|
virtual |
Initializes all data needed by the filter access apply function.
- Parameters
-
pSensor A pointer to the sensor on which the filter is attached. bufferInOut A buffer that is passed into the filter.
Implements chrono::sensor::ChFilter.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono_sensor/filters/ChFilterImageOps.h
- /builds/uwsbel/chrono/src/chrono_sensor/filters/ChFilterImageOps.cpp