OpenCV for Unity 2.6.4
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.10.0/index.html ) for the details of the argument of the method.
Loading...
Searching...
No Matches
OpenCVForUnity.PhotoModule.AlignMTB Class Reference

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

Public Member Functions

Point calculateShift (Mat img0, Mat img1)
 Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.
 
double double y calculateShiftAsValueTuple (Mat img0, Mat img1)
 
Vec2d calculateShiftAsVec2d (Mat img0, Mat img1)
 Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.
 
void computeBitmaps (Mat img, Mat tb, Mat eb)
 Computes median threshold and exclude bitmaps of given image.
 
bool getCut ()
 
int getExcludeRange ()
 
int getMaxBits ()
 
void process (List< Mat > src, List< Mat > dst)
 Short version of process, that doesn't take extra arguments.
 
override void process (List< Mat > src, List< Mat > dst, Mat times, Mat response)
 Aligns images.
 
void setCut (bool value)
 
void setExcludeRange (int exclude_range)
 
void setMaxBits (int max_bits)
 
void shiftMat (Mat src, Mat dst, in Vec2d shift)
 Helper function, that shift Mat filling new regions with zeros.
 
void shiftMat (Mat src, Mat dst, in(double x, double y) shift)
 Helper function, that shift Mat filling new regions with zeros.
 
void shiftMat (Mat src, Mat dst, Point shift)
 Helper function, that shift Mat filling new regions with zeros.
 
- Public Member Functions inherited from OpenCVForUnity.PhotoModule.AlignExposures
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
virtual void clear ()
 Clears the algorithm state.
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read.
 
virtual string getDefaultName ()
 
IntPtr getNativeObjAddr ()
 
void save (string filename)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static new AlignMTB __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.PhotoModule.AlignExposures
static new AlignExposures __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
static Algorithm __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Public Attributes

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

Protected Member Functions

override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.PhotoModule.AlignExposures
- Protected Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Protected Member Functions inherited from OpenCVForUnity.DisposableOpenCVObject
 DisposableOpenCVObject ()
 
 DisposableOpenCVObject (bool isEnabledDispose)
 
 DisposableOpenCVObject (IntPtr ptr)
 
 DisposableOpenCVObject (IntPtr ptr, bool isEnabledDispose)
 
override void Dispose (bool disposing)
 
- Protected Member Functions inherited from OpenCVForUnity.DisposableObject
 DisposableObject ()
 
 DisposableObject (bool isEnabledDispose)
 

Additional Inherited Members

- Package Functions inherited from OpenCVForUnity.PhotoModule.AlignExposures
- Package Functions inherited from OpenCVForUnity.CoreModule.Algorithm
- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

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

◆ __fromPtr__()

static new AlignMTB OpenCVForUnity.PhotoModule.AlignMTB.__fromPtr__ ( IntPtr addr)
static

◆ calculateShift()

Point OpenCVForUnity.PhotoModule.AlignMTB.calculateShift ( Mat img0,
Mat 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

◆ calculateShiftAsValueTuple()

double double y OpenCVForUnity.PhotoModule.AlignMTB.calculateShiftAsValueTuple ( Mat img0,
Mat img1 )

◆ calculateShiftAsVec2d()

Vec2d OpenCVForUnity.PhotoModule.AlignMTB.calculateShiftAsVec2d ( Mat img0,
Mat 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()

void OpenCVForUnity.PhotoModule.AlignMTB.computeBitmaps ( Mat img,
Mat tb,
Mat eb )

Computes median threshold and exclude bitmaps of given image.

Parameters
imginput image
tbmedian threshold bitmap
ebexclude bitmap

◆ Dispose()

override void OpenCVForUnity.PhotoModule.AlignMTB.Dispose ( bool disposing)
protectedvirtual

◆ getCut()

bool OpenCVForUnity.PhotoModule.AlignMTB.getCut ( )

◆ getExcludeRange()

int OpenCVForUnity.PhotoModule.AlignMTB.getExcludeRange ( )

◆ getMaxBits()

int OpenCVForUnity.PhotoModule.AlignMTB.getMaxBits ( )

◆ process() [1/2]

void OpenCVForUnity.PhotoModule.AlignMTB.process ( List< Mat > src,
List< Mat > dst )

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

Parameters
srcvector of input images
dstvector of aligned images

◆ process() [2/2]

override void OpenCVForUnity.PhotoModule.AlignMTB.process ( List< Mat > src,
List< Mat > dst,
Mat times,
Mat response )
virtual

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.

Reimplemented from OpenCVForUnity.PhotoModule.AlignExposures.

◆ setCut()

void OpenCVForUnity.PhotoModule.AlignMTB.setCut ( bool value)

◆ setExcludeRange()

void OpenCVForUnity.PhotoModule.AlignMTB.setExcludeRange ( int exclude_range)

◆ setMaxBits()

void OpenCVForUnity.PhotoModule.AlignMTB.setMaxBits ( int max_bits)

◆ shiftMat() [1/3]

void OpenCVForUnity.PhotoModule.AlignMTB.shiftMat ( Mat src,
Mat dst,
in Vec2d shift )

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

Parameters
srcinput image
dstresult image
shiftshift value

◆ shiftMat() [2/3]

void OpenCVForUnity.PhotoModule.AlignMTB.shiftMat ( Mat src,
Mat dst,
in(double x, double y) shift )

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

Parameters
srcinput image
dstresult image
shiftshift value

◆ shiftMat() [3/3]

void OpenCVForUnity.PhotoModule.AlignMTB.shiftMat ( Mat src,
Mat dst,
Point shift )

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

Parameters
srcinput image
dstresult image
shiftshift value

Member Data Documentation

◆ x

double OpenCVForUnity.PhotoModule.AlignMTB.x

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

Parameters
img0first image
img1second image

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