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.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.
 
virtual Mat GetDownScaleMat (Mat originalMat)
 Gets the mat that downscaled the original mat. if downscaleRatio == 1 , return originalMat.
 
virtual void Dispose ()
 To release the resources for the initialized method.
 

Protected Member Functions

void OnValidate ()
 

Protected Attributes

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

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: