A class for estimating image warping based on perspective distortion. Primarily intended for use with downward-facing camera methods.
More...
#include <image_warp_util.h>
A class for estimating image warping based on perspective distortion. Primarily intended for use with downward-facing camera methods.
Definition at line 212 of file image_warp_util.h.
◆ PitchAndRollEstimatorQueue()
| swri_image_util::PitchAndRollEstimatorQueue::PitchAndRollEstimatorQueue |
( |
| ) |
|
◆ ~PitchAndRollEstimatorQueue()
| swri_image_util::PitchAndRollEstimatorQueue::~PitchAndRollEstimatorQueue |
( |
| ) |
|
|
inline |
◆ Clear()
| void swri_image_util::PitchAndRollEstimatorQueue::Clear |
( |
| ) |
|
◆ ComputeStats()
| void swri_image_util::PitchAndRollEstimatorQueue::ComputeStats |
( |
| ) |
|
|
private |
◆ GenerateNewEstimate()
| void swri_image_util::PitchAndRollEstimatorQueue::GenerateNewEstimate |
( |
const cv::Mat & |
points1, |
|
|
const cv::Mat & |
points2, |
|
|
const cv::Size & |
image_size |
|
) |
| |
Estimates pitch and roll from corresponding points and loads the pitch and roll data onto the buffer.
- Parameters
-
| [in] | points1 | Points from first image |
| [in] | points2 | Corresponding points from second image |
| [in] | image_size | The size of the image |
Definition at line 512 of file image_warp_util.cpp.
◆ GetMeanPitchAndRoll()
| bool swri_image_util::PitchAndRollEstimatorQueue::GetMeanPitchAndRoll |
( |
double & |
pitch, |
|
|
double & |
roll |
|
) |
| |
Computes the mean pitch and roll.
- Parameters
-
| [out] | pitch | The computed mean pitch (will be zero if buffer is empty) |
| [out] | roll | The computed mean roll (will be zero if buffer is empty) |
- Return values
-
| Returns | false if the buffer is empty |
Definition at line 537 of file image_warp_util.cpp.
◆ GetMedianPitchAndRoll()
| bool swri_image_util::PitchAndRollEstimatorQueue::GetMedianPitchAndRoll |
( |
double & |
pitch, |
|
|
double & |
roll |
|
) |
| |
Computes the median pitch and roll.
- Parameters
-
| [out] | pitch | The computed median pitch (will be zero if buffer is empty) |
| [out] | roll | The computed median roll (will be zero if buffer is empty) |
- Return values
-
| Returns | false if the buffer is empty |
Definition at line 551 of file image_warp_util.cpp.
◆ LoadNewData()
| void swri_image_util::PitchAndRollEstimatorQueue::LoadNewData |
( |
double |
new_pitch, |
|
|
double |
new_roll |
|
) |
| |
Loads new pitch and roll data directly onto the buffer.
- Parameters
-
| [in] | new_pitch | New pitch data |
| [in] | new_roll | New roll data |
Definition at line 566 of file image_warp_util.cpp.
◆ SetBufferSize()
| void swri_image_util::PitchAndRollEstimatorQueue::SetBufferSize |
( |
int32_t |
buff_size = 50 | ) |
|
Sets the circular buffer capacity for computing statistics.
- Parameters
-
| [in] | buff_size | The desired size of the buffer |
Definition at line 463 of file image_warp_util.cpp.
◆ WarpPoints()
| void swri_image_util::PitchAndRollEstimatorQueue::WarpPoints |
( |
const cv::Mat & |
points_in, |
|
|
cv::Mat & |
points_out, |
|
|
const cv::Size & |
image_size, |
|
|
bool |
use_median = true |
|
) |
| |
Warps points based on the stored estimated pitch and roll.
- Parameters
-
| [in] | points_in | The input points matrix |
| [out] | points_out | The output points matrix |
| [in] | image_size | The corresponding image size |
| [in] | use_median | Specify whether to use median or mean values, default is use_median = true |
Definition at line 475 of file image_warp_util.cpp.
◆ mean_pitch_
| double swri_image_util::PitchAndRollEstimatorQueue::mean_pitch_ |
|
private |
◆ mean_roll_
| double swri_image_util::PitchAndRollEstimatorQueue::mean_roll_ |
|
private |
◆ median_pitch_
| double swri_image_util::PitchAndRollEstimatorQueue::median_pitch_ |
|
private |
◆ median_roll_
| double swri_image_util::PitchAndRollEstimatorQueue::median_roll_ |
|
private |
◆ pitches_
| boost::circular_buffer<double> swri_image_util::PitchAndRollEstimatorQueue::pitches_ |
|
private |
◆ rolls_
| boost::circular_buffer<double> swri_image_util::PitchAndRollEstimatorQueue::rolls_ |
|
private |
The documentation for this class was generated from the following files: