![]() |
ImFusion SDK 4.3
|
#include <ImFusion/GL/GlReduction.h>
Specialization of GlReduction performing a ReductionOperator::MAX
reduction.
More...
Specialization of GlReduction performing a ReductionOperator::MAX
reduction.
Additional Inherited Members | |
![]() | |
enum | ReductionOperator { MIN , MAX , SUM , PRODUCT , AVERAGE , AVERAGE_ABSOLUTE } |
Operation to be performed by reduction. More... | |
![]() | |
GlReduction (ReductionOperator reductionOperator) | |
Creates a new GlReduction instance using the given reduction oparator in reduce(). | |
GlReduction (GlReduction &&other) noexcept | |
GlReduction & | operator= (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 GlMaxReduction & | cachedInstance () |
Returns the cached instance of type T for the currently active OpenGL context. | |