Discrete Histogram Entropy - MontpellierRessourcesImagerie/imagej_macros_and_scripts GitHub Wiki

Calculates the discrete histogram entropy for the result of the Directionality plugin.

USAGE:

Run the Directionality plugin on your image. Select "Display table" in the dialog. Activate the results table containing for each direction the normalized frequency of the data and the fit. Run the macro. The discrete histogram entropy is written to the log window.

INSTALLATION

Open the macro discrete_histogram_entropy_.ijm with ImageJ and run it from the macro-editor.

NOTE

If you use the macro on other histograms, the table must contain the values (used to calculate the bin-width) in the first column and the normalized frequencies in the second column.

SOURCE CODE

You find the source code in git-hub here.