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 );

댓글

  1. 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 );

    답글삭제

댓글 쓰기

이 블로그의 인기 게시물

Draw Circle on PictureBox when Button Click - Winform

2D FFT of Gray Image by AForge