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

  Create the look for two gui applications

Create the look for two GUI applications. You WILL NOT be getting the applications to do anything. We are only interested in seeing how well you can arrange the GUI components onto the window

  Calculate the percentage wins of a team

Write a program that will calculate the percentage wins of a team. The program will input the number of wins and losses that a team acquired during a season. The wins should be input in a parameter-less value returning function that returns the wi..

  Which weblogic property is used to control number of queued

Which WebLogic 4.5x/5.x property is used to control the number of queued requests inside the WebLogic server? When I try load *.jsp files, I see the source code of each JSP files in my browser, what is wrong?

  Create a class that implements movieloader

Fill in the empty Frame class that has been provided. Each object of this type will store data consisting of a single frame from an input le.

  Determine the best way to gather business rules

You have been hired by Happy Health to determine the best way to gather business rules for a new phone system.

  Use a gui interface to control and display result of program

The scenario is inspired by a Library Management System (LIMS). For the first version of the project, the LIMS is a very basic one, allowing just for the import of data from a text file and perfom some basic search operations.

  Creates an array of six divsales objects

Write a program that creates an array of six DivSales objects. The program should ask the user to enter the sales for four quarters for each division.

  Write and run a java program

Write and run a Java program which allows the user to input two doubles and outputs the greater of the two?

  A small mobile application using android or ios

A small mobile application using Android or IOS, the application idea chosen by each student individually, or in groups of two students only. The app must be not less than 3 activities.

  Declare another television object called portable

Add to the comment header as indicated at the top of the program.

  Create three classes for a customer

a travel manager and have a job of buying a travel package for a customer. You must create three classes for this programming challenge: Customer, Ticket, and TravelManagerDemo.

  Write the specification for the adt as a java interface

Write the specification for the ADT as a Java interface

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