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.
Loading...
Searching...
No Matches
OpenCVForUnity.DnnModule.Image2BlobParams Class Reference

Processing params of image to blob. More...

Inheritance diagram for OpenCVForUnity.DnnModule.Image2BlobParams:
OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableOpenCVObject OpenCVForUnity.DisposableObject OpenCVForUnity.DisposableObject OpenCVForUnity.DisposableObject

Public Member Functions

IntPtr getNativeObjAddr ()
 
 Image2BlobParams ()
 
 Image2BlobParams (Scalar scalefactor, Size size, Scalar mean, bool swapRB, int ddepth, Scalar borderValue)
 
 Image2BlobParams (Scalar scalefactor, Size size, Scalar mean, bool swapRB, int ddepth)
 
 Image2BlobParams (Scalar scalefactor, Size size, Scalar mean, bool swapRB)
 
 Image2BlobParams (Scalar scalefactor, Size size, Scalar mean)
 
 Image2BlobParams (Scalar scalefactor, Size size)
 
 Image2BlobParams (Scalar scalefactor)
 
Rect blobRectToImageRect (Rect rBlob, Size size)
 Get rectangle coordinates in original image system from rectangle in blob coordinates.
 
void blobRectsToImageRects (MatOfRect rBlob, MatOfRect rImg, Size size)
 Get rectangle coordinates in original image system from rectangle in blob coordinates.
 
Scalar get_scalefactor ()
 
void set_scalefactor (Scalar scalefactor)
 
Size get_size ()
 
void set_size (Size size)
 
Scalar get_mean ()
 
void set_mean (Scalar mean)
 
bool get_swapRB ()
 
void set_swapRB (bool swapRB)
 
int get_ddepth ()
 
void set_ddepth (int ddepth)
 
Scalar get_borderValue ()
 
void set_borderValue (Scalar borderValue)
 
 Image2BlobParams (in Vec4d scalefactor, in Vec2d size, in Vec4d mean, bool swapRB, int ddepth, in Vec4d borderValue)
 
 Image2BlobParams (in Vec4d scalefactor, in Vec2d size, in Vec4d mean, bool swapRB, int ddepth)
 
 Image2BlobParams (in Vec4d scalefactor, in Vec2d size, in Vec4d mean, bool swapRB)
 
 Image2BlobParams (in Vec4d scalefactor, in Vec2d size, in Vec4d mean)
 
 Image2BlobParams (in Vec4d scalefactor, in Vec2d size)
 
 Image2BlobParams (in Vec4d scalefactor)
 
Vec4i blobRectToImageRectAsVec4i (in Vec4i rBlob, in Vec2d size)
 Get rectangle coordinates in original image system from rectangle in blob coordinates.
 
void blobRectsToImageRects (MatOfRect rBlob, MatOfRect rImg, in Vec2d size)
 Get rectangle coordinates in original image system from rectangle in blob coordinates.
 
Vec4d get_scalefactorAsVec4d ()
 
void set_scalefactor (in Vec4d scalefactor)
 
Vec2d get_sizeAsVec2d ()
 
void set_size (in Vec2d size)
 
Vec4d get_meanAsVec4d ()
 
void set_mean (in Vec4d mean)
 
Vec4d get_borderValueAsVec4d ()
 
void set_borderValue (in Vec4d borderValue)
 
 Image2BlobParams (in(double v0, double v1, double v2, double v3) scalefactor, in(double width, double height) size, in(double v0, double v1, double v2, double v3) mean, bool swapRB, int ddepth, in(double v0, double v1, double v2, double v3) borderValue)
 
 Image2BlobParams (in(double v0, double v1, double v2, double v3) scalefactor, in(double width, double height) size, in(double v0, double v1, double v2, double v3) mean, bool swapRB, int ddepth)
 
 Image2BlobParams (in(double v0, double v1, double v2, double v3) scalefactor, in(double width, double height) size, in(double v0, double v1, double v2, double v3) mean, bool swapRB)
 
 Image2BlobParams (in(double v0, double v1, double v2, double v3) scalefactor, in(double width, double height) size, in(double v0, double v1, double v2, double v3) mean)
 
 Image2BlobParams (in(double v0, double v1, double v2, double v3) scalefactor, in(double width, double height) size)
 
 Image2BlobParams (in(double v0, double v1, double v2, double v3) scalefactor)
 
int int int int height blobRectToImageRectAsValueTuple (in(int x, int y, int width, int height) rBlob, in(double width, double height) size)
 
void blobRectsToImageRects (MatOfRect rBlob, MatOfRect rImg, in(double width, double height) size)
 Get rectangle coordinates in original image system from rectangle in blob coordinates.
 
double double double double v3 get_scalefactorAsValueTuple ()
 
void set_scalefactor (in(double v0, double v1, double v2, double v3) scalefactor)
 
double double height get_sizeAsValueTuple ()
 
void set_size (in(double width, double height) size)
 
double double double double v3 get_meanAsValueTuple ()
 
void set_mean (in(double v0, double v1, double v2, double v3) mean)
 
double double double double v3 get_borderValueAsValueTuple ()
 
void set_borderValue (in(double v0, double v1, double v2, double v3) borderValue)
 
- Public Member Functions inherited from OpenCVForUnity.DisposableObject
void Dispose ()
 
void ThrowIfDisposed ()
 

Static Public Member Functions

static Image2BlobParams __fromPtr__ (IntPtr addr)
 
- Static Public Member Functions inherited from OpenCVForUnity.DisposableObject
static IntPtr ThrowIfNullIntPtr (IntPtr ptr)
 

Public Attributes

int x
 Get rectangle coordinates in original image system from rectangle in blob coordinates.
 
int int y
 
int int int width
 
double v0
 
double double v1
 
double double double v2
 
double width
 

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

- Package Attributes inherited from OpenCVForUnity.DisposableOpenCVObject
- Properties inherited from OpenCVForUnity.DisposableObject
bool IsDisposed [get, protected set]
 
bool IsEnabledDispose [get, set]
 

Detailed Description

Processing params of image to blob.

It includes all possible image processing operations and corresponding parameters.

See also
blobFromImageWithParams
Note
The order and usage of scalefactor and mean are (input - mean) * scalefactor. The order and usage of scalefactor, size, mean, swapRB, and ddepth are consistent with the function of blobFromImage.

Constructor & Destructor Documentation

◆ Image2BlobParams() [1/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( )

◆ Image2BlobParams() [2/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( Scalar scalefactor,
Size size,
Scalar mean,
bool swapRB,
int ddepth,
Scalar borderValue )

◆ Image2BlobParams() [3/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( Scalar scalefactor,
Size size,
Scalar mean,
bool swapRB,
int ddepth )

◆ Image2BlobParams() [4/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( Scalar scalefactor,
Size size,
Scalar mean,
bool swapRB )

◆ Image2BlobParams() [5/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( Scalar scalefactor,
Size size,
Scalar mean )

◆ Image2BlobParams() [6/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( Scalar scalefactor,
Size size )

◆ Image2BlobParams() [7/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( Scalar scalefactor)

◆ Image2BlobParams() [8/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in Vec4d scalefactor,
in Vec2d size,
in Vec4d mean,
bool swapRB,
int ddepth,
in Vec4d borderValue )

◆ Image2BlobParams() [9/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in Vec4d scalefactor,
in Vec2d size,
in Vec4d mean,
bool swapRB,
int ddepth )

◆ Image2BlobParams() [10/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in Vec4d scalefactor,
in Vec2d size,
in Vec4d mean,
bool swapRB )

◆ Image2BlobParams() [11/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in Vec4d scalefactor,
in Vec2d size,
in Vec4d mean )

◆ Image2BlobParams() [12/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in Vec4d scalefactor,
in Vec2d size )

◆ Image2BlobParams() [13/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in Vec4d scalefactor)

◆ Image2BlobParams() [14/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in(double v0, double v1, double v2, double v3) scalefactor,
in(double width, double height) size,
in(double v0, double v1, double v2, double v3) mean,
bool swapRB,
int ddepth,
in(double v0, double v1, double v2, double v3) borderValue )

◆ Image2BlobParams() [15/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in(double v0, double v1, double v2, double v3) scalefactor,
in(double width, double height) size,
in(double v0, double v1, double v2, double v3) mean,
bool swapRB,
int ddepth )

◆ Image2BlobParams() [16/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in(double v0, double v1, double v2, double v3) scalefactor,
in(double width, double height) size,
in(double v0, double v1, double v2, double v3) mean,
bool swapRB )

◆ Image2BlobParams() [17/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in(double v0, double v1, double v2, double v3) scalefactor,
in(double width, double height) size,
in(double v0, double v1, double v2, double v3) mean )

◆ Image2BlobParams() [18/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in(double v0, double v1, double v2, double v3) scalefactor,
in(double width, double height) size )

◆ Image2BlobParams() [19/19]

OpenCVForUnity.DnnModule.Image2BlobParams.Image2BlobParams ( in(double v0, double v1, double v2, double v3) scalefactor)

Member Function Documentation

◆ __fromPtr__()

static Image2BlobParams OpenCVForUnity.DnnModule.Image2BlobParams.__fromPtr__ ( IntPtr addr)
static

◆ blobRectsToImageRects() [1/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.blobRectsToImageRects ( MatOfRect rBlob,
MatOfRect rImg,
in Vec2d size )

Get rectangle coordinates in original image system from rectangle in blob coordinates.

Parameters
rBlobrect in blob coordinates.
rImgresult rect in image coordinates.
sizeoriginal input image size.

◆ blobRectsToImageRects() [2/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.blobRectsToImageRects ( MatOfRect rBlob,
MatOfRect rImg,
in(double width, double height) size )

Get rectangle coordinates in original image system from rectangle in blob coordinates.

Parameters
rBlobrect in blob coordinates.
rImgresult rect in image coordinates.
sizeoriginal input image size.

◆ blobRectsToImageRects() [3/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.blobRectsToImageRects ( MatOfRect rBlob,
MatOfRect rImg,
Size size )

Get rectangle coordinates in original image system from rectangle in blob coordinates.

Parameters
rBlobrect in blob coordinates.
rImgresult rect in image coordinates.
sizeoriginal input image size.

◆ blobRectToImageRect()

Rect OpenCVForUnity.DnnModule.Image2BlobParams.blobRectToImageRect ( Rect rBlob,
Size size )

Get rectangle coordinates in original image system from rectangle in blob coordinates.

Parameters
rBlobrect in blob coordinates.
sizeoriginal input image size.
Returns
rectangle in original image coordinates.

◆ blobRectToImageRectAsValueTuple()

int int int int height OpenCVForUnity.DnnModule.Image2BlobParams.blobRectToImageRectAsValueTuple ( in(int x, int y, int width, int height) rBlob,
in(double width, double height) size )

◆ blobRectToImageRectAsVec4i()

Vec4i OpenCVForUnity.DnnModule.Image2BlobParams.blobRectToImageRectAsVec4i ( in Vec4i rBlob,
in Vec2d size )

Get rectangle coordinates in original image system from rectangle in blob coordinates.

Parameters
rBlobrect in blob coordinates.
sizeoriginal input image size.
Returns
rectangle in original image coordinates.

◆ Dispose()

override void OpenCVForUnity.DnnModule.Image2BlobParams.Dispose ( bool disposing)
protectedvirtual

◆ get_borderValue()

Scalar OpenCVForUnity.DnnModule.Image2BlobParams.get_borderValue ( )

◆ get_borderValueAsValueTuple()

double double double double v3 OpenCVForUnity.DnnModule.Image2BlobParams.get_borderValueAsValueTuple ( )

◆ get_borderValueAsVec4d()

Vec4d OpenCVForUnity.DnnModule.Image2BlobParams.get_borderValueAsVec4d ( )

◆ get_ddepth()

int OpenCVForUnity.DnnModule.Image2BlobParams.get_ddepth ( )

◆ get_mean()

Scalar OpenCVForUnity.DnnModule.Image2BlobParams.get_mean ( )

◆ get_meanAsValueTuple()

double double double double v3 OpenCVForUnity.DnnModule.Image2BlobParams.get_meanAsValueTuple ( )

◆ get_meanAsVec4d()

Vec4d OpenCVForUnity.DnnModule.Image2BlobParams.get_meanAsVec4d ( )

◆ get_scalefactor()

Scalar OpenCVForUnity.DnnModule.Image2BlobParams.get_scalefactor ( )

◆ get_scalefactorAsValueTuple()

double double double double v3 OpenCVForUnity.DnnModule.Image2BlobParams.get_scalefactorAsValueTuple ( )

◆ get_scalefactorAsVec4d()

Vec4d OpenCVForUnity.DnnModule.Image2BlobParams.get_scalefactorAsVec4d ( )

◆ get_size()

Size OpenCVForUnity.DnnModule.Image2BlobParams.get_size ( )

◆ get_sizeAsValueTuple()

double double height OpenCVForUnity.DnnModule.Image2BlobParams.get_sizeAsValueTuple ( )

◆ get_sizeAsVec2d()

Vec2d OpenCVForUnity.DnnModule.Image2BlobParams.get_sizeAsVec2d ( )

◆ get_swapRB()

bool OpenCVForUnity.DnnModule.Image2BlobParams.get_swapRB ( )

◆ getNativeObjAddr()

IntPtr OpenCVForUnity.DnnModule.Image2BlobParams.getNativeObjAddr ( )

◆ set_borderValue() [1/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_borderValue ( in Vec4d borderValue)

◆ set_borderValue() [2/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_borderValue ( in(double v0, double v1, double v2, double v3) borderValue)

◆ set_borderValue() [3/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_borderValue ( Scalar borderValue)

◆ set_ddepth()

void OpenCVForUnity.DnnModule.Image2BlobParams.set_ddepth ( int ddepth)

◆ set_mean() [1/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_mean ( in Vec4d mean)

◆ set_mean() [2/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_mean ( in(double v0, double v1, double v2, double v3) mean)

◆ set_mean() [3/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_mean ( Scalar mean)

◆ set_scalefactor() [1/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_scalefactor ( in Vec4d scalefactor)

◆ set_scalefactor() [2/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_scalefactor ( in(double v0, double v1, double v2, double v3) scalefactor)

◆ set_scalefactor() [3/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_scalefactor ( Scalar scalefactor)

◆ set_size() [1/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_size ( in Vec2d size)

◆ set_size() [2/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_size ( in(double width, double height) size)

◆ set_size() [3/3]

void OpenCVForUnity.DnnModule.Image2BlobParams.set_size ( Size size)

◆ set_swapRB()

void OpenCVForUnity.DnnModule.Image2BlobParams.set_swapRB ( bool swapRB)

Member Data Documentation

◆ v0

double OpenCVForUnity.DnnModule.Image2BlobParams.v0

◆ v1

double double OpenCVForUnity.DnnModule.Image2BlobParams.v1

◆ v2

double double double OpenCVForUnity.DnnModule.Image2BlobParams.v2

◆ width [1/2]

int int int OpenCVForUnity.DnnModule.Image2BlobParams.width

◆ width [2/2]

double OpenCVForUnity.DnnModule.Image2BlobParams.width

◆ x

int OpenCVForUnity.DnnModule.Image2BlobParams.x

Get rectangle coordinates in original image system from rectangle in blob coordinates.

Parameters
rBlobrect in blob coordinates.
sizeoriginal input image size.
Returns
rectangle in original image coordinates.

◆ y

int int OpenCVForUnity.DnnModule.Image2BlobParams.y

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