algorithm for the surface blur filter in photoshop

Posted on 2011-10-21
Last Modified: 2012-05-12
I was wondering if there were any examples of how to implement the surface blur filter in photoshop.

This is the description:

Surface Blur Blurs an image while preserving edges. This filter is useful for creating special effects and for removing noise or graininess. The Radius option specifies the size of the area sampled for the blur. The Threshold option controls how much the tonal values of neighboring pixels must diverge from the center pixel value before being part of the blur. Pixels with tonal value differences less than the Threshold value are excluded from the blur.

Question by:hbiz
    LVL 82

    Expert Comment

    by:Dave Baldwin
    You might be able to find it in the source code for GIMP which is open source.
    LVL 37

    Accepted Solution

    You basically just described the entire process. What else do you need to know?
    A simple way to do a blur is to make a pixel equal to the average of neighborhood of pixels around it. The size of that neighborhood is that radius parameter.

    Then all you need to do is ignore edges. If the tone changes significantly, then it's an edge so don't change the pixel to the average of the neighborhood.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Close a session in php after 10 minutes 2 266
    Calculate only first half of IFFT 6 122
    For loop in 15 min increments 6 188
    SLAM on Windows 8 166
    One of Google's most recent algorithm changes affecting local searches is entitled "The Pigeon Update." This update has dramatically enhanced search inquires for the keyword "Yelp." Google searches with the word "Yelp" included will now yield Yelp a…
    Article by: Nadia
    Suppose you use Uber application as a rider and you request a ride to go from one place to another. Your driver just arrived at the parking lot of your place. The only thing you know about the ride is the license plate number. How do you find your U…
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now