surface gradient¶
Usage
Run using mc_script surface gradient after installation or using ~ndcn0236/bin/mc_script surface gradient on jalapeno.
Import in python using from mcutils.scripts.surface import gradient
Documentation
Computes the feature similarity with the neighbouring vertices
All relevant distance metric from scipy are included (https://docs.scipy.org/doc/scipy/reference/spatial.distance.html) as well as histogram intersection (http://blog.datadive.net/histogram-intersection-for-change-detection/).
Functions
|
Computes the distance between neighbouring feature sets |
|
Summarises a NxN sparse matrix of distances as a (N, ) array of distances |
|
Computes the reduced distance between neighbouring vertices |
CLI interface
|
Creates the parser of the command line arguments |
|
Runs the script based on a Namespace containing the command line arguments |