Maths (view)

Include <mln/core/image/view/maths.hpp>

Component-wise

  1. auto abs(Image ima)
    1. 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);
    
  2. auto pow(Image ima, Scalar s)
    1. Makes a view where for each pixel value evals to out(p) = pow(ima(p), s). Refer to functional::pow documentation for details.

    Parameters:
    • ima – Input range

    • s – Exponent

    mln::image2d<mln::rgb8> ima = ...;
    mln::image2d<mln::rgb8> g = mln::view::maths::pow(ima, 3);
    
  3. auto sqr(Image ima)
    1. 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);
    
  4. auto cbrt(Image ima)
    1. 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);
    
  5. auto sqrt(Image ima)
    1. 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);
    

Reduction

  1. auto sum(Image ima)
    1. 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);
    
  2. auto prod(Image ima)
    1. 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);
    
  3. auto min(Image ima)
    1. 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);
    
  4. auto max(Image ima)
    1. 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);
    
  5. auto dot(Image ima1, Image ima2)
    1. 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);
    
  6. auto cross(Image ima1, Image ima2)
    1. 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);
    

Norms

  1. auto l0norm(Image ima)
    1. 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);
    
  2. auto l1norm(Image ima)
    1. 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);
    
  3. auto l2norm(Image ima)
    1. 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);
    
  4. auto l2norm_sqr(Image ima)
    1. 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);
    
  5. auto linfnorm(Image ima)
    1. 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);
    
  6. template<unsigned V>
    auto lpnorm<V>(Image ima)
    1. 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);
    

Distances

  1. auto l0dist(Image ima1, Image ima2)
    1. 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);
    
  2. auto l1dist(Image ima1, Image ima2)
    1. 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);
    
  3. auto l2dist(Image ima1, Image ima2)
    1. 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);
    
  4. auto l2dist_sqr(Image ima1, Image ima2)
    1. 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);
    
  5. auto linfdist(Image ima1, Image ima2)
    1. 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);
    
  6. template<unsigned V>
    auto lpdist<V>(Image ima1, Image ima2)
    1. 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);
    

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