OpenCV for Unity  2.6.0
Enox Software / Please refer to OpenCV official document ( http://docs.opencv.org/4.9.0/index.html ) for the details of the argument of the method.
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
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...

Inheritance diagram for OpenCVForUnity.PhotoModule.AlignMTB:
OpenCVForUnity.PhotoModule.AlignExposures OpenCVForUnity.CoreModule.Algorithm OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject

Public Member Functions

override void process (List< Mat > src, List< Mat > dst, Mat times, Mat response)
 Aligns images. More...
 
void process (List< Mat > src, List< Mat > dst)
 Short version of process, that doesn't take extra arguments. More...
 
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. More...
 
void shiftMat (Mat src, Mat dst, Point shift)
 Helper function, that shift Mat filling new regions with zeros. More...
 
void computeBitmaps (Mat img, Mat tb, Mat eb)
 Computes median threshold and exclude bitmaps of given image. More...
 
int getMaxBits ()
 
void setMaxBits (int max_bits)
 
int getExcludeRange ()
 
void setExcludeRange (int exclude_range)
 
bool getCut ()
 
void setCut (bool value)
 
- Public Member Functions inherited from OpenCVForUnity.CoreModule.Algorithm
IntPtr getNativeObjAddr ()
 
virtual void clear ()
 Clears the algorithm state. More...
 
virtual bool empty ()
 Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read. More...
 
void save (string filename)
 
virtual string getDefaultName ()
 
- 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)
 

Protected Member Functions

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

Additional Inherited Members

- 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

◆ 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]

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.

◆ process() [2/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

◆ 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()

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

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