OpenCV  4.1.2
Open Source Computer Vision
Public Member Functions | List of all members
cv::AlignMTB Class Referenceabstract

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. More...

#include <opencv2/photo.hpp>

Inheritance diagram for cv::AlignMTB:
cv::AlignExposures cv::Algorithm

Public Member Functions

virtual Point calculateShift (InputArray img0, InputArray img1)=0
 Calculates shift between two images, i. e. how to shift the second image to correspond it with the first. More...
 
virtual void computeBitmaps (InputArray img, OutputArray tb, OutputArray eb)=0
 Computes median threshold and exclude bitmaps of given image. More...
 
virtual bool getCut () const =0
 
virtual int getExcludeRange () const =0
 
virtual int getMaxBits () const =0
 
virtual void process (InputArrayOfArrays src, std::vector< Mat > &dst, InputArray times, InputArray response) CV_OVERRIDE=0
 Aligns images. More...
 
virtual void process (InputArrayOfArrays src, std::vector< Mat > &dst)=0
 Short version of process, that doesn't take extra arguments. More...
 
virtual void setCut (bool value)=0
 
virtual void setExcludeRange (int exclude_range)=0
 
virtual void setMaxBits (int max_bits)=0
 
virtual void shiftMat (InputArray src, OutputArray dst, const Point shift)=0
 Helper function, that shift Mat filling new regions with zeros. More...
 
- Public Member Functions inherited from cv::Algorithm
 Algorithm ()
 
virtual ~Algorithm ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty () const
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
virtual String getDefaultName () const
 
virtual void read (const FileNode &fn)
 Reads algorithm parameters from a file storage. More...
 
virtual void save (const String &filename) const
 
virtual void write (FileStorage &fs) const
 Stores algorithm parameters in a file storage. More...
 
void write (const Ptr< FileStorage > &fs, const String &name=String()) const
 simplified API for language bindings This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cv::Algorithm
template<typename _Tp >
static Ptr< _Tp > load (const String &filename, const String &objname=String())
 Loads algorithm from the file. More...
 
template<typename _Tp >
static Ptr< _Tp > loadFromString (const String &strModel, const String &objname=String())
 Loads algorithm from a String. More...
 
template<typename _Tp >
static Ptr< _Tp > read (const FileNode &fn)
 Reads algorithm from the file node. More...
 
- Protected Member Functions inherited from cv::Algorithm
void writeFormat (FileStorage &fs) const
 

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 [236] .

Member Function Documentation

§ calculateShift()

virtual Point cv::AlignMTB::calculateShift ( InputArray  img0,
InputArray  img1 
)
pure virtual
Python:
retval=cv.AlignMTB.calculateShift(img0, img1)

Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.

Parameters
img0first image
img1second image

§ computeBitmaps()

virtual void cv::AlignMTB::computeBitmaps ( InputArray  img,
OutputArray  tb,
OutputArray  eb 
)
pure virtual
Python:
tb, eb=cv.AlignMTB.computeBitmaps(img[, tb[, eb]])

Computes median threshold and exclude bitmaps of given image.

Parameters
imginput image
tbmedian threshold bitmap
ebexclude bitmap

§ getCut()

virtual bool cv::AlignMTB::getCut ( ) const
pure virtual
Python:
retval=cv.AlignMTB.getCut()

§ getExcludeRange()

virtual int cv::AlignMTB::getExcludeRange ( ) const
pure virtual
Python:
retval=cv.AlignMTB.getExcludeRange()

§ getMaxBits()

virtual int cv::AlignMTB::getMaxBits ( ) const
pure virtual
Python:
retval=cv.AlignMTB.getMaxBits()

§ process() [1/2]

virtual void cv::AlignMTB::process ( InputArrayOfArrays  src,
std::vector< Mat > &  dst,
InputArray  times,
InputArray  response 
)
pure virtual
Python:
None=cv.AlignMTB.process(src, dst, times, response)
None=cv.AlignMTB.process(src, dst)

Aligns images.

Parameters
srcvector of input images
dstvector of aligned images
timesvector of exposure time values for each image
response256x1 matrix with inverse camera response function for each pixel value, it should have the same number of channels as images.

Implements cv::AlignExposures.

§ process() [2/2]

virtual void cv::AlignMTB::process ( InputArrayOfArrays  src,
std::vector< Mat > &  dst 
)
pure virtual
Python:
None=cv.AlignMTB.process(src, dst, times, response)
None=cv.AlignMTB.process(src, dst)

Short version of process, that doesn't take extra arguments.

Parameters
srcvector of input images
dstvector of aligned images

§ setCut()

virtual void cv::AlignMTB::setCut ( bool  value)
pure virtual
Python:
None=cv.AlignMTB.setCut(value)

§ setExcludeRange()

virtual void cv::AlignMTB::setExcludeRange ( int  exclude_range)
pure virtual
Python:
None=cv.AlignMTB.setExcludeRange(exclude_range)

§ setMaxBits()

virtual void cv::AlignMTB::setMaxBits ( int  max_bits)
pure virtual
Python:
None=cv.AlignMTB.setMaxBits(max_bits)

§ shiftMat()

virtual void cv::AlignMTB::shiftMat ( InputArray  src,
OutputArray  dst,
const Point  shift 
)
pure virtual
Python:
dst=cv.AlignMTB.shiftMat(src, shift[, dst])

Helper function, that shift Mat filling new regions with zeros.

Parameters
srcinput image
dstresult image
shiftshift value

The documentation for this class was generated from the following file: