【发布时间】:2013-11-17 14:07:57
【问题描述】:
如何实现低通滤波器,我有:
BufferedImage img;
int width = img.getWidth();
int height = img.getHeight();
int L = (int) (f * Math.min(width, height));
for (int y = 0 ; y < height ; y++) {
for (int x = 0 ; x < width ; x++) {
if (x >= width / 2 - L && x <= width / 2 + L && y >= -L + height / 2 && y <= L + height / 2) {
img.setRGB(x, y, 0);
}
else {}
}
}
但首先我应该转换图像,但如何?
【问题讨论】:
标签: java image-processing filter fft