Question: In this homework assignment, you will implement a MATLAB / Octave / Python program to generate an image with randomly placed filled rectangles. Your task
In this homework assignment, you will implement a MATLABOctavePython program to generate
an image with randomly placed filled rectangles. Your task involves creating a x image with
a black background and drawing a specified number of filled rectangles inside it Each rectangle
should have a randomly chosen intensity value between and Use python threads.
Requirements:
The background of the image should be black intensity value of
Draw a specified number of filled rectangles inside the image. eg n
Each rectangle should have a randomly chosen intensity value between and
Ensure that no rectangles are smaller than x pixels and bigger than x
All rectangles should have different intensities.
Display the generated image.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
