Coder Social home page Coder Social logo

river_detection's Introduction

Matlab River Detection Code

Environment

MATLAB R2008a (or higher)

Add MATLAB Tools

Use 2DSpecTools for band pass filter.

Use OBNLMpackage for denoising.

Use DIPimage for path opening.

Install tools

2DSpecTools and OBNLMpackage tools have been offered on the GitHub.

Download DIPimage from http://www.diplib.org/download and install it. alt text

Set Path

  • Click set path in Matlab GUI.
  • Add 2DSpecTools, OBNLMpackage, DIPimage tools, Matlab River Detection code folder to MATLAB environment.
  • Save.

alt text

Open Matlab River Detection code folder in MATLAB

alt text

Change the path of DIPimage in pathopening.m

alt text

Run river detection code

Here, we provide run_river_detection.m to detect river in single image and run_batch_river_detection.m for batch detection.

  • Open Matlab River Detection code folder in MATLAB. alt text
  • Open run_river_detection.m or run_batch_river_detection.m.
  • Write the image path. test_sentinel2_image.tif is provided as test image.
  • Set input 6 parameters.
parameters description
WV: WorldView image
SPOT: SPOT image
sensor Sentinel2: Sentinle-2 image after NDWI calculation
Landsat: Landsat panchromatic image
LandsatNDWILandsat: image after NDWI calculation
inverse set 1 to convert dark rivers into bright rivers (e.g., for panchromatic image); set 0 to keep bright rivers (e.g., for NDWI images)
width small river width for Gabor filter, default = 2
ppo_length path opening length, default = 20
histCountThreshold a pixel count threshold to stretch image pixel values, default = 1000
Smooth (optional) used for denoise algorithm. Because denoise algorithm is too slow and scale dependent, is abandoned for large images, default = 0.7

You can add your customized sensor (image) easily. The only requirement is to reset the band pass frequency based on the spatial resolution of your input image.

  • Click run.

If you see these commands in the command window, the river detection code is running successfully. alt text You will get 3 processed images. test_sentinel2_image_bandpass_gabor_cpo20.tif is the final result. alt text

Acknowledgements

Corresponding Author

  • Kang Yang ([email protected], ph: 13814179324, School of Geography and Ocean Science, Nanjing University)
  • Xin Lu ([email protected], School of Geography and Ocean Science, Nanjing University)
  • Yao Lu ([email protected], School of Geography and Ocean Science, Nanjing University)

For more information, please see the paper

Yang, K. , Karlstrom, L., Smith, L.C., Li, M., 2017. Automated high resolution satellite image registration using supraglacial rivers on the Greenland Ice Sheet. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 10(3): 845-856.

Yang, K. , Li, M., Liu, Y., Cheng, L., Huang, Q., Chen, Y., 2015. River Detection in Remotely Sensed Imagery Using Gabor Filtering and Path Opening. Remote Sensing, 7(7): 8779-8802.

Yang, K. , Li, M., Liu, Y., Cheng, L., Duan, Y., Zhou, M., 2014. River Delineation from Remotely Sensed Imagery Using a Multi-Scale Classification Approach. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 7(12): 4726-4737.

river_detection's People

Contributors

njurs avatar

Stargazers

 avatar Youssef Allali avatar Pavan Neginhal avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar Lu Yao avatar Ethan Kyzivat avatar  avatar

Watchers

Ethan Kyzivat avatar  avatar  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.