OpenCV for Unity
2.6.3
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.
|
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 | |
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] |
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] .
|
static |
Calculates shift between two images, i. e. how to shift the second image to correspond it with the first.
img0 | first image |
img1 | second image |
Computes median threshold and exclude bitmaps of given image.
img | input image |
tb | median threshold bitmap |
eb | exclude bitmap |
|
protectedvirtual |
Reimplemented from OpenCVForUnity.PhotoModule.AlignExposures.
bool OpenCVForUnity.PhotoModule.AlignMTB.getCut | ( | ) |
int OpenCVForUnity.PhotoModule.AlignMTB.getExcludeRange | ( | ) |
int OpenCVForUnity.PhotoModule.AlignMTB.getMaxBits | ( | ) |
|
virtual |
Aligns images.
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. |
Reimplemented from OpenCVForUnity.PhotoModule.AlignExposures.
Short version of process, that doesn't take extra arguments.
src | vector of input images |
dst | vector of aligned images |
void OpenCVForUnity.PhotoModule.AlignMTB.setCut | ( | bool | value | ) |
void OpenCVForUnity.PhotoModule.AlignMTB.setExcludeRange | ( | int | exclude_range | ) |
void OpenCVForUnity.PhotoModule.AlignMTB.setMaxBits | ( | int | max_bits | ) |
Helper function, that shift Mat filling new regions with zeros.
src | input image |
dst | result image |
shift | shift value |