eVision C++ API 26.10.0-beta.2.dev
Loading...
Searching...
No Matches
eVision::EMovingAverage Class Reference

Temporal integration of a number of images to reduce noise. More...

#include <eVision/EasyImage/EMovingAverage.h>

Collaboration diagram for eVision::EMovingAverage:

Public Member Functions

 EMovingAverage ()
 Constructs an EMovingAverage object.
 EMovingAverage (uint32_t period, int32_t width, int32_t height, bool internalAllocationScheme)
 Constructs an EMovingAverage object.
 EMovingAverage (uint32_t period, int32_t width, int32_t height)
 Constructs an EMovingAverage object.
virtual ~EMovingAverage () throw ()
void SetSize (uint32_t numberOfImages, int32_t imageWidth, int32_t imageHeight, bool internalAllocationScheme)
 Initializes a moving average context with appropriate parameters.
void SetSize (uint32_t numberOfImages, int32_t imageWidth, int32_t imageHeight)
 Initializes a moving average context with appropriate parameters.
void GetSize (uint32_t &numberOfImages, int32_t &imageWidth, int32_t &imageHeight, bool &internalAllocationScheme)
 Queries a moving average context for the current parameter settings.
uint32_t GetNumberOfImages () const
 Gets the number of images on which to integrate.
int32_t GetImageWidth () const
 Gets the image width;.
int32_t GetImageHeight () const
 Gets the image height.
bool GetInternalAllocationScheme () const
 Gets the buffer allocation scheme. When true, the moving average context provides the image to be acquired into (see member EMovingAverage::GetSrcImage).
void Reset ()
 Restarts the average process as if no image had ever been handed to the EMovingAverage object.
eVision::EImageBW8 * GetSrcImage ()
 Returns the image in which you must store the next image to be averaged.
void Average (eVision::EROIBW8 *destinationImage)
 Performs averaging of the source image with the preceding ones, and computes the de-noised image.
void Average (eVision::EROIBW8 *sourceImage, eVision::EROIBW8 *destinationImage)
 Performs averaging of the source image with the preceding ones, and computes the de-noised image.
 EMovingAverage (CppWrapperInternal::InternalConstructor)

Public Attributes

CppWrapperInternal::WrappedClass wrappedClass_

Detailed Description

Temporal integration of a number of images to reduce noise.

License(s): EasyImage

Constructor & Destructor Documentation

◆ EMovingAverage() [1/4]

eVision::EMovingAverage::EMovingAverage ( )

Constructs an EMovingAverage object.

The default constructor constructs a void moving average context. A void moving average context has no internal buffers allocated and cannot be used for integration. Use the EMovingAverage::SetSize member after construction, or the initializing constructor instead. The sizing constructor constructs and initializes a moving average context.

◆ EMovingAverage() [2/4]

eVision::EMovingAverage::EMovingAverage ( uint32_t period,
int32_t width,
int32_t height,
bool internalAllocationScheme )

Constructs an EMovingAverage object.

Parameters
periodNumber of images on which to integrate. A power of 2 is recommended.
widthImage width (all images used for averaging must be of the same size).
heightImage height (all images used for averaging must be of the same size).
internalAllocationSchemeBuffer allocation scheme. When true, the moving average context provides the image to be acquired into (see member EMovingAverage::GetSrcImage).

The default constructor constructs a void moving average context. A void moving average context has no internal buffers allocated and cannot be used for integration. Use the EMovingAverage::SetSize member after construction, or the initializing constructor instead. The sizing constructor constructs and initializes a moving average context.

◆ EMovingAverage() [3/4]

eVision::EMovingAverage::EMovingAverage ( uint32_t period,
int32_t width,
int32_t height )

Constructs an EMovingAverage object.

Parameters
periodNumber of images on which to integrate. A power of 2 is recommended.
widthImage width (all images used for averaging must be of the same size).
heightImage height (all images used for averaging must be of the same size).

The default constructor constructs a void moving average context. A void moving average context has no internal buffers allocated and cannot be used for integration. Use the EMovingAverage::SetSize member after construction, or the initializing constructor instead. The sizing constructor constructs and initializes a moving average context.

◆ ~EMovingAverage()

eVision::EMovingAverage::~EMovingAverage ( )
throw ( )
virtual

◆ EMovingAverage() [4/4]

eVision::EMovingAverage::EMovingAverage ( CppWrapperInternal::InternalConstructor )

Member Function Documentation

◆ Average() [1/2]

void eVision::EMovingAverage::Average ( eVision::EROIBW8 * destinationImage)

Performs averaging of the source image with the preceding ones, and computes the de-noised image.

Parameters
destinationImagePointer to the destination image.

The overload with only the destinationImage may be used only when the buffer allocation scheme has been set to internal (see EMovingAverage::SetSize or EMovingAverage::EMovingAverage)

◆ Average() [2/2]

void eVision::EMovingAverage::Average ( eVision::EROIBW8 * sourceImage,
eVision::EROIBW8 * destinationImage )

Performs averaging of the source image with the preceding ones, and computes the de-noised image.

Parameters
sourceImagePointer to the source image.
destinationImagePointer to the destination image.

The overload with only the destinationImage may be used only when the buffer allocation scheme has been set to internal (see EMovingAverage::SetSize or EMovingAverage::EMovingAverage)

◆ GetImageHeight()

int32_t eVision::EMovingAverage::GetImageHeight ( ) const

Gets the image height.

◆ GetImageWidth()

int32_t eVision::EMovingAverage::GetImageWidth ( ) const

Gets the image width;.

◆ GetInternalAllocationScheme()

bool eVision::EMovingAverage::GetInternalAllocationScheme ( ) const

Gets the buffer allocation scheme. When true, the moving average context provides the image to be acquired into (see member EMovingAverage::GetSrcImage).

◆ GetNumberOfImages()

uint32_t eVision::EMovingAverage::GetNumberOfImages ( ) const

Gets the number of images on which to integrate.

◆ GetSize()

void eVision::EMovingAverage::GetSize ( uint32_t & numberOfImages,
int32_t & imageWidth,
int32_t & imageHeight,
bool & internalAllocationScheme )

Queries a moving average context for the current parameter settings.

Parameters
numberOfImagesNumber of images on which to integrate.
imageWidthImage width (all images used for averaging must be of the same size).
imageHeightImage height (all images used for averaging must be of the same size).
internalAllocationSchemeBuffer allocation scheme. When true, the moving average context provides the image to be acquired into (see member EMovingAverage::GetSrcImage).
Deprecated

Use EMovingAverage::GetNumberOfImages, EMovingAverage::GetImageWidth, EMovingAverage::GetImageHeight or EMovingAverage::GetInternalAllocationScheme instead.

Deprecated in version 24.6. Scheduled to be removed in version 27.6.

◆ GetSrcImage()

eVision::EImageBW8 * eVision::EMovingAverage::GetSrcImage ( )

Returns the image in which you must store the next image to be averaged.

This method may be used only when the buffer allocation scheme has been set to internal (see EMovingAverage::SetSize or EMovingAverage::EMovingAverage)

◆ Reset()

void eVision::EMovingAverage::Reset ( )

Restarts the average process as if no image had ever been handed to the EMovingAverage object.

The behavior is thus the same as after a EMovingAverage::SetSize operation.

◆ SetSize() [1/2]

void eVision::EMovingAverage::SetSize ( uint32_t numberOfImages,
int32_t imageWidth,
int32_t imageHeight )

Initializes a moving average context with appropriate parameters.

Parameters
numberOfImagesNumber of images on which to integrate. A power of 2 is recommended.
imageWidthImage width.
imageHeightImage height.

◆ SetSize() [2/2]

void eVision::EMovingAverage::SetSize ( uint32_t numberOfImages,
int32_t imageWidth,
int32_t imageHeight,
bool internalAllocationScheme )

Initializes a moving average context with appropriate parameters.

Parameters
numberOfImagesNumber of images on which to integrate. A power of 2 is recommended.
imageWidthImage width.
imageHeightImage height.
internalAllocationSchemeBuffer allocation scheme. When true, the moving average context provides the image to be acquired into (see member EMovingAverage::GetSrcImage).

Member Data Documentation

◆ wrappedClass_

CppWrapperInternal::WrappedClass eVision::EMovingAverage::wrappedClass_