Jump to content
  • Advertisement
Sign in to follow this  
Nodger

Low Pass image filter

This topic is 5142 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am interested in learning how to program a low-pass image filter like the one in photoshop. Can anyone recommend some good tutorials on how to do this?

Share this post


Link to post
Share on other sites
Advertisement
Not necessarily. You could subtract the blurred image from the original if you need a high-shelf pass.

FFT does give more flexibility to band-pass algorithms, though.

Share this post


Link to post
Share on other sites
Take the image, do the low-pass (gaussian blur), subtract the blurred version from the original version. Bingo: high pass.

Share this post


Link to post
Share on other sites
Thanks for that advise. Is that the fastest way?

oh and what do you mean by subtract? EG if the original version has a black pixel and the corresponding pixel on the blurred version is dark gray?

Share this post


Link to post
Share on other sites
If you choose to use the blur-subtract method, be sure to do so in signed number space, and normalize the result to 0...1 space after the operation, since the result may well be negative. Photoshop's high pass filter, for example, normalizes so that 50% gray is the "empty" band color by adding [0.5, 0.5, 0.5] (but this could be controlled very easily with another bias factor during normalizing).

Laplacian matrix is indeed equivalent to the blur-subtract method described here, and is actually faster since the core operation needs only one step (and the bias as needed).

Share this post


Link to post
Share on other sites
Ok, this "LaPlacian Mask" sounds like the way to go... Can anyone suggest any good URLs with tuts for this?

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!