AForge.Imaging.Filters.Erosion.Erosion C# (CSharp) Метод

Erosion() публичный Метод

Initializes a new instance of the Erosion class.

Structuring elemement for the erosion morphological operator must be square matrix with odd size in the range of [3, 99].

Invalid size of structuring element.
public Erosion ( short se ) : System
se short Structuring element.
Результат System
        public Erosion( short[,] se )
            : this( )
        {
            int s = se.GetLength( 0 );

            // check structuring element size
            if ( ( s != se.GetLength( 1 ) ) || ( s < 3 ) || ( s > 99 ) || ( s % 2 == 0 ) )
                throw new ArgumentException( "Invalid size of structuring element." );

            this.se = se;
            this.size = s;
        }

Same methods

Erosion::Erosion ( ) : System