Class cv::AlignMTB#
This algorithm converts images to median threshold bitmaps (1 for pixels brighter than median luminance and 0 otherwise) and than aligns the resulting bitmaps using bit operations. View details
#include <opencv2/photo.hpp>Collaboration diagram for cv::AlignMTB:
Public Member Functions#
Public Member Functions inherited from cv::AlignExposures
Return |
Name |
Description |
|---|---|---|
|
|
Aligns images. |
Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Clears the algorithm state. |
|
|
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. |
|
|
Reads algorithm parameters from a file storage. |
|
|
||
|
|
|
|
Stores algorithm parameters in a file storage. |
|
|
Static Public Member Functions#
Static Public Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
|
Loads algorithm from the file. |
|
|
Loads algorithm from a String. |
|
Reads algorithm from the file node. |
Additional Inherited Members#
Protected Member Functions inherited from cv::Algorithm
Return |
Name |
Description |
|---|---|---|
|
Detailed Description#
This algorithm converts images to median threshold bitmaps (1 for pixels brighter than median luminance and 0 otherwise) and than aligns the resulting bitmaps using bit operations.
It is invariant to exposure, so exposure values and camera response are not necessary.
In this implementation new image regions are filled with zeros.
For more information see GW03 .
Member Function Documentation#
calculateShift()#
Point cv::AlignMTB::calculateShift(
InputArray img0,
InputArray img1 )
Python:
cv.AlignMTB.calculateShift(img0, img1) -> retval
Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.
Parameters
img0— first imageimg1— second image
computeBitmaps()#
void cv::AlignMTB::computeBitmaps(
InputArray img,
OutputArray tb,
OutputArray eb )
Python:
cv.AlignMTB.computeBitmaps(img[, tb[, eb]]) -> tb, eb
Computes median threshold and exclude bitmaps of given image.
Parameters
img— input imagetb— median threshold bitmapeb— exclude bitmap
getCut()#
bool cv::AlignMTB::getCut()
Python:
cv.AlignMTB.getCut() -> retval
getExcludeRange()#
int cv::AlignMTB::getExcludeRange()
Python:
cv.AlignMTB.getExcludeRange() -> retval
getMaxBits()#
int cv::AlignMTB::getMaxBits()
Python:
cv.AlignMTB.getMaxBits() -> retval
process()#
void cv::AlignMTB::process(
InputArrayOfArrays src,
std::vector< Mat > & dst )
Python:
cv.AlignMTB.process(src, dst, times, response)
cv.AlignMTB.process(src, dst)
Short version of process, that doesn’t take extra arguments.
Parameters
src— vector of input imagesdst— vector of aligned images
process()#
void cv::AlignMTB::process(
InputArrayOfArrays src,
std::vector< Mat > & dst,
InputArray times,
InputArray response )
Python:
cv.AlignMTB.process(src, dst, times, response)
cv.AlignMTB.process(src, dst)
Aligns images.
Parameters
src— vector of input imagesdst— vector of aligned imagestimes— vector of exposure time values for each imageresponse— 256x1 matrix with inverse camera response function for each pixel value, it should have the same number of channels as images.
setCut()#
void cv::AlignMTB::setCut(bool value)
Python:
cv.AlignMTB.setCut(value)
setExcludeRange()#
void cv::AlignMTB::setExcludeRange(int exclude_range)
Python:
cv.AlignMTB.setExcludeRange(exclude_range)
setMaxBits()#
void cv::AlignMTB::setMaxBits(int max_bits)
Python:
cv.AlignMTB.setMaxBits(max_bits)
shiftMat()#
void cv::AlignMTB::shiftMat(
InputArray src,
OutputArray dst,
const Point shift )
Python:
cv.AlignMTB.shiftMat(src, shift[, dst]) -> dst
Helper function, that shift Mat filling new regions with zeros.
Parameters
src— input imagedst— result imageshift— shift value
Source file#
The documentation for this class was generated from the following file:
opencv2/photo.hpp