Example #1
0
 /// <summary>
 /// <para>(Accord .NET internal call)</para>
 /// In image processing, a Gabor filter, named after Dennis Gabor, is a linear
 /// filter used for edge detection. Frequency and orientation representations
 /// of Gabor filters are similar to those of the human visual system, and they
 /// have been found to be particularly appropriate for texture representation
 /// and discrimination. In the spatial domain, a 2D Gabor filter is a Gaussian
 /// kernel function modulated by a sinusoidal plane wave. The Gabor filters are
 /// self-similar: all filters can be generated from one mother wavelet by dilation
 /// and rotation.
 /// </summary>
 /// <param name="img">Image.</param>
 /// <param name="gaborFilter">Gabor filter instance.
 /// <para>To avoid caclulating Gabor every time use this function overload that receives instance.</para>
 /// </param>
 /// <returns>Filtered image.</returns>
 public static Image <Gray, byte> GaborFilter(this Image <Gray, byte> img, GaborFilter gaborFilter)
 {
     return(GaborFilterExtensionsBase.GaborFilter(img, gaborFilter));
 }
Example #2
0
 /// <summary>
 /// <para>(Accord .NET internal call)</para>
 /// In image processing, a Gabor filter, named after Dennis Gabor, is a linear
 /// filter used for edge detection. Frequency and orientation representations
 /// of Gabor filters are similar to those of the human visual system, and they
 /// have been found to be particularly appropriate for texture representation
 /// and discrimination. In the spatial domain, a 2D Gabor filter is a Gaussian
 /// kernel function modulated by a sinusoidal plane wave. The Gabor filters are
 /// self-similar: all filters can be generated from one mother wavelet by dilation
 /// and rotation.
 /// </summary>
 /// <param name="img">Image.</param>
 /// <param name="size">The size of the filter</param>
 /// <param name="sigma">The Gaussian variance for the filter.</param>
 /// <param name="theta">The orientation for the filter, in radians.</param>
 /// <param name="lambda">The wavelength for the filter.</param>
 /// <param name="gamma">The aspect ratio for the filter.</param>
 /// <param name="psi">The phase offset for the filter.</param>
 /// <returns>Filtered image.</returns>
 public static Image <Gray, byte> GaborFilter(this Image <Gray, byte> img, int size = 3, double sigma = 2, double theta = 0.6, double lambda = 4.0, double gamma = 0.3, double psi = 1.0)
 {
     return(GaborFilterExtensionsBase.GaborFilter(img, size, sigma, theta, lambda, gamma, psi));
 }