GithubHelp home page GithubHelp logo

sanwen211314 / hyperspectral-image-classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from v-pap/hyperspectral-image-classification

0.0 1.0 0.0 5 MB

Hyperspectral Image (HSI) classification with matlab

MATLAB 96.73% M 3.27%

hyperspectral-image-classification's Introduction

Hyperspectral Image (HSI) Classification

The purpose of this project is to classify the pixels of a hyperspectral image to specific categories. These images can be represented as 3D arrays where the first two dimensions represent the coordinates of the pixel and the 3rd dimension represents the different spectral bands, known as the spectral signature of the pixel.

About the Classification

The classification to the 5 categories is done by three different classifiers (supervised):

  1. Naive Bayes classifier
  2. minimum Euclidean distance classifier
  3. k-nearest neighbor classifier

The program uses some points of the dataset for training and some others for testing. In the case of the KNN classifier, before doing the actual training, the training set is first used to calculate the optimal K value (from 1 to 17). This is done with the use of the cross validation method, by splitting the training dataset to 5 equal parts, but with distinct points, and with the same ratio of categories. Specifically for every K value, 5 knn classifiers are trained, one from each part of the training set while using the remaining 4 for testing. Then by calculating the average for every K, we pick the one which provides the lowest error rate.

Getting Started

Prerequisites

The only thing required is having a MATLAB enviroment installed.

Installing

Get a copy of the project

git clone https://github.com/v-pap/hyperspectral_image_classification.git

Using the program

In order to use the program you will have to open the MATLAB suite and browse the directory with the contents of the project. Then in the src directory you will have to run the project_m_file.m file.

About the dataset

The dataset was provided by the pattern recognition / machine learning class of the informatics and telecommunications department of the UoA and it represents one area of the Salinas Valley located in California. The hyperspectral image has a resolution of 150x150 pixels with 204 spectral bands (from 0.2μm to 2.4μm) and a spatial resolution of 3.7 meters.

License

This project is licensed under the MIT License

hyperspectral-image-classification's People

Contributors

v-pap 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.