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

  Complete product design specification

What other information would be required to be able to write a more complete Product Design Specification and derive at least four concept designs to satisfy the given specification. Use short written descriptions and simple sketches to illustra..

  To develop an understanding of the properties performance

to develop an understanding of the properties performance and applications of common materials relevant to

  Problems based on nyquist sampling theorem

What is the definition of "Nyquist rate"? What is the "Nyquist sampling theorem"? Plot the signal ??(??) = sin(4????).

  Floating point implementation of the radix

Fixed point and floating point implementation of the radix 2 FFT algorithm. Comparison of accuracy of the fixed point with floating point, sensitivity analysis to word size, pre-scaling and rounding.

  Three phase synchronous motor

Explain the methods of starting a three phase synchronous motor and the effects of variation of excitation with reference to the 'V' curve charecteristic

  Define constraints and objective function accordingly

Formulate a linear programming model for this problem. Define decision variables, and then define your constraints and objective function accordingly.

  Define two deferent colours for indication

You also need to provide a rotation direction indicator. i.e. the present position was reached by rotating clockwise or anticlockwise w.r.t. the previous position. Assume that 0 to 359 is a full clockwise rotation. The indication process need to ..

  Design logic to produce six outputs using and and or gates

Divide up the 80 seconds available for the cycle through the 16 combinations into 16 intervals and determine which lamps should be lit in each interval based on expected driver behavior. Assume that, for interval 0000, a change has just occurred a..

  Analysis of the movement of a tracer

CEE 357 Winter 2014. HW#7 Assignment, Environmental engineering,  Analysis of the movement of a tracer in a contaminated aquifer indicates that the local Darcy velocity is 1.2 m/d. For approximately what fraction of that time do you think the contami..

  Describe how data is transmitted using amplitude modulation

Describe how data is transmitted using Amplitude Modulation and Describe how data is transmitted using Frequency Modulation

  What additional power can be saved

A collection of logic gates for which the static power dissipation is zero, and the dynamic power dissipation is 10 mW is operating at 50 MHz with a 5-V supply. By what fraction could the power dissipation be reduced if operation at 3.3 V were pos..

  Compute the time required for sterilization

Media is to be batch sterilized in a 100 liter fermenter before it is used to grow microorganisms.  Using 0.001 as the probability of an unsuccessful sterilization, compute the time required for sterilization at 121°, 125°, 130°C, and 135°C

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