Fawkes API
Fawkes Development Version
|
#include <>>
Public Member Functions | |
LossyScaler () | |
Constructor. More... | |
virtual | ~LossyScaler () |
Destructor. More... | |
virtual void | set_scale_factor (float factor) |
virtual void | set_original_dimensions (unsigned int width, unsigned int height) |
virtual void | set_scaled_dimensions (unsigned int width, unsigned int height) |
virtual void | set_original_buffer (unsigned char *buffer) |
virtual void | set_scaled_buffer (unsigned char *buffer) |
virtual void | scale () |
virtual unsigned int | needed_scaled_width () |
virtual unsigned int | needed_scaled_height () |
virtual float | get_scale_factor () |
![]() | |
virtual | ~Scaler () |
Virtual empty destructor. More... | |
Lossy image scaler. This scaler just takes the required pixels from the image and throws away the rest. No enhancement of the image is done. This is only suitable for downscaling. The scale factor must be between 0 and 1.
|
virtual |
|
virtual |
|
virtual |
Minimum needed height of scaled image depending on factor and original image height.
Implements firevision::Scaler.
Definition at line 131 of file lossy.cpp.
Referenced by ColorTrainWidget::draw_segmentation_result().
|
virtual |
Minimum needed width of scaled image depending on factor and original image width.
Implements firevision::Scaler.
Definition at line 125 of file lossy.cpp.
Referenced by ColorTrainWidget::draw_segmentation_result().
|
virtual |
Scale image.
Implements firevision::Scaler.
Definition at line 143 of file lossy.cpp.
Referenced by ColormapViewerWidget::draw(), ColorTrainWidget::draw_segmentation_result(), and firevision::ImageWidget::show().
|
virtual |
Set original image buffer.
buffer | YUV 422 planar buffer |
Implements firevision::Scaler.
Definition at line 113 of file lossy.cpp.
Referenced by ColormapViewerWidget::draw(), ColorTrainWidget::draw_segmentation_result(), and firevision::ImageWidget::show().
|
virtual |
Set original image dimensions.
width | image width |
height | height |
Implements firevision::Scaler.
Definition at line 80 of file lossy.cpp.
Referenced by ColormapViewerWidget::draw(), ColorTrainWidget::draw_segmentation_result(), and firevision::ImageWidget::show().
|
virtual |
|
virtual |
Set scaled image buffer.
buffer | YUV 422 planar buffer |
Implements firevision::Scaler.
Definition at line 119 of file lossy.cpp.
Referenced by ColormapViewerWidget::draw(), ColorTrainWidget::draw_segmentation_result(), and firevision::ImageWidget::show().
|
virtual |
Set dimenins of scaled image buffer.
width | image width |
height | height |
Implements firevision::Scaler.
Definition at line 87 of file lossy.cpp.
Referenced by ColormapViewerWidget::draw(), ColorTrainWidget::draw_segmentation_result(), and firevision::ImageWidget::show().