GithubHelp home page GithubHelp logo

abhijeet3922 / change-detection-in-satellite-imagery Goto Github PK

View Code? Open in Web Editor NEW
154.0 12.0 66.0 3.63 MB

It employes Principal Component Analysis (PCA) and K-means clustering techniques over difference image to detect changes in multi temporal images satellite imagery.

Home Page: https://appliedmachinelearning.wordpress.com/2017/11/25/unsupervised-changed-detection-in-multi-temporal-satellite-images-using-pca-k-means-python-code/

Python 100.00%

change-detection-in-satellite-imagery's People

Contributors

abhijeet3922 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

change-detection-in-satellite-imagery's Issues

Error encountered

(base) D:\Downloads\Change-Detection-in-Satellite-Imagery-master\Change-Detection-in-Satellite-Imagery-master>python PCAKmeans.py
Operating
(1600, 1600) (1600, 1600)

Both images resized to [1600 1600]

vector_set shape (102400, 25)
Traceback (most recent call last):
File "PCAKmeans.py", line 119, in
find_PCAKmeans(a1,b1)
File "PCAKmeans.py", line 91, in find_PCAKmeans
FVS = find_FVS(EVS, diff_image, mean_vec, new_size)
File "PCAKmeans.py", line 49, in find_FVS
FVS = np.dot(feature_vector_set, EVS)
MemoryError

Critical Bug

You have a critical bug in find_vector_set().
i = I + 1 needs to be moved into the while k < ... loop. Your code as is creates one feature vector in vector_set[0,:] and everything else is zero because j is never reset, so the j and k while loops are only entered one time. The code still works, but you're basically running PCA on a single sample, so results are majorly suboptimal. You really don't need the i while loop at all once you make the change.

Word of warning

Word of warning that the code is in python 2, and some functions are deprecated in recent releases of some of the dependencies.

big images change detection

Hi,

This code works well for smaller datasets . but, for bigger images, what shall be resize settings as it is throwing warning of decompression bomb dos attack and error of could not broadcast input array from shape(100) into shape (25) line 19.
Images are resized to [20025 11590 0] and vector set shape to (2320897, 100)

  1. Second part Can we generate stats like how much area is impacted in terms of sq meters etc
  2. Is it possible to measure changes in classified sections like urban area, land, vegetation etc?

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.