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

Collaboration diagram for cv::AlignMTB:

Public Member Functions#

Public Member Functions inherited from cv::AlignExposures
Public Member Functions inherited from cv::Algorithm

Return

Name

Description

Algorithm()

~Algorithm()

void

clear()

Clears the algorithm state.

bool

empty()

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.

String

getDefaultName()

void

read(const FileNode & fn)

Reads algorithm parameters from a file storage.

void

save(const String & filename)

void

write(
    const Ptr< FileStorage > & fs,
    const String & name = String() )

void

write(FileStorage & fs)

Stores algorithm parameters in a file storage.

void

write(
    FileStorage & fs,
    const String & name )

Static Public Member Functions#

Static Public Member Functions inherited from cv::Algorithm

Return

Name

Description

static Ptr< _Tp >

load(
    const String & filename,
    const String & objname = String() )

Loads algorithm from the file.

static Ptr< _Tp >

loadFromString(
    const String & strModel,
    const String & objname = String() )

Loads algorithm from a String.

static Ptr< _Tp >

read(const FileNode & fn)

Reads algorithm from the file node.

Additional Inherited Members#

Protected Member Functions inherited from cv::Algorithm

Return

Name

Description

void

writeFormat(FileStorage & fs)

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 image

  • img1 — 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 image

  • tb — median threshold bitmap

  • eb — 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 images

  • dst — 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 images

  • dst — vector of aligned images

  • times — vector of exposure time values for each image

  • response — 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 image

  • dst — result image

  • shift — shift value

Source file#

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