calculator.add ============== .. py:module:: calculator.add Functions --------- .. autoapisummary:: calculator.add.add Module Contents --------------- .. py:function:: add(image1, image2) Add the two provided images element-wise. :param image1: The first image to be added. :param image2: The second image to be aded. :returns: A new Image object holding the sum of the provided images. Examples -------- >>> from calculator import add, Image >>> image1 = Image.from_array([[1, 2], [3, 4]]) >>> image2 = Image.from_array([[1, 1], [1, 1]]) >>> image3 = add(image1, image2) >>> image3.data array([[2, 3], [4, 5]])