OpenCV for Unity 2.6.5
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 | |
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] |
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 |
double double y OpenCVForUnity.PhotoModule.AlignMTB.calculateShiftAsValueTuple | ( | Mat | img0, |
Mat | img1 ) |
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 | ( | ) |
Short version of process, that doesn't take extra arguments.
src | vector of input images |
dst | vector of aligned images |
|
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.
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 |
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.
src | input image |
dst | result image |
shift | shift value |
Helper function, that shift Mat filling new regions with zeros.
src | input image |
dst | result image |
shift | shift value |
double OpenCVForUnity.PhotoModule.AlignMTB.x |
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 |