Aashutosh Exp
Aashutosh Exp
Aashutosh Exp
IMAGE_SHAPE = (500,450)
First Image
In [ ]: image1 = Image.open("image1.jpg").resize(IMAGE_SHAPE)
image1
Out[ ]:
Second Image
In [ ]: image2 = Image.open("image4.jpg").resize(IMAGE_SHAPE)
image2
Out[ ]:
Addition is used to combine the information in two images. Applications include development
of image restoration algorithm for molding additive noise, and special effects, such as image
morphing in motion pictures.
Weighted Sum:
Subtraction: g(x,y) = f(x,y) - h(x,y)
Subtracted Image:
Multiplication and Division are used to adjust the brightness of an image.
Multiplication : Multiplication of the pixel values by a number less than one will darken the
image (Brightness adjustment is often used as a processing step in image enhancement).
In [ ]: img = image1_array
display(Image.fromarray(img))
display(Image.fromarray(fimg))
Division:
In [ ]: img = image1_array
display(Image.fromarray(img))
display(Image.fromarray(fimg))