Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

PAMANTASAN NG LUNGSOD NG MAYNILA

(University of the City of


Manila) Intramuros, Manila

ACTIVITY 1:
DIGITAL IMAGE PROCESSING
ELECTIVE 3 LABORATORY
CPE 0332.1-3

By:

GROUP 4:
ANG, JV B.
REYES, Martin Antonio M.

Submitted to
MA’AM EVELYN B. CAROLINO

July 13, 2022


Instructions: Run Jupyter Notebook and be able to display an image. The image shall have basic
changes such as rotation, converting the colors to grayscale, adding a blur filter, contour the image,
turning it into a black image, and embossing the image.

Used Photo/Image:

Figure 1: JV Ang in Blue & Martin Reyes in Pink

Header Code Documentation:

Figure 2: Header Code in Jupyter Notebook


SHOW ORIGINAL
OUTPUT/Documentation:

Figure 3: Original Image Result in Jupyter Notebook

ROTATION
OUTPUT/Documentation:

Figure 4: Rotated Image Result in Jupyter Notebook


GRAYSCALE
OUTPUT/Documentation:

Figure 5: Grayscale Image Result in Jupyter Notebook

BLUR
OUTPUT/Documentation:

Figure 6: Filtered Image Result in Jupyter Notebook


CONTOUR
OUTPUT/Documentation:

Figure 7: Contour Image Result in Jupyter Notebook

BLACK IMAGE
OUTPUT/Documentation:

Figure 8: Black Image Result in Jupyter Notebook


EMBOSS
OUTPUT/Documentation:

Figure 9: Embossed Image Result in Jupyter Notebook

GROUP DOCUMENTATION

Full Syntax Code:


In []: pip install pillow
In []: from PIL import Image,
ImageFilter img =
Image.open("AngReyesDuo.jpg")
In []: img.show()
In []: imageRotate = img.rotate(90)
imageRotate.show()
In []: imageGrayscale = img.convert('L')
imageGrayscale.show()
In []: imageBlur =
img.filter(ImageFilter.BoxBlur(10))
imageBlur.show()
In []: imageContour =
img.filter(ImageFilter.CONTOUR())
imageContour.show()
In []: imageFindEdge =
img.filter(ImageFilter.FIND_EDGES())
imageFindEdge.show()
In []: imageEmboss =
img.filter(ImageFilter.EMBOSS())
imageEmboss.show()
Figure 10: Full Code in Jupyter Notebook

Figure 11: Group Documentation for Task#1 (Discord Session)

You might also like