Given a portion of Binary image; ((x,y), with Is referring to thewhite pixels and Os referring to black pixels. The structural element h(xy) is alsogiven. The rule for the resulting center pixel is:g(x, y) = 1iffI'm=-1 Ene-1 f(a + m, y + n) h (m,n) > 2Draw the resulting image g(,y). [2 Bonus points if you can also remove border effect]No MATLAB function can be used in solving this question!