Computes the histogram of pixel values
The format of the returned data is suitable for creating DICOM Image Histogram modules, though to use this a few other attributes must be added.
In keeping with the image histogram module, the values used are raw pixel values before application of a modality lookup table or rescaling – use LookupTable if such translation is required.
The array returned is, like most arrays in DicomObjects, “1-based”, so the bin corresponding to the minimum pixel value quoted is bin 1 (not 0).
For multi-frame images, only the first frame is used for this method.