0% found this document useful (0 votes)
18 views1 page

Python Image Manipulation Assignments

The document outlines two assignments related to image manipulation using Python. The first assignment involves extracting a central square from an image, while the second assignment asks about the resulting shape of a modified image array. Both tasks are designed to enhance understanding of image processing with arrays.

Uploaded by

arafathwdak4111
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views1 page

Python Image Manipulation Assignments

The document outlines two assignments related to image manipulation using Python. The first assignment involves extracting a central square from an image, while the second assignment asks about the resulting shape of a modified image array. Both tasks are designed to enhance understanding of image processing with arrays.

Uploaded by

arafathwdak4111
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Spoken Tutorial, IIT Bombay

[Link]
Python 3.4.3
Image manipulation using Arrays - Assignments

Assignment-1
1. Use the image [Link] available in the code file link of this tutorial and obtain the square in
the center of the image with size 150 by 150.

Assignment-2
1. The shape of the variable img is (600, 600, 4).
What will be the shape of img1 if img1 = img[::2,::4]
➢ (300, 300, 4)
➢ (150, 300, 4)
➢ (300, 150, 4)
➢ (150, 150, 4)

You might also like