cnn_setenv

mCNN.TemGroup='temlib_plus';

pic = lbmp2cnn('peppers.bmp');

mCNN.INPUT1 = 1.* pic;
mCNN.INPUT2 = 1.* pic;
mCNN.STATE  = 1.* pic;

loadtem('MEDIAN');
mCNN.Boundary=2;
mCNN.TimeStep=0.02;
mCNN.IterNum=100;
runtem;

% show result
subplot(131); cnnshow(mCNN.INPUT1);
title('Input')
subplot(132); cnnshow(mCNN.INPUT1);
title('Initial')
subplot(133); cnnshow(mCNN.OUTPUT);
title('Result')