- F. Isikdogan, A.C. Bovik, and P. Passalacqua, "RivaMap: an automated river analysis and mapping engine," Remote Sensing of Environment, Special Issue on Big Remotely Sensed Data, 2017. [Read at ScienceDirect], [PDF]
- F. Isikdogan, A.C. Bovik, and P. Passalacqua, "Automatic channel network extraction from remotely sensed images by singularity analysis," IEEE Geoscience and Remote Sensing Letters, 12, 11, 2218-2221, 2015. [Read at IEEExplore], [PDF]
Dependencies:
- OpenCV 2.4
- Python 3.x
- Numpy
- Scipy
- Matplotlib
- GDAL
- pyshp
Installing from PyPI:
$ sudo pip install rivamap
Installing from GitHub:
$ git clone https://github.com/isikdogan/rivamap.git
$ sudo python setup.py install
Example Use:
See example.ipynb
Function |
Description |
---|---|
preprocess.mndwi |
Computes the modified normalized difference water index.
Inputs:
Returns:
|
preprocess.contrastStretch |
Applies contrast stretch to an input image. Inputs and outputs an image. |
preprocess.im2double |
Converts image datatype to float. Inputs and outputs an image. |
preprocess.double2im |
Converts double data array to image. Inputs and outputs an image. |
singularity_index.SingularityIndexFilters |
Creates the filters that are needed for computing the modified multiscale singularity index response. The filters can be used for processing many input images once the filters are created.
Keyword arguments: |
singularity_index.applyMMSI |
Applies the filters to a given input image to compute the modified multiscale singularity index response. Estimates the width and the dominant orientation angle for each spatial location.
Inputs:
Returns: |
delineate.extractCenterlines |
Uses the previously computed singularity index response (psi) and the dominant orientation (orient) to extract centerlines.
Inputs: (can be obtained by running applyMMSI function)
Returns: |
delineate.thresholdCenterlines |
Uses a continuity-preserving hysteresis thresholding to classify centerlines.
Inputs:
Keyword Arguments:
Returns: |
georef.loadGeoMetadata |
Reads metadata from a GeoTIFF file.
Inputs:
Returns: |
georef.saveAsGeoTiff |
Saves a raster image as a GeoTIFF file
Inputs: |
georef.pix2lonlat |
Convers pixel coordinates into longitude and latitude.
Inputs:
Returns: |
georef.lonlat2pix |
Convers longitude and latitude into pixel coordinates.
Inputs:
Returns: |
georef.exportCSVfile |
Exports (coordinate, width) pairs to a comma separated text file.
Inputs: |
georef.exportShapeFile [NEW] |
Exports line segments to a ShapeFile.
Inputs: |
visualization.generateRasterMap |
Generates a raster map of channels. It draws a line of length w(x, y) and orientation θ(x, y) at each spatial location.
Inputs:
Keyword Arguments:
Returns: |
visualization.generateVectorMap |
Generates a vector map of channels. It draws a line of length w(x, y) and orientation θ(x, y) at each spatial location.
Inputs:
Keyword Arguments:
Returns: |
visualization.quiverPlot |
Generates a quiver plot that shows channel orientation and singularity index response strength.
Inputs:
Returns: |