Describe how to calculate standard deviation and entropy

Assignment Help Other Engineering
Reference no: EM131059329

Digital Image Processing Home Work

"Representation and Description"

1. Task.

1. What is a descriptor?

2. Describe how to calculate following regional descriptors and give an example what objects could be well described by these descriptors (like average R,G,B values could be used to separate tomatoes from cucumbers in true color images):

2.1. standard deviation

2.2. entropy

2.3. uniformity

2.4. flatness of histogram

2.5. region area

2.6. eccentricity

2. Task.

Test image: example2.png

Prepare Matlab GUI for decriptor testing.

1338_figure.png

1. Button Load I from workspace: loads RGB image called I from Matlab workspace and shows it in axes 1.

2. Button Load BW from workspace: loads segmented image BW by using thresholding and shows it in axes 2. Improve the result of thresholding by removing small meaningless components using morphological processing.

3. Once both images are loaded, then find connected components and show them in axes3.

4. User can click on connected components in axes3. Selected connected component will be shown in axes4 and following descriptors of the region will be calculated and shown in Static Text object:

a) mean R value of Connected Component (CC);

b) mean G value of CC

c) mean B value of CC

d) standard deviation of CC

e) eccentricity of CC

f) entropy of CC

g) area of CC.

"Object Recognition"

T1: OPTICAL CHARACTER RECOGNITION

Perform character recognition in the image and write text to the file.

Test images: TMR.jpg, hitchickersGuideToTheGalaxy.jpg

Procedure:

1. Write a function findRows() which can separate line of the text in the image and save all lines as images in a cell array.

2. Prepare sample data. Import image TMR.jpg, convert it to binary image, invert it and smooth the boundaries by using imclose.

2.1. Extract lines and separate each symbol by using bwlabel.

2.2. Extract each symbol as im using regionprops. Calculate signature sy for this symbol using prepareSignature(). Write in cell array templateset: im, sy and name of the symbol (idea char('A'+(1:26)-1)' could be useful).

108_Figure1.png

3. Process text in hitchhickersGuideToTheGalaxy.jpg: convert it to binary image, invert it and smoothe the boudaries by using imclose.

3.1. Extract lines of text.

3.2. For each line

3.2.1. Find all symbols using bwlabel.

3.2.2. Calculate signature for each symbol and compare this signature with all signatures in templateset (you can use Euclidean distance or mean absolute difference). Assign symbol to the character of template set with the most similar signature.

3.2.3. Write each line in .txt file

4. Write a function findWords for finding words in the line of the text (in the image).

5. Add word separation to the code above and write white spaces in the text file as well.

1134_Figure2.png

Reference no: EM131059329

Questions Cloud

Different for particular asset at particular point in time : What is the difference between the expected rate of return and the required rate of return? What does it mean if they are different for a particular asset at a particular point in time?
Create a conceptual model of the project : In addition, create a conceptual model of the project. Although you will not be submitting the conceptual model you design in Topic 5 with the narrative, the conceptual model should be placed in the appendices for the final paper.
Prepare a classified balance sheet with a proper heading : Prepare a classified balance sheet with a proper heading on a spreadsheet. For assets, use the classifications of current assets, plant and equipment, intangibles, and other assets.
Concept to encompass surf lifestyle for the home : With the growing popularity of casual surf print clothing, two recent MBA graduates decided to broaden this casual surf concept to encompass a "surf lifestyle for the home." With limited capital, they decide to focus on surf print table and floor lam..
Describe how to calculate standard deviation and entropy : Describe how to calculate following regional descriptors and give an example what objects could be well described by these descriptors (like average R,G,B values could be used to separate tomatoes from cucumbers in true color images): standard dev..
What was the firms end-of-year cash balance : You have just been hired as a financial analyst for Basel Industries. Unfortunately, company headquarters (where all of the firm's records are kept) has been destroyed by fire. So, your first job will be to recreate the firm's cash flow statement for..
In the purchasing and payable process : QUESTION 1 - How would we go about testing each of the above and which management's assertions do they relate to? Purchasing & Accounts Payable
Any tax effects in calculating the cash break-even : Calculating Break-Even [LO3] In each of the following cases, calculate the accounting break-even and the cash break-even points. Ignore any tax effects in calculating the cash break-even.
What is the company market value debt–equity ratio : Frusciante, Inc. has 320,000 bonds outstanding. The bonds have a par value of $1,000, a coupon rate of 5.8 percent paid semiannually, and 12 years to maturity. The current YTM on the bonds is 6.3 percent. The company also has 9.5 million shares of st..

Reviews

Write a Review

Other Engineering Questions & Answers

  Find the gate threshold in the cases

Consider the two-inputCMOSNORgate of Fig. 14.7 whose transistors are properly sized so that the current-driving capability in each direction is equal to that of a matched inverter. For / Vt / =1 V and VDD =5 V, find the gate threshold in the case..

  Heating element in the water

By placing it on an electric range and By placing a heating element in the water. Which method is a more efficient way of heating water? Explain.

  Policy research paper on mobile application security

Policy Research Paper: Mobile Application Security. Research and write a 5-pageacademic research paper on one of the following policyrelated topics

  Building a wind farm - preliminary investigation

Estimate the values of capacity factor and annual energy delivered using average wind speed and turbine data supplied by the manufacturer. Compare the estimated values with the corresponding results found in step 4 and determine the errors in perc..

  Test a basic working prototype

The project is aimed to model, design, Build and test a basic working prototype that can sense, count and record the passenger number as they enter and leave a train carriage.

  Analysis of the vehicle component

Analysis of the vehicle component: role, work conditions, requirements for the role and

  Quality of american primary and secondary school systems

The much discussed decrease in the quality of American primary and secondary school systems.

  Determine the average magnitude of couple

A 200-kg flywheel is at rest when a constant 300 N · m couple is applied. After executing 560 revolutions, the flywheel reaches its rated speed of 2400 rpm. Knowing that the radius of gyration of the flywheel is 400 mm, determine the average magni..

  Horizontal and vertical components

The airstroke actuator at D is used to apply a force of F = 200 N on the member at B. Determine the horizontal and vertical components of reaction at the pin A and the force of the smooth shaft at C on the member.

  Find an expression for the torque

The wye joint in Fig splits the pipe flow into equal amounts Q/2, which exit, as shown, a distance Ro from the axis. Neglect gravity and friction. Find an expression for the torque T about the x axis required to keep the system rotating at angular..

  Draw the circuit diagram of a three-input cmos nand gate

Draw the circuit diagram of a three-input CMOS NAND gate. Draw its equivalent circuit (open and closed switches) if all three inputs are high. Repeat if all three inputs are low.

  Frictionless one-dimensional flow

Water flows through a circular nozzle, exits into the air as a jet, and strikes a plate. The force required to hold the plate steady is 70 N. Assuming frictionless one-dimensional flow, estimate (a) the velocities at sections (1) and (2); (b) the ..

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