示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="PrewittFilterOperation" /> class.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="target">The target.</param>
 /// <param name="parameters">The parameters.</param>
 /// <exception cref="System.ArgumentNullException">
 /// The source is null.
 /// or
 /// The method is null.
 /// or
 /// The method requires parameters which are not specified.
 /// </exception>
 /// <exception cref="System.ArgumentException">
 /// The parameters do not contain a required parameter value.
 /// or
 /// The type of a parameter does not match the type specified by the method.
 /// or
 /// The value of a parameter is not within the expected range.
 /// or
 /// The specified source and result are the same objects, but the method does not support in-place operations.
 /// </exception>
 public PrewittFilterOperation(ISpectralGeometry source, ISpectralGeometry target, IDictionary <OperationParameter, Object> parameters)
     : base(source, target, SpectralOperationMethods.PrewittFilter, parameters)
 {
     AddFilter(FilterFactory.CreatePrewittHorizontalFilter());
     AddFilter(FilterFactory.CreatePrewittVerticalFilter());
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DiscreteLaplaceFilterOperation" /> class.
 /// </summary>
 /// <param name="source">The source.</param>
 /// <param name="target">The target.</param>
 /// <param name="parameters">The parameters.</param>
 /// <exception cref="System.ArgumentNullException">
 /// The source is null.
 /// or
 /// The method requires parameters which are not specified.</exception>
 /// <exception cref="System.ArgumentException">The parameters do not contain a required parameter value.
 /// or
 /// The type of a parameter does not match the type specified by the method.
 /// or
 /// The value of a parameter is not within the expected range.
 /// or
 /// The specified source and result are the same objects, but the method does not support in-place operations.
 /// </exception>
 public DiscreteLaplaceFilterOperation(ISpectralGeometry source, ISpectralGeometry target, IDictionary <OperationParameter, Object> parameters)
     : base(source, target, SpectralOperationMethods.DiscreteLaplaceFilter, parameters)
 {
     AddFilter(FilterFactory.CreateDiscreteLaplaceFilter());
 }