有谁知道Photoshop里面的高反差保留的算法如何实现?请给我个例子,什么语言的都可以,或者说明原理也可以,我不是要Photoshop的操作,我要是的高反差保留的算法机理,用拉普拉斯算子实现也可以

解决方案 »

  1.   

    http://topic.csdn.net/t/20031009/12/2336471.html
      

  2.   

    其实就是高通滤波 HIGH PASS。
    http://stackoverflow.com/questions/35530/what-are-high-pass-and-low-pass-filters
    下面是一维的参考:
    double[] signal = (some 1d signal);
    // Do FFT:
    double[] real;
    double[] imag;
    [real, imag] = fft(signal)// Set the first quarter of the real part to zero to attenuate the low frequencies
    for (int i=0; i < real.Length / 4; i++) 
      real[i] = 0;// Do inverse FFT:
    double[] highfrequencysignal = inversefft(real, imag);