A histogram class ultimately used to calculate a window center and width for monochrome images.
Inheritance Hierarchy
LaurelBridge.DCF.Examples.BitmapToDicomHistogram
Namespace: LaurelBridge.DCF.Examples.BitmapToDicom
Assembly: BitmapToDicom (in BitmapToDicom.exe) Version: DCF34 r11538 DCF_3_4_24_20190319
Syntax
C#
public class Histogram
The Histogram type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Histogram |
Construct histogram.
|
Properties
Name | Description | |
---|---|---|
BlackIsZero |
Black is zero flag.
| |
Item |
Indexer returns the count of values for the specified pixelValue.
| |
Start |
Lowest pixel value.
| |
Total |
Sum of all counts in all indices.
| |
Width |
Number of indices in histogram.
|
Methods
Name | Description | |
---|---|---|
CalculateWindowCenter |
Poor man's window/level algorithm that hasn't been patented... yet.
Ignore some of the lowest and highest values in attempt to bracket images with low contrast.
| |
Observe |
Increment the observed count for the specified pixelValue, and the Total of all observations.
|
See Also