Is it possible to implement the following in MATLAB?

前端 未结 1 626
温柔的废话
温柔的废话 2021-01-29 08:02

Given an image of 5x5 by I(i, j) = |4-i-j| when i,j = 0,1,2,3,4.

and the following Prewitt operator :

               { {-1, 0, 1},
                 {-1,         


        
1条回答
  •  闹比i
    闹比i (楼主)
    2021-01-29 08:42

    There are multiple ways to do this:

    • Write your own convolution function
    • Use imgradient
    • Use imfilter
    • Use conv2

    0 讨论(0)
提交回复
热议问题