GithubHelp home page GithubHelp logo

imagethresholding's Introduction

Image Segmentation

A small java program that demonstrates the image segmentation algorithms: Mean Thresholding and Histogram Thresholding.

Requirements

  • To run the program, you will need java version "1.8.0_301". Previous versions may not work.
  • You will also need the following libraries which should come with the default JDK: import java.io.File; import java.io.IOException; import java.awt.image.BufferedImage; import java.awt.Color; import javax.imageio.ImageIO; import java.util.Scanner;

INSTRUCTION ON USE

  1. Navigate to home directory (ImageSegmentation)
  2. Run "javac ImageSegmentation.java" to compile java program
  3. Run "Java ImageSegmentation to run program
  4. Enter image name without file type (e.g. If you want to run cathedral-LC-95.jpg, type in "cathedral-LC-95")
  5. Choose a segmentation algorithm or both by typing in the number asasociated on the list when prompted.

Histogram Algorithm

6a. When the histogram algorithm gets chosen, the program will prompt you to choose a pixel coordinate (x, y). Enter a valid pixel for x, and then afterwards, y as instructed.

Mean Algorithm

6b. No input is needed to run this algorithm

  1. After the algorithms have been processed, the program will output the duration it took to process the image in seconds. The histogram algorithm will also display how many loops it needed to stabalize the threshold value.

Processed images

  • Processed images will be found in the images folder.
  • Images will be marked with either "--HISTO" or "--MEAN" depending on algorithm used. Examples:
    • cathedral-LC-95.jpg
      • will be called cathedral-LC-95-HISTO.jpg when histogram algorithm is used.
      • will be called cathedral-LC-95-MEAN.jpg when mean algorithm is used.

imagethresholding's People

Contributors

albertanthonyarrieta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.