MATLAB中imfilter和fspecial函数用法

1、imfilter

  • N-D filtering of multidimensional image
  • B = imfilter(A,h)

    B = imfilter(A,h,options,...)
     

    B = imfilter(A,h) filters the multidimensional array A with the multidimensional filter h and returns the result in B.

    You optionally can filter a multidimensional array with a 2-D filter using a GPU (requires Parallel Computing Toolbox™). For more information, see Image Processing on a GPU
    B = imfilter(A,h,options,...) performs multidimensional filtering according to one or more specified options.
     

    parameters
    A— Image to be filtered

    numeric array

    Image to be filtered, specified as a numeric array of any class and dimension.

    Data Types: single | double | int8 | int16 | int32 | uint8 | uint16 | uint32 | logica

    h— Multidimensional filter

    N-D array of data type double

    Multidimensional filter, specified as an N-D array of data type double.

    To perform the image filtering using a GPU, specify h as a vector or 2-D matrix of data type double.

    Data Types: double

    扫描二维码关注公众号,回复: 5749114 查看本文章

    options — Options that control the filtering operation
    character vector | string scalar | numeric scalar

    Options that control the filtering operation, specified as a character vector, string scalar, or numeric scalar. The following table lists all supported options.

    B—Output Arguments

    numeric array

    Filtered image, returned as a numeric array of the same size and class as the input image, A.

猜你喜欢

转载自blog.csdn.net/u012785169/article/details/88956883