- python 2.7
- numpy
- scipy
- cv2
- matplotlib
- osgeo
For an example use of the framework please 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: |
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: |