Maths (view)
Include <mln/core/image/view/maths.hpp>
Component-wise
-
auto abs(Image ima)
Makes a view where for each pixel value evals to out(p) = abs(ima(p)). Refer to
functional::abs
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::rgb8> g = mln::view::maths::abs(ima);
-
auto abs(Image ima)
-
auto sqr(Image ima)
Makes a view where for each pixel value evals to out(p) = sqr(ima(p)). Refer to
functional::sqr
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::rgb8> g = mln::view::maths::sqr(ima);
-
auto sqr(Image ima)
-
auto cbrt(Image ima)
Makes a view where for each pixel value evals to out(p) = cbrt(ima(p)). Refer to
functional::cbrt
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::rgb8> g = mln::view::maths::cbrt(ima);
-
auto cbrt(Image ima)
-
auto sqrt(Image ima)
Makes a view where for each pixel value evals to out(p) = sqrt(ima(p)). Refer to
functional::sqrt
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::rgb8> g = mln::view::maths::sqrt(ima);
-
auto sqrt(Image ima)
Reduction
-
auto sum(Image ima)
Makes a view where for each pixel value evals to out(p) = sum(ima(p)). Refer to
functional::sum
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::sum(ima);
-
auto sum(Image ima)
-
auto prod(Image ima)
Makes a view where for each pixel value evals to out(p) = prod(ima(p)). Refer to
functional::prod
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::prod(ima);
-
auto prod(Image ima)
-
auto min(Image ima)
Makes a view where for each pixel value evals to out(p) = min(ima(p)). Refer to
functional::min
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::min(ima);
-
auto min(Image ima)
-
auto max(Image ima)
Makes a view where for each pixel value evals to out(p) = max(ima(p)). Refer to
functional::max
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::max(ima);
-
auto max(Image ima)
-
auto dot(Image ima1, Image ima2)
Makes a view where for each pixel value evals to out(p) = dot(ima1(p), ima2(p)). Refer to
functional::dot
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima1 = ...; mln::image2d<mln::rgb8> ima2 = ...; mln::image2d<mln::uint8> g = mln::view::maths::dot(ima1, ima2);
-
auto dot(Image ima1, Image ima2)
-
auto cross(Image ima1, Image ima2)
Makes a view where for each pixel value evals to out(p) = cross(ima1(p), ima2(p)). Refer to
functional::cross
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima1 = ...; mln::image2d<mln::rgb8> ima2 = ...; mln::image2d<mln::rgb8> g = mln::view::maths::cross(ima1, ima2);
-
auto cross(Image ima1, Image ima2)
Norms
-
auto l0norm(Image ima)
Makes a view where for each pixel value evals to out(p) = l0norm(ima(p)). Refer to
functional::l0norm
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::l0norm(ima);
-
auto l0norm(Image ima)
-
auto l1norm(Image ima)
Makes a view where for each pixel value evals to out(p) = l1norm(ima(p)). Refer to
functional::l1norm
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::l1norm(ima);
-
auto l1norm(Image ima)
-
auto l2norm(Image ima)
Makes a view where for each pixel value evals to out(p) = l2norm(ima(p)). Refer to
functional::l2norm
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::l2norm(ima);
-
auto l2norm(Image ima)
-
auto l2norm_sqr(Image ima)
Makes a view where for each pixel value evals to out(p) = l2norm_sqr(ima(p)). Refer to
functional::l2norm_sqr
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::l2norm_sqr(ima);
-
auto l2norm_sqr(Image ima)
-
auto linfnorm(Image ima)
Makes a view where for each pixel value evals to out(p) = linfnorm(ima(p)). Refer to
functional::linfnorm
documentation for details.
- Parameters:
ima – Input range
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::linfnorm(ima);
-
auto linfnorm(Image ima)
-
template<unsigned V>
auto lpnorm<V>(Image ima) Makes a view where for each pixel value evals to out(p) = lpnorm<V>(ima(p)). Refer to
functional::lpnorm
documentation for details.
- Parameters:
ima – Input range
- Template Parameters:
V – Norm exponent
mln::image2d<mln::rgb8> ima = ...; mln::image2d<mln::uint8> g = mln::view::maths::lpnorm<4>(ima);
-
template<unsigned V>
Distances
-
auto l0dist(Image ima1, Image ima2)
Makes a view where for each pixel value evals to out(p) = l0dist(ima1, ima2). Refer to
functional::l0dist
documentation for details.
- Parameters:
ima1 – Input range
ima2 – Input range
mln::image2d<mln::rgb8> ima1 = ...; mln::image2d<mln::rgb8> ima2 = ...; mln::image2d<mln::uint8> g = mln::view::maths::l0dist(ima1, ima2);
-
auto l0dist(Image ima1, Image ima2)
-
auto l1dist(Image ima1, Image ima2)
Makes a view where for each pixel value evals to out(p) = l1dist(ima1, ima2). Refer to
functional::l1dist
documentation for details.
- Parameters:
ima1 – Input range
ima2 – Input range
mln::image2d<mln::rgb8> ima1 = ...; mln::image2d<mln::rgb8> ima2 = ...; mln::image2d<mln::uint8> g = mln::view::maths::l1dist(ima1, ima2);
-
auto l1dist(Image ima1, Image ima2)
-
auto l2dist(Image ima1, Image ima2)
Makes a view where for each pixel value evals to out(p) = l2dist(ima1, ima2). Refer to
functional::l2dist
documentation for details.
- Parameters:
ima1 – Input range
ima2 – Input range
mln::image2d<mln::rgb8> ima1 = ...; mln::image2d<mln::rgb8> ima2 = ...; mln::image2d<mln::uint8> g = mln::view::maths::l2dist(ima1, ima2);
-
auto l2dist(Image ima1, Image ima2)
-
auto l2dist_sqr(Image ima1, Image ima2)
Makes a view where for each pixel value evals to out(p) = l2dist_sqr(ima1, ima2). Refer to
functional::l2dist_sqr
documentation for details.
- Parameters:
ima1 – Input range
ima2 – Input range
mln::image2d<mln::rgb8> ima1 = ...; mln::image2d<mln::rgb8> ima2 = ...; mln::image2d<mln::uint8> g = mln::view::maths::l2dist_sqr(ima1, ima2);
-
auto l2dist_sqr(Image ima1, Image ima2)
-
auto linfdist(Image ima1, Image ima2)
Makes a view where for each pixel value evals to out(p) = linfdist(ima1, ima2). Refer to
functional::linfdist
documentation for details.
- Parameters:
ima1 – Input range
ima2 – Input range
mln::image2d<mln::rgb8> ima1 = ...; mln::image2d<mln::rgb8> ima2 = ...; mln::image2d<mln::uint8> g = mln::view::maths::linfdist(ima1, ima2);
-
auto linfdist(Image ima1, Image ima2)
-
template<unsigned V>
auto lpdist<V>(Image ima1, Image ima2) Makes a view where for each pixel value evals to out(p) = lpdist<V>(ima1(p), ima2(p)). Refer to
functional::lpdist
documentation for details.
- Parameters:
ima1 – Input range
ima2 – Input range
- Template Parameters:
V – Norm Exponent
mln::image2d<mln::rgb8> ima1 = ...; mln::image2d<mln::rgb8> ima2 = ...; mln::image2d<mln::uint8> g = mln::view::maths::lpdist<4>(ima1, ima2);
-
template<unsigned V>
ima, ima1, ima2 |
abs, pow, sqr, cbrt, sqrt, sum, prod, min, max, dot, cross, l0norm, l1norm, l2norm, l2norm_sqr, linfnorm, lpnorm, l0dist, l1dist, l2dist, l2dist_sqr, linfdist, lpdist |
||
---|---|---|---|
Category |
Forward |
X |
X |
Bidirectional |
X |
X |
|
Raw |
X |
||
Properties |
Writable |
X |
|
Accessible |
X |
X |
|
Indexable |
X |
X |
Examples
TODO