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 MATLAB/Octave/Python program to generate
an image with randomly placed filled rectangles. Your task involves creating a 512x512 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 100 and 255. Use python threads.
Requirements:
The background of the image should be black (intensity value of 0).
Draw a specified number of filled rectangles inside the image. (e.g. n=5)
Each rectangle should have a randomly chosen intensity value between 100 and 255.
Ensure that no rectangles are smaller than 10x10 pixels and bigger than 200x200.
All rectangles should have different intensities.
Display the generated image.
 In this homework assignment, you will implement a MATLAB/Octave/Python program to

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!