Exposure compensator which tries to remove exposure related artifacts by adjusting image blocks.
More...
#include <opencv2/stitching/detail/exposure_compensate.hpp>
|
| | BlocksCompensator (int bl_width=32, int bl_height=32, int nr_feeds=1) |
| |
| void | apply (int index, Point corner, InputOutputArray image, InputArray mask) CV_OVERRIDE |
| | Compensate exposure in the specified image.
|
| |
| Size | getBlockSize () const |
| |
| void | getMatGains (std::vector< Mat > &umv) CV_OVERRIDE |
| |
| int | getNrFeeds () |
| |
| int | getNrGainsFilteringIterations () const |
| |
| double | getSimilarityThreshold () const |
| |
| void | setBlockSize (int width, int height) |
| |
| void | setBlockSize (Size size) |
| |
| void | setMatGains (std::vector< Mat > &umv) CV_OVERRIDE |
| |
| void | setNrFeeds (int nr_feeds) |
| |
| void | setNrGainsFilteringIterations (int nr_iterations) |
| |
| void | setSimilarityThreshold (double similarity_threshold) |
| |
| | ExposureCompensator () |
| |
| virtual | ~ExposureCompensator () |
| |
| virtual void | feed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< std::pair< UMat, uchar > > &masks)=0 |
| |
| void | feed (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< UMat > &masks) |
| |
| bool | getUpdateGain () |
| |
| void | setUpdateGain (bool b) |
| |
|
| template<class Compensator > |
| void | feedWithStrategy (const std::vector< Point > &corners, const std::vector< UMat > &images, const std::vector< std::pair< UMat, uchar > > &masks) |
| |
Exposure compensator which tries to remove exposure related artifacts by adjusting image blocks.
- Examples
- samples/cpp/stitching_detailed.cpp.
◆ BlocksCompensator()
| cv::detail::BlocksCompensator::BlocksCompensator |
( |
int | bl_width = 32, |
|
|
int | bl_height = 32, |
|
|
int | nr_feeds = 1 ) |
|
inline |
◆ apply()
| Python: |
|---|
| cv.detail.BlocksCompensator.apply( | index, corner, image, mask | ) -> | image |
◆ feedWithStrategy()
template<class Compensator >
| void cv::detail::BlocksCompensator::feedWithStrategy |
( |
const std::vector< Point > & | corners, |
|
|
const std::vector< UMat > & | images, |
|
|
const std::vector< std::pair< UMat, uchar > > & | masks ) |
|
protected |
◆ getBlockSize()
| Size cv::detail::BlocksCompensator::getBlockSize |
( |
| ) |
const |
|
inline |
| Python: |
|---|
| cv.detail.BlocksCompensator.getBlockSize( | | ) -> | retval |
◆ getMatGains()
| void cv::detail::BlocksCompensator::getMatGains |
( |
std::vector< Mat > & | umv | ) |
|
|
virtual |
| Python: |
|---|
| cv.detail.BlocksCompensator.getMatGains( | [, umv] | ) -> | umv |
◆ getNrFeeds()
| int cv::detail::BlocksCompensator::getNrFeeds |
( |
| ) |
|
|
inline |
| Python: |
|---|
| cv.detail.BlocksCompensator.getNrFeeds( | | ) -> | retval |
◆ getNrGainsFilteringIterations()
| int cv::detail::BlocksCompensator::getNrGainsFilteringIterations |
( |
| ) |
const |
|
inline |
| Python: |
|---|
| cv.detail.BlocksCompensator.getNrGainsFilteringIterations( | | ) -> | retval |
◆ getSimilarityThreshold()
| double cv::detail::BlocksCompensator::getSimilarityThreshold |
( |
| ) |
const |
|
inline |
| Python: |
|---|
| cv.detail.BlocksCompensator.getSimilarityThreshold( | | ) -> | retval |
◆ setBlockSize() [1/2]
| void cv::detail::BlocksCompensator::setBlockSize |
( |
int | width, |
|
|
int | height ) |
|
inline |
| Python: |
|---|
| cv.detail.BlocksCompensator.setBlockSize( | width, height | ) -> | None |
| cv.detail.BlocksCompensator.setBlockSize( | size | ) -> | None |
◆ setBlockSize() [2/2]
| void cv::detail::BlocksCompensator::setBlockSize |
( |
Size | size | ) |
|
|
inline |
| Python: |
|---|
| cv.detail.BlocksCompensator.setBlockSize( | width, height | ) -> | None |
| cv.detail.BlocksCompensator.setBlockSize( | size | ) -> | None |
◆ setMatGains()
| void cv::detail::BlocksCompensator::setMatGains |
( |
std::vector< Mat > & | umv | ) |
|
|
virtual |
| Python: |
|---|
| cv.detail.BlocksCompensator.setMatGains( | umv | ) -> | None |
◆ setNrFeeds()
| void cv::detail::BlocksCompensator::setNrFeeds |
( |
int | nr_feeds | ) |
|
|
inline |
| Python: |
|---|
| cv.detail.BlocksCompensator.setNrFeeds( | nr_feeds | ) -> | None |
◆ setNrGainsFilteringIterations()
| void cv::detail::BlocksCompensator::setNrGainsFilteringIterations |
( |
int | nr_iterations | ) |
|
|
inline |
| Python: |
|---|
| cv.detail.BlocksCompensator.setNrGainsFilteringIterations( | nr_iterations | ) -> | None |
◆ setSimilarityThreshold()
| void cv::detail::BlocksCompensator::setSimilarityThreshold |
( |
double | similarity_threshold | ) |
|
|
inline |
| Python: |
|---|
| cv.detail.BlocksCompensator.setSimilarityThreshold( | similarity_threshold | ) -> | None |
The documentation for this class was generated from the following file: