I need to have grayscale image and develop a program that applies the filters given below to that grayscale image. I implemented following code but not sure if it is ok or not?
grayImage = imread("cameramanImage.tiff");h = [ 2 -1 -1 -1 2 -1 -1 -1 2 ]; im_outFirst = filter2(h, grayImage);
Best Answer