#include <Projector.h>
Public Member Functions | |
cv::Rect | getRoi (int id) const |
void | projectMat (int roi_id, const cv::Mat &m, cv::Mat &outimage, int filltype=cv::BORDER_TRANSPARENT, const cv::Scalar &value=cv::Scalar()) |
void | setSRandK (const cv::Size &inputsz, const cv::Mat &R, const cv::Mat &K, std::vector< int > &roi_ids) |
Sets up the projector to remap based on the given R and K. Call this before calling any of the member project functions. | |
void | setWorkingRoi (int id) |
SparseProjector () | |
SparseProjector (const cv::Size &output_size, const cv::Size &n_grids) | |
Private Attributes | |
cv::Size | grids_ |
cv::Mat | K_ |
cv::Mat | mask_ |
cv::Size | output_size_ |
cv::Mat | R_ |
cv::Mat | remap1_ |
cv::Mat | remap2_ |
cv::Mat | remap_ |
std::vector< cv::Rect > | rois_ |
std::vector< cv::Rect > | small_rois_ |
cv::Mat | spherical_coords_ |
cv::Mat | spherical_coords_small_ |
cv::Mat | tm_ |
int | workingid_ |
Definition at line 117 of file Projector.h.
pano::SparseProjector::SparseProjector | ( | ) | [inline] |
Definition at line 119 of file Projector.h.
pano::SparseProjector::SparseProjector | ( | const cv::Size & | output_size, |
const cv::Size & | n_grids | ||
) |
Definition at line 343 of file Projector.cpp.
cv::Rect pano::SparseProjector::getRoi | ( | int | id | ) | const [inline] |
Definition at line 127 of file Projector.h.
void pano::SparseProjector::projectMat | ( | int | roi_id, |
const cv::Mat & | m, | ||
cv::Mat & | outimage, | ||
int | filltype = cv::BORDER_TRANSPARENT , |
||
const cv::Scalar & | value = cv::Scalar() |
||
) |
Definition at line 397 of file Projector.cpp.
void pano::SparseProjector::setSRandK | ( | const cv::Size & | inputsz, |
const cv::Mat & | R, | ||
const cv::Mat & | K, | ||
std::vector< int > & | roi_ids | ||
) |
Sets up the projector to remap based on the given R and K. Call this before calling any of the member project functions.
Definition at line 353 of file Projector.cpp.
void pano::SparseProjector::setWorkingRoi | ( | int | id | ) |
Definition at line 372 of file Projector.cpp.
cv::Size pano::SparseProjector::grids_ [private] |
Definition at line 134 of file Projector.h.
cv::Mat pano::SparseProjector::K_ [private] |
Definition at line 139 of file Projector.h.
cv::Mat pano::SparseProjector::mask_ [private] |
Definition at line 137 of file Projector.h.
cv::Size pano::SparseProjector::output_size_ [private] |
Definition at line 132 of file Projector.h.
cv::Mat pano::SparseProjector::R_ [private] |
Definition at line 139 of file Projector.h.
cv::Mat pano::SparseProjector::remap1_ [private] |
Definition at line 137 of file Projector.h.
cv::Mat pano::SparseProjector::remap2_ [private] |
Definition at line 137 of file Projector.h.
cv::Mat pano::SparseProjector::remap_ [private] |
Definition at line 137 of file Projector.h.
std::vector<cv::Rect> pano::SparseProjector::rois_ [private] |
Definition at line 135 of file Projector.h.
std::vector<cv::Rect> pano::SparseProjector::small_rois_ [private] |
Definition at line 136 of file Projector.h.
cv::Mat pano::SparseProjector::spherical_coords_ [private] |
Definition at line 137 of file Projector.h.
cv::Mat pano::SparseProjector::spherical_coords_small_ [private] |
Definition at line 133 of file Projector.h.
cv::Mat pano::SparseProjector::tm_ [private] |
Definition at line 137 of file Projector.h.
int pano::SparseProjector::workingid_ [private] |
Definition at line 138 of file Projector.h.