Reputation: 6883
Does anybody know algorithm similar to Photoshop High Pass filter? I'm using this one. But it looks different and just "cut" low signal and i want to leave only high and low signals without middle.
I know that i should to use convolution, but actually i don't know how to do that properly.
Any suggestions?
Upvotes: 1
Views: 473
Reputation: 2941
Maybe just take mean value of sum of highpass and lowpass filters outputs. It will give You combination of low and high frequency in very easy way. Matlab-like pseudocode below:
img_low = low_pass(img)
img_hight = high_pass(img)
img_lo_hi = (img_low + img_high) / 2
Upvotes: 1