![]() |
KSquare Utilities
|
Used to manage the construction of a Histogram. More...
#include <Histogram.h>
Public Member Functions | |
| Histogram (float _minValue, kkint32 _numOfBuckets, float _bucketSize, bool _wrapArround) | |
| ~Histogram () | |
| kkint32 | AreaInRange (kkint32 minBucket, kkint32 maxBucket) const |
| float | AreaInRangePercent (kkint32 minBucket, kkint32 maxBucket) const |
| float | AverageOfMaxBucket () const |
| float | AverageOfMaxBucketExcludingRange (kkint32 minBucket, kkint32 maxBucket) const |
| float | AverageOfMaxBucketInRange (kkint32 firstBucket, kkint32 lastBucket) const |
| float | AverageOfMinBucketInRange (kkint32 minBucket, kkint32 maxBucket) const |
| float | Bucket (kkint32 bucket) const |
| float | BucketSize () const |
| void | CalculatePeaks (kkint32 threshold) |
| float | CountOfMaxBucket () const |
| RasterPtr | CreateGraph () const |
| RasterPtr | CreateGraph (kkint32 barSize) const |
| Histogram * | Equalized () |
| kkint32 * | EqualizedMapTable () |
| float | GetPeakAvgByHighestOrder (kkint32 peakNum) |
| kkint32 | GetPeakBucket (kkint32 peakNum) |
| kkint32 | GetPeakByHighestOrder (kkint32 peakNum) |
| void | GetStats (float &min, float &max, float &mean, float &variance) |
| void | Increment (float val) |
| bool | IsBucketAPeak (kkint32 bucket, kkint32 tolerance) const |
| kkint32 | MaxBucketIdx () const |
| float | MinValue () const |
| kkint32 | NumOfBuckets () const |
| void | PrintTable (ostream &o) |
| void | Save (KKStr fileName) const |
| void | SaveGraphImage (const KKStr &fileName) const |
| void | SaveGraphImage (const KKStr &fileName, kkint32 barSize) const |
| Histogram * | Smooth (kkint32 smoothWidth) |
| float | TotalCount () const |
Used to manage the construction of a Histogram.
Definition at line 24 of file Histogram.h.
| Histogram::Histogram | ( | float | _minValue, |
| kkint32 | _numOfBuckets, | ||
| float | _bucketSize, | ||
| bool | _wrapArround | ||
| ) |
Definition at line 24 of file Histogram.cpp.
Referenced by Equalized(), KKB::Raster::Histogram(), KKB::Raster::HistogramGrayscale(), and Smooth().
| Histogram::~Histogram | ( | ) |
Definition at line 64 of file Histogram.cpp.
Definition at line 1010 of file Histogram.cpp.
Referenced by AreaInRangePercent().
Definition at line 1036 of file Histogram.cpp.
References AreaInRange().
| float Histogram::AverageOfMaxBucket | ( | ) | const |
Definition at line 967 of file Histogram.cpp.
Definition at line 891 of file Histogram.cpp.
Referenced by KKB::Raster::SegmentImage().
Definition at line 930 of file Histogram.cpp.
| float Histogram::Bucket | ( | kkint32 | bucket | ) | const |
Definition at line 122 of file Histogram.cpp.
|
inline |
Definition at line 60 of file Histogram.h.
| void Histogram::CalculatePeaks | ( | kkint32 | threshold | ) |
Definition at line 756 of file Histogram.cpp.
| float Histogram::CountOfMaxBucket | ( | ) | const |
| RasterPtr Histogram::CreateGraph | ( | ) | const |
Definition at line 162 of file Histogram.cpp.
References KKB::Raster::DrawLine(), IsBucketAPeak(), KKB::Raster::Raster(), KKB::Raster::ReverseImage(), and KKB::Raster::SetPixelValue().
Referenced by KKB::Raster::HistogramGrayscaleImage(), KKB::Raster::HistogramImage(), and SaveGraphImage().
Definition at line 337 of file Histogram.cpp.
References KKB::Raster::DrawLine(), IsBucketAPeak(), KKB::Raster::Raster(), KKB::Raster::ReverseImage(), and KKB::Raster::SetPixelValue().
Referenced by SaveGraphImage().
| HistogramPtr Histogram::Equalized | ( | ) |
Definition at line 848 of file Histogram.cpp.
References Histogram().
Referenced by KKB::Raster::HistogramEqualizedImage().
|
inline |
Definition at line 72 of file Histogram.h.
Referenced by KKB::Raster::HistogramEqualizedImage().
| float Histogram::GetPeakAvgByHighestOrder | ( | kkint32 | peakNum | ) |
Definition at line 820 of file Histogram.cpp.
References GetPeakByHighestOrder().
Definition at line 771 of file Histogram.cpp.
Definition at line 785 of file Histogram.cpp.
Referenced by GetPeakAvgByHighestOrder().
| void Histogram::GetStats | ( | float & | min, |
| float & | max, | ||
| float & | mean, | ||
| float & | variance | ||
| ) |
Definition at line 1071 of file Histogram.cpp.
| void Histogram::Increment | ( | float | val | ) |
Definition at line 137 of file Histogram.cpp.
Referenced by KKB::Raster::Histogram(), and KKB::Raster::HistogramGrayscale().
| kkint32 Histogram::MaxBucketIdx | ( | ) | const |
Definition at line 76 of file Histogram.cpp.
Referenced by AverageOfMaxBucket(), and CountOfMaxBucket().
|
inline |
Definition at line 94 of file Histogram.h.
|
inline |
Definition at line 96 of file Histogram.h.
Referenced by KKB::Raster::HistogramEqualizedImage().
| void Histogram::PrintTable | ( | ostream & | o | ) |
| void Histogram::Save | ( | KKStr | fileName | ) | const |
Definition at line 529 of file Histogram.cpp.
Referenced by KKB::Raster::SegmentImage().
| void Histogram::SaveGraphImage | ( | const KKStr & | fileName | ) | const |
Definition at line 510 of file Histogram.cpp.
References CreateGraph(), and KKB::SaveImage().
Referenced by KKB::Raster::SegmentImage().
Definition at line 518 of file Histogram.cpp.
References CreateGraph(), and KKB::SaveImage().
| HistogramPtr Histogram::Smooth | ( | kkint32 | smoothWidth | ) |
Definition at line 585 of file Histogram.cpp.
References Histogram().
Referenced by KKB::Raster::SegmentImage().
|
inline |
Definition at line 110 of file Histogram.h.