Write a program to recognise the contour of an image

Assignment Help JAVA Programming
Reference no: EM13942207

I am trying to write a program in Java that will be able to recognise the contour of an image. An image is a two-dimentional table of boolean values (true=black, false=white), and the contour is the list of points which form the outer edge of the image.

Two files are attached. The first is my class Image, and the second is a test class which tries it out on an example. As you can see if you execute my program, I get a list of points and directions, but they are not quite correct.

I think there are only small changes to be made, and I would be very grateful if you could show me what to change so that it works properly.

Thanks for your help!

PS - In order to compile and execute the attachments, you have to change the name of the files from Image.txt to Image.java, and from Test.txt to Test.java. I had to save them as .txt, otherwise Brainmass wouldn't allow me to attach them!

Attachment:- Image.zip

Reference no: EM13942207

Questions Cloud

Message of the popular media cartoon : What is the message of the popular media cartoon, or advertisement? What examples of physiological, psychological, or social aspects of sexual development are conveyed? Explain.
Determine the steady-state temperature of the panel : Determine the steady-state temperature of the panel and the electrical power (W) produced for the prescribed conditions - Determine the temperature of the solar panel 1500 s after the spacecraft is eclipsed by a planet.
Compute the cash flow-tax flow and after tax cash flow : Compute the cash flow, tax flow, and after tax cash flow for the following real estate investment property. Expected gross rents are expected to be $60,000 per year. Expected total variance allowance is 5%
The pursuit of knowledge : "The knower's perspective is essential in the pursuit of knowledge." To what extent do you agree? A  short essay on this. highschool student Theory of knowledge class. International baccalaureate. simple language please.
Write a program to recognise the contour of an image : I think there are only small changes to be made, and I would be very grateful if you could show me what to change so that it works properly.
Discuss the relative price elasticity : Discuss the relative price elasticity of the following products:
Other main factors that account for misuse of funds : Cite concrete evidence that supports the assertion that much assistance to developing countries is simply stolen by officials. Determine other main factors that account for the misuse of these funds.
Adjustment for bere company : The trial balance shown below are before and adjustment for BERE Company at the end of its fiscal year.
Individual of understanding time value of money concepts : What is the importance for an individual of understanding time value of money concepts? For a corporate manager? Under what circumstance would the time value of money be irrelevant?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a java program to simulate a die

Write a Java program to simulate a die. A die has values of either 1, 2, 3, 4, 5 or 6 on the face. You should use the Math.Random() or the java.util.Random() class to generate the values on the die.

  2 before we developed a stringlog adt it represents a log

2. before we developed a stringlog adt. it represents a log that holds objects of class string. suppose that instead of

  Programming exercises

Modify the rain program in Listing 10.7 so that it does the calculations using pointers instead of subscripts. (You still have to declare and initialize the array.)

  Implement the nested loops

The user has also already entered a mystery number they want the following series to calculate based upon their current numbers (also relatively logical in size).

  What are the diagrams defined in the uml standard

What are the diagrams defined in the UML Standard. Give a one or two sentence description of each one. Given the following code, how should the toString methods in the classes H2ClassA and H2ClassB be written to give the indicated output and take a..

  The objective is to implement a menu-based system

The objective is to implement a menu-based system for Bank Accounts in order to simulate a very simple banking system. Many structures have to be declared to manage bank accounts.

  Write an app to test class integerset

Create class IntegerSet. Each IntegerSet object can hold integers in the range 0-100. The set is represented by an array of bools. Array element

  Create an application for kochs cottages

Create an application for Koch's Cottages, a weekend getaway resort that rents boats and cottages to use on the local lake.

  Write a program that converts date formats

Write a program that prompts the user to input an integer between 0 and 35. If the number is less than or equal to 9, the program should output the number; otherwise, it should output A for 10, B for 11, C for 12,..., Z for 35. (Hint: use the case..

  One-dimensional array to store grades

Use three arrays: a one-dimensional array to store the student names, a (parallel) twodimensional array to store the test score, and a parallel one-dimensional array to store grades.

  Javas drawing capabilities

This week, we will be learning to use some of Java's drawing capabilities. The Graphics class provides methods for drawing many different shapes, using different colors, and for drawing strings using different fonts.

  Create java servlets

Create a new JSON "view" (e.g., a JSP page that only displays the JSON representation of the data)

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