A Natural-Rule-Based-Connection (NRBC) Method

Version 1.2.0.0 (9.67 MB) by chuiqing
code for paper: (http://www.mdpi.com/2072-4292/7/10/14055).
370 Downloads
Updated 31 Oct 2015

A Natural-Rule-Based-Connection (NRBC) Method for River Network Extraction from High-Resolution Imagery
Usage example (For details, please view the demonstration_html):
[water_mask_orgin, Mask_connected, edge_list]=NRBC ('.\Test_Data\WaterMask.tif', '.\Test_Data\NDVI.tif');

Introduction of the water body detection software package (NRBC).
This is a group of Matlab functions to detect and connect water body from satellite/airborne imagery.
The entire task is broken down into several relatively independent tasks, with the most important part NRBC published and can be open accessed [Here] (http://www.mdpi.com/2072-4292/7/10/14055).
This code project implements the Step 2: [River_Patch_Connection]. Please see my other project for the other steps.

The overall river detection task is broken down as:
1. Unsupervised classification of satellite imagery: (here we are using 8 band original Worldview-2 imagery) With the unsupervised classification result, the water clusters (classes) are automatically/adaptively chosen from all classes.
--> [Viusalize_of_Centres] module is designed for this purpose

2. When a refined water body is achieved, we need to further connect river segments to form topologically correct/completed rivers. This is a complicated stage with many steps. A image pyramid is generated, and topology at top level (downsampled imagery) is then deliver to the bottom level (original resolution imagery) Many rules are applied to test the potential connect-able river segments., such as the river direction and width consistence between neighbouring river segments. finally the gap is filled if it is a successful/ connect-able case.
--> [River_Patch_Connection] module is designed for this task with many functions.

3. After a complete water body, with complete/correct rivers been connected, is generated, the centerline of the rivers are generated. An improved morphological method that first skin the water mask and then remove the spurs is used. An alternative method is using the MEANSHIFT method, which is also implemented.
--> [River_Centerline] module is implemented for this purpose.

4. The bridge can also be detected after water body detection: bridges are detected, and regularized as rectangles The main idea is find the river connected areas, as seed for potential bridge locations, and then use rule to remove incorrect case and process the correct case.
--> [Bridge_Detection] module is designed for this purpose.

There are some other isolated functions which are not used in this mainstream, but still quite useful for other applications. such as the Image pyramid construction, non-linear fitting of points, etc.
Removed section
5. After the water classes are selected, a coarse water mask is generated. within this water mask, there are some mistaken areas, such as shadows, to refine the result, a SAR (here we use the Radarsat-2 HH SLC image) image is used to refined the result We separate the water from non-water, by separating the overall histogram into two , and a threshold is set appropriate to distinguish water from non-water by Mean backscatter value in SAR imagery --> [Histogram_Separation] package is designed for this purpose
Note: this section is removed now.
Removed section

Please cite this work as:
Zeng, C.; Bird, S.; Luce, J.J.; Wang, J. A Natural-Rule-Based-Connection (NRBC) Method for River Network Extraction from High-Resolution Imagery. Remote Sens. 2015, 7, 14055-14078.

Note
This entire project is for research purpose thus did not well-test. They may be many issues/bugs when you run with own data, please report any problem or improvement suggestion to: chqzeng@gmail.com

Cite As

chuiqing (2024). A Natural-Rule-Based-Connection (NRBC) Method (https://github.com/chqzeng/NRBC), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

DIPimage/common/dipimage

DIPimage/common/dipimage/@dip_image

DIPimage/common/dipimage/@dip_image/private

DIPimage/common/dipimage/@dip_measurement

DIPimage/common/dipimage/aliases

DIPimage/common/dipimage/demos

DIPimage/common/dipimage/private

DIPimage/common/mlv7_6/dipimage_mex

DIPimage/common/mlv7_6/diplib

Versions that use the GitHub default branch cannot be downloaded

Version Published Release Notes
1.2.0.0

updated description

1.1.0.0

Add a figure to illustrate the function of this work

1.0.0.0

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.