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 | Protected Member Functions | Protected Attributes | Properties | List of all members
OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper Class Reference

Image optimization helper. v 1.1.0 More...

Inheritance diagram for OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper:

Public Member Functions

virtual bool IsCurrentFrameSkipped ()
 Indicates whether the current frame is skipped. More...
 
virtual Mat GetDownScaleMat (Mat originalMat)
 Gets the mat that downscaled the original mat. if downscaleRatio == 1 , return originalMat. More...
 
virtual void Dispose ()
 To release the resources for the initialized method. More...
 

Protected Member Functions

void OnValidate ()
 

Protected Attributes

float _downscaleRatio = 2f
 The downscale ratio. More...
 
int _frameSkippingRatio = 2
 The frame skipping ratio. More...
 
int frameCount = 0
 The frame count. More...
 
Mat downScaleFrameMat
 The downscale frame mat. More...
 

Properties

float downscaleRatio [get, set]
 
int frameSkippingRatio [get, set]
 

Detailed Description

Image optimization helper. v 1.1.0

Member Function Documentation

◆ Dispose()

virtual void OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper.Dispose ( )
virtual

To release the resources for the initialized method.

◆ GetDownScaleMat()

virtual Mat OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper.GetDownScaleMat ( Mat  originalMat)
virtual

Gets the mat that downscaled the original mat. if downscaleRatio == 1 , return originalMat.

Returns
The downscale mat.
Parameters
originalMatOriginal mat.

◆ IsCurrentFrameSkipped()

virtual bool OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper.IsCurrentFrameSkipped ( )
virtual

Indicates whether the current frame is skipped.

Returns
true, if the current frame is skipped, false otherwise.

◆ OnValidate()

void OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper.OnValidate ( )
protected

Member Data Documentation

◆ _downscaleRatio

float OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper._downscaleRatio = 2f
protected

The downscale ratio.

◆ _frameSkippingRatio

int OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper._frameSkippingRatio = 2
protected

The frame skipping ratio.

◆ downScaleFrameMat

Mat OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper.downScaleFrameMat
protected

The downscale frame mat.

◆ frameCount

int OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper.frameCount = 0
protected

The frame count.

Property Documentation

◆ downscaleRatio

float OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper.downscaleRatio
getset

◆ frameSkippingRatio

int OpenCVForUnity.UnityUtils.Helper.ImageOptimizationHelper.frameSkippingRatio
getset

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