Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color inaccurate under low bitdepth like 8 bit (obvious under mutliple passes) #1

Closed
dtlnor opened this issue Jun 11, 2023 · 1 comment

Comments

@dtlnor
Copy link

dtlnor commented Jun 11, 2023

platform: Win10, VS-C
version: V3

By comparing the following output, for multiple passes boxblur.

src8.std.BoxBlur(planes=[0,1,2],hradius=1,vradius=1,hpasses=3,vpasses=3).set_output(1)

pass1 = muf.BoxFilter(src8, radius=2)
pass2 = muf.BoxFilter(pass1, radius=2)
pass3 = muf.BoxFilter(pass2, radius=2)
pass3.set_output(2)

src8.box.Blur(planes=[0,1,2],hradius=1,vradius=1,hpasses=3,vpasses=3).set_output(3)

pass1 = src8.box.Blur(planes=[0,1,2],hradius=1,vradius=1,hpasses=1,vpasses=1)
pass2 = pass1.box.Blur(planes=[0,1,2],hradius=1,vradius=1,hpasses=1,vpasses=1)
pass3 = pass2.box.Blur(planes=[0,1,2],hradius=1,vradius=1,hpasses=1,vpasses=1)
pass3.set_output(4)

https://slow.pics/c/NV0vNwAA

the color looks a bit red in general for output 3 and 4 using box.Blur

@WolframRhodium
Copy link
Collaborator

Thanks!

@dtlnor dtlnor closed this as completed Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants