Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please in matlab You can use any built-in MATLAB function or any official MATLAB toolbox without acknowledgement. 2. The Task At the end of these

please in matlab

image text in transcribedimage text in transcribed

You can use any built-in MATLAB function or any official MATLAB toolbox without acknowledgement. 2. The Task At the end of these instructions are 12 images containing various pieces of LEGO. Your system needs to read in such an image and provide a count of the number of Blue 2 by 4 bricks (objectA) and the number of Red 2 by 2 bricks (objectB). Close-up images of these two types of LEGO brick are provided here ObjectB 3. System Requirements You should submit a single m-file, or a single zip file containing your code. Your code must include a m-file called count_lego.m". The main function in this file should have the following definition: function [numA, numBl ont_lego (I) Hence, this function takes one input argument (I), which is a MATLAB variable storing a jpeg image (i.e. I will have been produced using the command: I=imread('LegoX. jpg . ) ; ). The two output variables (numA,numB) should be integers. The first output, numA, should provide a count of the number of Blue 2 by 4 bricks that occur in the input image. The second output, numB, should provide a count of the number of Red 2 by 2 bricks that occur in the input image. The count_lego function may call other functions. All these functions should be included in the same m-file, or be include in the zip file you submit. Your code can also load data, as long as this data is included in the zip file you submit. Your code should run on a PC and not need access to special hardware, such as a GPU 4 The performance of your code will be assessed by testing the accuracy with which it counts numbers of objectA and objectB in 12 testing images. The testing images were obtained under the same conditions as the training images. In addition, your submission will be marked on how sensible an approach you have chosen to implement and how efficiently and correctly that approach has been implemented 5. Training Images numA 4, numB-1 numA-4, numB-2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions