nk 1.0.0
C++ Numerical Computing Runtime
Loading...
Searching...
No Matches
arithmetic.hpp File Reference
#include <memory_resource>
#include <nk/value/value.hpp>
#include <vector>

Go to the source code of this file.

Functions

Value nk::image::imadd (const Value &x, const Value &y, std::pmr::memory_resource *mr=nullptr)
 Saturating image addition (Z = imadd(X, Y)).
Value nk::image::imsubtract (const Value &x, const Value &y, std::pmr::memory_resource *mr=nullptr)
 Saturating image subtraction (Z = imsubtract(X, Y)).
Value nk::image::immultiply (const Value &x, const Value &y, std::pmr::memory_resource *mr=nullptr)
 Saturating element-wise multiplication (Z = immultiply(X, Y)).
Value nk::image::imdivide (const Value &x, const Value &y, std::pmr::memory_resource *mr=nullptr)
 Saturating element-wise division (Z = imdivide(X, Y)).
Value nk::image::imabsdiff (const Value &x, const Value &y, std::pmr::memory_resource *mr=nullptr)
 Saturating absolute difference (Z = imabsdiff(X, Y)).
Value nk::image::imcomplement (const Value &x, std::pmr::memory_resource *mr=nullptr)
 Image complement (Y = imcomplement(X)).
Value nk::image::imlincomb (const std::vector< double > &coefs, const std::vector< Value > &images, ValueType output_class, std::pmr::memory_resource *mr=nullptr)
 Linear combination of images (Z = imlincomb(coefs, images, class)).
Value nk::image::imapplymatrix (const Value &M, const Value &x, ValueType output_class, std::pmr::memory_resource *mr=nullptr)
 Apply a colour-space transform matrix (Y = imapplymatrix(M, X)).