Horizontal projection - AForge
// collect statistics HorizontalIntensityStatistics his = new HorizontalIntensityStatistics( sourceImage ); // get gray histogram (for grayscale image) Histogram histogram = his.Gray; // output some histogram's information System.Diagnostics.Debug.WriteLine( "Mean = " + histogram.Mean ); System.Diagnostics.Debug.WriteLine( "Min = " + histogram.Min ); System.Diagnostics.Debug.WriteLine( "Max = " + histogram.Max );
Vertical:
답글삭제// collect statistics
VerticalIntensityStatistics vis = new VerticalIntensityStatistics( sourceImage );
// get gray histogram (for grayscale image)
Histogram histogram = vis.Gray;
// output some histogram's information
System.Diagnostics.Debug.WriteLine( "Mean = " + histogram.Mean );
System.Diagnostics.Debug.WriteLine( "Min = " + histogram.Min );
System.Diagnostics.Debug.WriteLine( "Max = " + histogram.Max );