Discrete_Histogram_Entropy_Tool - MontpellierRessourcesImagerie/imagej_macros_and_scripts GitHub Wiki

The tool calculates the discrete histogram entropy H(X).

f1

where w is the width of the i-th histogram bin and f the frequency of the value xi.

discrete_histogram_entropy.png

The macro has originally be intended to be used with the histogram of directions created by the Directionality plugin. It can be used on an image or on a histogram table.

Getting started

To install the tool save the file discrete_histogram_entropy.ijm into the folder macros/toolsets of your FIJI installation.

Select the "discrete_histogram_entropy" toolset from the >> button of the ImageJ launcher.

dhe-toolbar.png

Left-click the button to run the tool on the current image. Right-click the button to open the options dialog.

Options

dhe-options.png

  • number of bins - the number of bins of the histogram when the input is an image
  • epsilon - a small number used to determine if the sum of the counts in the histogram is close enough to one to consider it normalized
  • bin column - the column containing the bin-starts when running on a table
  • count column - the column containing the counts when running on a table
  • auto - when auto is selected the bin- and count columns are found automatically (either bin start or index and count)
⚠️ **GitHub.com Fallback** ⚠️