<p>Depending on the specific content of your input images, you could either use the Gaussian filter with kernel size varying with distance from the camera ( <a href="https://en.wikipedia.org/wiki/Spatial_anti-aliasing" rel="nofollow noreferrer">Link</a> ) or use a slightly more complex <a href="http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html" rel="nofollow noreferrer">bilateral filter</a>, which is widely used to eliminate noise while keeping edges mostly intact.</p>

CC BY-SA 3.0
2017-07-11T13:34:38.400Z
2017-07-11T13:34:38.400Z
Michal Kučera
<p>I am trying to reduce aliasing in an image using some filters. I tried the Gaussian variant of filters to remove the said high frequency patterns in the image, but I feel it's a bit too much of a blur. </p>

<p>I need a filter that can help me do some kind of anti-aliasing without doing too much blur. </p>

<p>I have searched a lot and unfortunately the results are not fruitful.</p>

CC BY-SA 3.0
2017-07-10T20:26:09.630Z
What are you requirements? Gaussian kernels are designed to blur without artifacts. A different kernel that blurs but isn't Gaussian is the box filter. It will produce artifacts however. I suppose more importantly, why isn't Gaussian good enough?
ChaoSXDemon
CC BY-SA 3.0
2017-07-11T11:07:24.513Z
What kind of aliasing is present? Is it a synthetic image with staircasing/jaggies? Is it a texture with spurious low-frequency components (like a high-frequency grating or checkerboard)? Is it a photo that's been badly upscaled?
Dan Hulme
CC BY-SA 3.0
2017-07-11T11:22:44.190Z
The image consist of Jaggies mostly ... like for instance, i have an image filled with Grass and I want to make sure that the grass blades are not too blurred.
Varun Vijaykumar
CC BY-SA 3.0
2017-07-15T00:34:15.260Z
a sinc filter can downsample "perfectly" such that any details that would cause aliasing are removed, while other details are left perfectly alone.
https://en.wikipedia.org/wiki/Sinc_filter
Alan Wolfe
<image-processing><image><antialiasing><filtering>
How can I remove aliasing in an image without introducing blur?
Varun Vijaykumar
# How can I remove aliasing in an image without introducing blur?

(Asked by: username_0 on 2017-07-10)

I am trying to reduce aliasing in an image using some filters. I tried the Gaussian variant of filters to remove the said high frequency patterns in the image, but I feel it's a bit too much of a blur.

I need a filter that can help me do some kind of anti-aliasing without doing too much blur.

I have searched a lot and unfortunately the results are not fruitful.

**Tags:** image-processing, image, antialiasing, filtering

> **Comments:**
> **username_1**: What are you requirements? Gaussian kernels are designed to blur without artifacts. A different kernel that blurs but isn't Gaussian is the box filter. It will produce artifacts however. I suppose more importantly, why isn't Gaussian good enough?  
> **username_2**: What kind of aliasing is present? Is it a synthetic image with staircasing/jaggies? Is it a texture with spurious low-frequency components (like a high-frequency grating or checkerboard)? Is it a photo that's been badly upscaled?  
> **username_0**: The image consist of Jaggies mostly ... like for instance, i have an image filled with Grass and I want to make sure that the grass blades are not too blurred.  
> **username_3**: a sinc filter can downsample "perfectly" such that any details that would cause aliasing are removed, while other details are left perfectly alone. https://en.wikipedia.org/wiki/Sinc_filter  

---

## 1 answers

### Answer by username_4 on 2017-07-11. Score: 0 | Accepted answer

Depending on the specific content of your input images, you could either use the Gaussian filter with kernel size varying with distance from the camera ( [Link](https://en.wikipedia.org/wiki/Spatial_anti-aliasing) ) or use a slightly more complex [bilateral filter](http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/MANDUCHI1/Bilateral_Filtering.html), which is widely used to eliminate noise while keeping edges mostly intact.


---

