Equal ===== Include :file:`` .. cpp:namespace:: mln .. cpp:function:: Image{A} Image{B} bool equal(A lhs, B rhs) Compare the pixels of `lhs` and `rhs`. The result is true if and only if rhs's values equal lhs's values. :param lhs: First image to compare :param rhs: Second image to compare :tparam LhsImage: A model of :cpp:concept:`InputImage` :tparam RhsImage: A model of :cpp:concept:`InputImage` :return: True of false Examples -------- #. Compare two images:: mln::image2d lhs = ...; mln::image2d rhs = ...; bool is_equal = mln::equal(lhs, rhs); Complexity ---------- Linear in the number of pixels.