// int size = reduceImages.length;
PyramidAlgorithm pyramid = new PyramidAlgorithm();
expandImages = pyramid.getLaplacianPyramid(reduceImages);
// expandImages = pyramid.pyramidUp(reduceImages);
repaint();
} else {
}
} else if(event.getActionCommand().equals("Pyramid Down")) {
// a.Smooth the image with Gaussian filter 5×5(1/4-a/2, 1/4, a, 1/4, 1/4-a/2) a = [0.3,0.6]
// c.If reached desired size stop, else send the result to step 1
PyramidAlgorithm pyramid = new PyramidAlgorithm();
reduceImages = pyramid.pyramidDown(sourceImage, 3);
repaint();
} else {
// do nothing
}
}
}