GPUImage2 icon indicating copy to clipboard operation
GPUImage2 copied to clipboard

I use BilateralBlur no effect

Open chengkaizone opened this issue 6 years ago • 2 comments

I use BilateralFilter, but did not find the effect, GPUImage (OC) works well, I think it has a bug

chengkaizone avatar Jan 18 '18 05:01 chengkaizone

@BradLarson I use BilateralBlur to change parameters distanceNormalizationFactor did not change significantly, but I use GPUImage (OC) GPUImageBilateralFilter has changed significantly, I think it has some errors and hope to get fixes

Thank you!

chengkaizone avatar Jan 18 '18 10:01 chengkaizone

As I can see problem is that the weight should get smaller as the colors become more different, but it seems like they're too different in nearby pixels, so often weight doesn't make any impact.

I solved it by auto-generating shaders as Gaussian blur does with using downsamplingFactor and it made it work, here is gist. Unfortunately downsamplingFactor pixelate images/videos a lot and produce weird effects.

In GPUImage we were using texelSpacingMultiplier to increase blur radius, so I think it can work here too, do we have it analog in current implementation of GPUImage2? Or maybe we have other ways do increase bilateral radius?

@BradLarson I would really appreciate if you would shed light where to go next to fix this issue

ChernyshenkoTaras avatar Jul 03 '19 07:07 ChernyshenkoTaras