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

Different coloring than in the paper,.. #9

Open
Selur opened this issue Nov 28, 2020 · 1 comment
Open

Different coloring than in the paper,.. #9

Selur opened this issue Nov 28, 2020 · 1 comment

Comments

@Selur
Copy link

Selur commented Nov 28, 2020

I'm trying to reproduce the results from the paper, but using using http://mcl.korea.ac.kr/projects/dehazing/results/horse.jpg from http://mcl.korea.ac.kr/projects/dehazing/ and:

# Imports
import vapoursynth as vs
core = vs.get_core()
#loading filter
core.std.LoadPlugin(path="I:/Hybrid/64bit/vsfilters/MiscFilter/DeHazing/DehazingCE.dll")
# loading source
clip = core.imwri.Read(["C:/Users/Selur/Desktop/horses.jpg"])
clip = core.std.Loop(clip=clip, times=100)
clip = core.std.AssumeFPS(clip=clip, fpsnum=25, fpsden=1)
before = clip
# applying filter
clip = core.dhce.Dehazing(src=clip,lamda=8)
# comparing results
before = core.text.Text(before, "Before")
clip = core.text.Text(clip, "After")
clip = core.std.Interleave([before,clip])
clip.set_output()

I got totally different coloring than in the paper (http://mcl.korea.ac.kr/projects/dehazing/results/horse_8.jpg).
Adding some auto white (http://www.vapoursynth.com/doc/functions/frameeval.html) and boosting the saturation, I get similar results, but the color are still way more blue instead of green.

Is this a missing feature, a bug or am I missing something?

I just tested with the city image you posted to the description of the filter, there the colors seem fine.

@Kiyamou
Copy link
Owner

Kiyamou commented Dec 6, 2020

Indeed, there are similar situations when I code. I guess it is a bug.

Maybe I need some time to find the reasons.

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