ImFusion SDK 4.3
GlAverageReduction Class Reference

#include <ImFusion/GL/GlReduction.h>

Specialization of GlReduction performing a ReductionOperator::AVERAGE reduction. More...

+ Inheritance diagram for GlAverageReduction:

Detailed Description

Specialization of GlReduction performing a ReductionOperator::AVERAGE reduction.

static GlAverageReduction & cachedInstance()
Definition InstanceManager.h:80
std::vector< double > reduce(const GlImage &img, const GlMask *mask=nullptr, std::vector< vec3i > *outArgMinMax=nullptr)
Reduces the given input image and returns the reduction result for each channel.

Additional Inherited Members

- Public Types inherited from GlReduction
enum  ReductionOperator {
  MIN , MAX , SUM , PRODUCT ,
  AVERAGE , AVERAGE_ABSOLUTE
}
 Operation to be performed by reduction. More...
 
- Public Member Functions inherited from GlReduction
 GlReduction (ReductionOperator reductionOperator)
 Creates a new GlReduction instance using the given reduction oparator in reduce().
 
 GlReduction (GlReduction &&other) noexcept
 
GlReductionoperator= (GlReduction &&) noexcept
 
std::vector< double > reduce (const GlImage &img, const GlMask *mask=nullptr, std::vector< vec3i > *outArgMinMax=nullptr)
 Reduces the given input image and returns the reduction result for each channel.
 
std::vector< double > reduce (const ImageMath::GlExpr &expr, const ImageDescriptor &desc, std::vector< vec3i > *outArgMinMax=nullptr)
 Reduces the given input image and returns the reduction result for each channel.
 
std::vector< double > reduceSubregion (const GlImage &img, const vec3i &subregion, const GlMask *mask=nullptr, std::vector< vec3i > *outArgMinMax=nullptr)
 Reduces the given subregion of the input image and returns the reduction result for each channel.
 
- Static Public Member Functions inherited from InstanceManager< GlAverageReduction >
static GlAverageReductioncachedInstance ()
 Returns the cached instance of type T for the currently active OpenGL context.
 

The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close