Giter Site home page Giter Site logo

imagesegmentation-13's Introduction

ImageSegmentation

Image segmetation using kmeans method

Ideas from https://cn.mathworks.com/help/images/examples/color-based-segmentation-using-k-means-clustering.html

Image in this example from https://ss1.bdstatic.com/70cFuXSh_Q1YnxGkpoWK1HF6hhy/it/u=1357968263,3722616166&fm=27&gp=0.jpg

There's some problems in this example

  1. We need to give the number of classes before running test1.m;
  2. Initial value of cluster center is very crucial, improper value may influency the final result, so this program is not stable very well, needs to be adjusted later;
  3. Validate methods haven't been used in these program.

The innovative point in this program

  1. Image segmentation using kmeans has advantages compared to threshold method;
  2. We first flatten our image into one dimension before input it into kmeans program;
  3. Function reshape in matlab has been used to memorize the location information of data.
  4. The order of classify can disturb the final result without adding extral term, details in test1.m

The results of our program

original image

image

when choosing 3 classes

image

when choosing 4 classes

image

imagesegmentation-13's People

Contributors

sunt16 avatar

Watchers

James Cloos 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.