get_entropy#
- xrayvision.mem.get_entropy(image, flux)[source]#
Return the entropy of an image.
The entropy is defined as
\[H(x) = sum_i x_i * log(x_i/(m e))\]where \(x\) is an image and \(m\) is the total flux divided by the number of pixels of in the image
- Parameters:
image – Input image array
flux – Total flux divided by the number of pixels of the image