Histograms may not be used only to get statistical values. They simply
represents a collection of frequencies for various bins (which may not be
numerical e.g. days of week). For cases when there is no definition of
statistical values like mean, etc. we can use such GenericHistogram<T>.
Addition of GenericHistogram would be an enhancement to the AForge class
hierarchy allowing the use of a base type for handling any histograms
without frills of specialized functions (statistical, etc).
Hence, my suggestion would be to derive the other Histogram classes from
GenericHistogram<T>. The classes like ImageStatisticsHSL can expose the
corresponding derived histogram types or the generic type as allowed by
their semantics. This also makes ImageStatistics to have a valid histogram
for Hue (for Hue, statistical functions are not valid, but the generic
definition of histogram is) which is also required many times for
processing.
Original issue reported on code.google.com by piyoo...@gmail.com on 23 May 2008 at 8:55
Original issue reported on code.google.com by
piyoo...@gmail.com
on 23 May 2008 at 8:55