|
uint8_t | pixel_area_c1u8_clamp (const uint8_t *first_pixel_ptr, size_t stride, size_t width, size_t height, float wr, float hr, int x, int y) |
| Return the pixel at (x,y) using area interpolation by clamping when out of borders. More...
|
|
template<typename L , typename... Ts> |
void | execute_window_loop (const Window &w, L &&lambda_function, Ts &&...iterators) |
| Iterate through the passed window, automatically adjusting the iterators and calling the lambda_functino for each element. More...
|
|
bool | auto_init_if_empty (ITensorInfo &info, const TensorShape &shape, int num_channels, DataType data_type, int fixed_point_position, QuantizationInfo quantization_info=QuantizationInfo()) |
| Auto initialize the tensor info (shape, number of channels, data type and fixed point position) if the current assignment is empty. More...
|
|
bool | auto_init_if_empty (ITensorInfo &info_sink, const ITensorInfo &info_source) |
| Auto initialize the tensor info using another tensor info. More...
|
|
bool | set_shape_if_empty (ITensorInfo &info, const TensorShape &shape) |
| Set the shape to the specified value if the current assignment is empty. More...
|
|
bool | set_format_if_unknown (ITensorInfo &info, Format format) |
| Set the format, data type and number of channels to the specified value if the current data type is unknown. More...
|
|
bool | set_data_type_if_unknown (ITensorInfo &info, DataType data_type) |
| Set the data type and number of channels to the specified value if the current data type is unknown. More...
|
|
bool | set_data_layout_if_unknown (ITensorInfo &info, DataLayout data_layout) |
| Set the data layout to the specified value if the current data layout is unknown. More...
|
|
bool | set_fixed_point_position_if_zero (ITensorInfo &info, int fixed_point_position) |
| Set the fixed point position to the specified value if the current fixed point position is 0 and the data type is QS8 or QS16. More...
|
|
bool | set_quantization_info_if_empty (ITensorInfo &info, QuantizationInfo quantization_info) |
| Set the quantization info to the specified value if the current quantization info is empty and the data type of asymmetric quantized type. More...
|
|
Coordinates | index2coords (const TensorShape &shape, int index) |
| Convert a linear index into n-dimensional coordinates. More...
|
|
int | coords2index (const TensorShape &shape, const Coordinates &coord) |
| Convert n-dimensional coordinates into a linear index. More...
|
|
size_t | get_data_layout_dimension_index (const DataLayout data_layout, const DataLayoutDimension data_layout_dimension) |
| Get the index of the given dimension. More...
|
|