图像处理之高斯金字塔 (三)

2014-11-24 10:41:14 · 作者: · 浏览: 2
ages != null) {
// 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]
// b.Sub sample the image by half - 选择偶数行与列
// 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
}

}

}