I want to create matrix 3×3 kernel for evaluate of each kernel in image
for i = 2:r
for j = 2:c K = IY(((i-1):(i+1)),((j-1):(j+1))); center = IY(i,j); B(i,j) = std2(K);endend
Index exceeds matrix dimensions.
Error in test2 (line 23)
K = IYdouble(((i-1):(i+1)),((j-1):(j+1)));
Could you show me an example please thank you
Best Answer