Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6685651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:04:53+00:00 2026-05-26T05:04:53+00:00

I´m trying to make an implementation of Gaussian blur for a school project. I

  • 0

I´m trying to make an implementation of Gaussian blur for a school project.
I need to make both a CPU and a GPU implementation to compare performance.

I am not quite sure that I understand how Gaussian blur works. So one of my questions is
if I have understood it correctly?

Heres what I do now:
I use the equation from wikipedia http://en.wikipedia.org/wiki/Gaussian_blur to calculate
the filter.
For 2d I take RGB of each pixel in the image and apply the filter to it by
multiplying RGB of the pixel and the surrounding pixels with the associated filter position.
These are then summed to be the new pixel RGB values.
For 1d I apply the filter first horizontally and then vetically, which should give
the same result if I understand things correctly.
Is this result exactly the same result as when the 2d filter is applied?

Another question I have is about how the algorithm can be optimized.
I have read that the Fast Fourier Transform is applicable to Gaussian blur.
But I can’t figure out how to relate it.
Can someone give me a hint in the right direction?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:04:53+00:00Added an answer on May 26, 2026 at 5:04 am

    Yes, the 2D Gaussian kernel is separable so you can just apply it as two 1D kernels. Note that you can’t apply these operations “in place” however – you need at least one temporary buffer to store the result of the first 1D pass.

    FFT-based convolution is a useful optimisation when you have large kernels – this applies to any kind of filter, not just Gaussian. Just how big “large” is depends on your architecture, but you probably don’t want to worry about using an FFT-based approach for anything smaller than, say, a 49×49 kernel. The general approach is:

    • FFT the image
    • FFT the kernel, padded to the size of the image
    • multiply the two in the frequency domain (equivalent to convolution in the spatial domain)
    • IFFT (inverse FFT) the result

    Note that if you’re applying the same filter to more than one image then you only need to FFT the padded kernel once. You still have at least two FFTs to perform per image though (one forward and one inverse), which is why this technique only becomes a computational win for large-ish kernels.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a Java implementation of the Park-Miller-Carta PRNG random number
I am trying make long screen to vertical direction. So, I need a screen
Trying to make a small countdown timer in my app but it's not working.
I am currently trying to make an implementation of the encryption scheme DES but
Hi I am trying to make some changes to our implementation of CKEDITOR 3.6.2
I am trying to make a remove method that works on an array implementation
I'm trying to make a balance_bst(bstNode root) function, but i'm struggling with the implementation.
I'm working on an amateur JVM implementation, and I'm trying to make sure I
I am trying to make a sort of enum. Here is my implementation: #
I'm trying to make sure that my implementation of ObjC multithreading is proper when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.