5#include <rexlib/core/operation/operation_declaration_macros.hpp>
6#include <rexlib/core/platform/dynamic_shared_object.h>
7#include <rexlib/em/em_component.hpp>
8#include <rexlib/ops/parameters/axis_list.hpp>
9#include <rexlib/ops/parameters/axis_selection.hpp>
10#include <rexlib/ops/rules/shape_rules.hpp>
11#include <rexlib/ops/rules/type_rules.hpp>
18REXLIB_DECLARE_PARAMETRIC_OPERATION_TRAITS(
21 REXLIB_OPERANDS(
"result"),
22 REXLIB_OPERANDS(
"value",
"key"),
25 ops::keyed_unary_homogeneous_rule<floating_point_type_domain>
65REXLIB_BEGIN_TEMPLATE_BASE
68 standardize_background_operation,
69 standardize_background_operation_traits
118 double m_lower_bound;
119 double m_upper_bound;
Container for multidimensional numeric data.
Definition array.hpp:31
Standardize images against the statistics of their background.
Definition standardize_background_operation.hpp:71
double get_radius() const noexcept
Get the radius of the region excluded from the background.
standardize_background_operation(ops::axis_list axes, double radius, double lower_bound, double upper_bound)
Construct a standardization of the images along some axes.
CRTP base for operations whose signature depends on parameters.
Definition parametric_operation.hpp:43
operand_shape_rule< type_list<>, type_list< core_dimensions< axis_run<> > >, type_list< core_dimensions< axis_run<> >, core_dimensions<> >, named_core< axes_of > > keyed_axiswise_shape_rule
Operation along the axes the operation names that keeps their extents, reading a second input without...
Definition shape_rules.hpp:204
array standardize_background(const_array_ref value, const_array_ref key, span< const std::ptrdiff_t > axes, double radius, double lower_bound, double upper_bound, const execution_context &context, array *out=nullptr)
Standardize images against the statistics of their background.
std::vector< std::size_t > axis_list
The axes an operation acts along.
Definition axis_list.hpp:19
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10