Documentation ¶
Overview ¶
Package sentropy provides functions for computing entropy and delentropy of SippImages, as well as rendering these as images.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SippDelentropy ¶
type SippDelentropy struct { // The delentropy for the image, i.e. the sum of the delentropies for all // of the histogram bins. Delentropy float64 // contains filtered or unexported fields }
SippDelentropy is a structure that holds a reference to a gradient histogram and the delentropy values derived from it.
func Delentropy ¶
func Delentropy(hist SippHist) (dent *SippDelentropy)
Delentropy returns a SippDelentropy structure for the given SippHist.
func (*SippDelentropy) DelEntropyImage ¶
func (dent *SippDelentropy) DelEntropyImage() SippImage
DelEntropyImage returns a greyscale image of the entropy for each gradient pixel.
func (*SippDelentropy) HistDelentropyImage ¶
func (dent *SippDelentropy) HistDelentropyImage() SippImage
HistDelentropyImage returns a greyscale image of the delentropy for each histogram bin.
type SippEntropy ¶
type SippEntropy struct { // A reference to the image. Im SippImage // A reference to the 1D histogram Hist []uint32 // The entropy for each bin value that actually occurred. BinEntropy []float64 // The largest entropy value of any bin. MaxBinEntropy float64 // The entropy for the image, i.e. the sum of the entropies for all // the pixels. Entropy float64 }
SippEntropy is a structure that holds a reference to an image, the 1D histogram of its values, and the entropy values derived from the histogram.
func Entropy ¶
func Entropy(im SippImage) (ent *SippEntropy)
Entropy returns a SippEntropy structure for the given image.
func (*SippEntropy) EntropyImage ¶
func (ent *SippEntropy) EntropyImage() SippImage
EntropyImage returns a greyscale image of the entropy for each pixel.