Write a Matlab user-defined function

Assignment Help MATLAB Programming
Reference no: EM132094076

Assignment -

The purpose of this exercise is to use basic image processing and morphological analysis techniques to quantify reoccurring similar objects in an image. Ideally we want to be able to identify, for example, different cell types and count the number of cells of each type in a microscopy image. However, cells are too complicated for us to work with at the present. Instead, we will sort and count objects that are more tractable-coins.

You will write a Matlab user-defined function that takes as input the image file name as text string, reads in the specified image, uses image intensity and morphological operations for counting, and outputs the numbers of quarters, dimes, nickels and pennies, and total dollar amount, of the coins in the image. For example, one can execute and obtain the following:

>> count_coin('Coins_T1.tiff');

coin count: 7 quarters, 6 dimes, 6 nickels, 8 pennies.

Total amount = $2.73

Specific Instructions:

Work individually without consulting with one another or looking up solutions on the internet. However, you may use Matlab's documentation and help features.

Describe your overall "computational problem" and your computational steps to solve it. Merely listing the Matlab commands used will not be enough.

You may use only the basic Matlab arithmetic and flow control commands and imread, imerode, imdilate, imopen, imclose (including strel) functions, but no other built-in specialty functions from the Signal or Image Processing Toolbox. Violators will forfeit their grade.

(As usual, ask if you are not sure whether a specific function is allowed.)

The body of the code must also be sufficiently and succinctly documented/explained.

Use the provided images to "train" your function (i.e., tweak your settings). You will encounter two types of images, basic and advanced. Basic images (T1 and T2) have isolated coins and coins in contact of neighbors. Advanced images (T3 and T4) in addition contain coins that have small overlap, and one or more foreign coins of the same kind. Your function should work for both types of images, and it will be tested on similar images that are known only to the graders.

Attachment:- Assignment Files.rar

Reference no: EM132094076

Questions Cloud

What are the purposes of integration testing : What are the purposes of Integration testing and who needs to conduct Integration testing?
Light bulbs should be used to light a warehouse : A plant engineer wishes to know which of two types of light bulbs should be used to light a warehouse.
Research and development department : In the research and development department can you tell on what must i based myself when adjusting the size, performance and MTBF.
What was the most difficult part of locating quality : What was the most difficult part of locating quality sources on your topic in Module 6? What was the most rewarding?
Write a Matlab user-defined function : You will write a Matlab user-defined function that takes as input the image file name as text string, reads in the specified image, uses image intensity
Hcm problem solution and defense model : Design your own HCM Problem Solution and Defense model.
Estimate the cost of a client facing project : One of the essential skills great IT Project Managers possess is the ability to estimate the cost of a client facing project so that revenue margins
Iphone production and icloud data : Considering the circumstances, what would you recommend for Apple to do regarding its iPhone production and iCloud data?
Producing the three products in-house : What are the costs for producing the three products in-house? Develop a linear programming model for this problem.

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Mobile robot control and potential field

Write a MATLAB code to compute forces due to each obstacle and goal. Compute total force on vehicle at point(x,y).

  Create a function file that computes the distance

Write a function that accepts temperature in degree Fahrenheit and computes the corresponding value in degrees Celsius. The weight force must balance the spring forces at this new position.

  Calculate the vertical stress increase

Calculate the vertical stress increase expected 2.0 m under the ground surface, under the centre of a rigid 2m by 2m footing resting on the soil surface if the total contact load the footing places on the soil is 80kN.

  Determine the size for variables used in matlab program

If b=3, a=6 how many loops would the given program do? what will be the out put for z(4)? what would be size (in rows and columns) for variables z, i and b?

  Solve the problem in matlab to find the slowness map

Calculate the maximum and minimum oil in place (STOOIP) for this field -  Use the generalized linear least square formulation to solve the problem in MATLAB to find the slowness map. Can you identify the location and extend of oil spill?

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Derive an analytical expression of flux density

Compare the obtained computational results with infinite surface charge approximation - Derive an analytical expression of flux density - Compare the computational results with the analytical solution.

  Find the corresponding equilibrium value for the air speed

Find the corresponding equilibrium value for the airspeed. There are several solutions for the airspeed, we take the higher value and Find the two operating points in terms of Pm and other variables - Find the linearized system near each of the oper..

  Define the transformation matrix

Define the transformation matrix for each vertex that keeps the approach of the knife normal to the circumference and oriented toward the cut, and makes the cut 1 cm deep.

  Write the matlab code to set up the vector

Write the MATLAB code to set up the vector y = [2 4 3 6 2] and plot y in a pie chart. Add a legend and title to the pie chart. The legend should contain the following strings: ‘value1', value2', ‘value3', ‘value4', and ‘value5'. The title should b..

  Compute and plot the cross-correlation

Compute and plot the cross-correlation rxs(l) and determine the time delay of x(n) and compute and plot the impulse response h(n) of the matched filter.

  Z-transform in matlab

Z-Transform in MATLAB, Sketch the z-plane pole-zero plot and determine the stability status for the following digital system. Determine the h(n) in MatLab.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd