Description:
In this lesson you will use Python and OpenCV to perform math and image manipulation with Numpy arrays. You will not need for loops for most of these exercises. Use the Numpy array operations to accomplish the math. Feel free to be creative with the image editing and explore what you can do with math operations on the color channels.
Resources:
Image Manipulation with Python: http://nebomusic.net/perception/open_cv_python.pdf
Process:
Follow the directions at: http://nebomusic.net/perception/PS03.pdf to setup PS03.
Complete the requirements as outlined on PS03.pdf. Make sure you place your input images in the correct folder. You may use Photoshop to resize images to 512 by 512 pixels.
Using the photos you collected form Week 01, create a collage using the techniques studies in PS03. Create a new python file in PS03 called collage.py. Then, create an empty image object of at least 1024 by 768 (img_canvas = np.zeros((768, 1024, 3), np.uint8)) and place pictures onto canvas. Try the following:
Resize images: Research online ways to resize cv2 images / numpy arrays. Display pictures of different sizes
Cut, Replace: Combine parts if images together
Alter the color channels
Average Images together
Reverse Images on X or Y Axis
Diagonal Mirror on Images
Create other visual effects - be creative!
Use at least 8 different images in your collage.
Deliverables:
Create a .zip file of your PS03 and upload to the Google classroom. Ensure that you have the the ps03.py code and all image assets in the zipped folder.
Create a Google Doc named "Lastname Collage". Place a screenshot of your finished collage and copy and paste the code onto the Google Doc