Question
Q1. CLO/SO 2.4 [5*1=5 points] Using Open CV2 Load the height and width to specify the range till which the smaller patches need to be
Q1. CLO/SO 2.4 [5*1=5 points] |
Using Open CV2 Load the height and width to specify the range till which the smaller patches need to be cropped out. For this, use the range () function in Python. Now, crop using two for loops:
one for the width range
other for the height range
We are using patches with a height and width of 50 pixels and 70 pixels respectively. The stride (number of pixels we move through the image) for the inner and outer loops is equal to the width and height of the patches that we are considering.
Task: Show the given image with patches.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started