function g = open2(input, filter)

image2 = erode(input, filter);
g = dilate(image2, filter);

end