Color smoothing algorithmhttp://forum.devmaster.net/t/color-smoothing-algorithm/23106
I have some textures at 256x256 and each pixels have a different color from which, if you smooth the grains, it produces a pattern. Think of it as a photograph taken at night with a 1000 ISO film, which is very grainy. So I want to get rid of the grain while still keeping the overall details. I could use Gaussian blur, but the edges becomes darker, so if I tile the texture, I get a big seem! Does anyone have some recommendations as to how I should approach this? Thanks! (pressing the Enter key does not work in this message editor!!??)
Sat, 30 Mar 2013 17:35:13 +0000graphicsColor smoothing algorithmno-reply@example.com (@Alienizer Alienizer)@Alienizer wrote:

A bilateral filter can work in RGB space just as well as XYZ. And I don't know any reason it couldn't work with HDR float values too. It measures the "distance" between the colors of two pixels to determine how much weight to give in the filter, and you can certainly measure distance between HDR colors. Although it might be visually better to take the log-luminance of the HDR floats before calculating the distance (just a guess).

A bilateral filter can work in RGB space just as well as XYZ. And I don't know any reason it couldn't work with HDR float values too. It measures the "distance" between the colors of two pixels to determine how much weight to give in the filter, and you can certainly measure distance between HDR colors. Although it might be visually better to take the log-luminance of the HDR floats before calculating the distance (just a guess).

Seems like the filter I need, thanks. But it seems that I have to convert the rgb values to xyz then to lab (CIE-Lab color space), and the rgb values need to be 0.255. Is there a way to use hdr float values?

I have some textures at 256x256 and each pixels have a different color from which, if you smooth the grains, it produces a pattern. Think of it as a photograph taken at night with a 1000 ISO film, which is very grainy. So I want to get rid of the grain while still keeping the overall details. I could use Gaussian blur, but the edges becomes darker, so if I tile the texture, I get a big seem! Does anyone have some recommendations as to how I should approach this? Thanks! (pressing the Enter key does not work in this message editor!!??)