Mega-Word-Inc / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Suggestion: Generic Histograms and inclusion of Hue histogram in ImageStatisticsHSL #63

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 12 Jul 2009 at 1:55

GoogleCodeExporter commented 8 years ago

Original comment by andrew.k...@gmail.com on 12 Jul 2009 at 1:55