I have a 256x256 noisy image and I want to find threshold value of elements on the middle row and column in 3x3 window and then sliding this window all over the image pixel by pixel and do the same.
I do this work by 2 way : graythresh and one file exchange, but I get in both an error! can any one help me to solve this?
here is my code :
Shot_noise = imnoise(I, "salt & pepper", 0.10);
im= padarray(noisy_image, [k k],'replicate');
when I use graythresh it returns this error
and for imthresh function it returns this error :