function [] = demo1DNoiseFilter();

close all;
index = 75;
I = imread('cameraman.tif');
plot(I(index,:))
t = [1 1 1 1 1];
se = strel('arbitrary', t);
hold on

iO = imopen(I(index,:), se);
plot(iO, 'r')
iOC = imclose(iO,se);
plot(iOC,'g');
 