Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Matlab: can i get help with programming matlab problem. Thanks Background: You have been tasked by your boss to create an interactive captcha. She has
Matlab: can i get help with programming matlab problem. Thanks
Background: You have been tasked by your boss to create an interactive captcha. She has very particular goals of the code, but wants to see what you can do. Shes given you some guidelines laid out below:
Task 1
Load six images that you have found that will randomly be assigned to different sections of a background each time you run the program. (Note: The images must be the same size.) The first task is to randomly place the 6 images, and then ask the user with a menu which image they want to select and add a border around the image. The user should be able to do this as many times while retaining the previous borders until they exit the menu. Then output the row, column, and the image name.
Task 2
The second task is allowing the user to pick one of the images from the image used in task 1 using ginput. Ask how many images the user wants to select. After the user clicks on the specified number of images it should display which image/images were selected to the command window. Ask the user if they would like to repeat the entire program.
Inputs
Find six images with a common theme of your choice that are all .jpg
Functions Needed:
ginput, ones/zeros, ceil, randi
Data Validation:
Make sure the user can only click on the actual image, and not the border around the image when doing Task 2 (Note: Its not shown in the sample output below)
Make sure ginput has an integer input
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