Page 39 of 52

Re: HDR -> SDR tonemapping

Posted: Mon Jul 09, 2018 2:16 pm
by admin
You're welcome. But please, whenever you say "issues like this" don't assume we know what you are talking about. Tell it in words too. I look at your last image and think "umm, OK, what issue?". Context is completely lacking.

I'll try to guess. You are thinking there are hue shifts there leading to a blocking effect. Hard to say without the source. But, yes, it can happen to any RGB color if the individual channels get different scalings from the tonemapping.

Re: HDR -> SDR tonemapping

Posted: Mon Jul 09, 2018 3:07 pm
by Narkyy
Yes sorry, there's mostly visible blocking around vivid/deep colors.

Re: HDR -> SDR tonemapping

Posted: Mon Jul 09, 2018 3:38 pm
by admin
Got it, thanks. Keep that sample, I'm going to ask you for it later. ;)

Re: HDR -> SDR tonemapping

Posted: Mon Jul 09, 2018 4:24 pm
by admin
Ha, I don't even have to go to CIELAB and back (which is expensive). I can do it directly in linear RGB space. Find the max of R, G, and B. Then tonemap that max one and apply the resulting scaling to all three. It's also faster than tonemapping all three individually, although for CUDA the actual kernel time is small compared to the frame transfer time, so it's a moot point.

Re: HDR -> SDR tonemapping

Posted: Mon Jul 09, 2018 4:35 pm
by gonca
Sounds like you are just flying thru it now

Re: HDR -> SDR tonemapping

Posted: Mon Jul 09, 2018 4:43 pm
by admin
It's working in my head. :lol:

Actually, I tested that one frame by just multiplying the RGB by 0.2 for the whole frame (because the largest RGB component is ~5.0) and the bright area looks great with no blocking or hue shift and more detail than madVR. So when I put the proper nonlinear function in place everything should look great. However, many a drop is spilt twixt cup and mouth. Or:

But, Mousie, thou art no thy lane,
In proving foresight may be vain;
The best laid schemes o' Mice an' Men,
Gang aft agley,
An' lea'e us nought but grief an' pain,
For promis'd joy!

-- "To A Mouse" by Robert Burns

Re: HDR -> SDR tonemapping

Posted: Mon Jul 09, 2018 5:37 pm
by gonca
So, what you are so eloquently saying is that poop happens

Re: HDR -> SDR tonemapping

Posted: Mon Jul 09, 2018 8:56 pm
by admin
Or, maybe, don't count the chickens before they hatch.

Re: HDR -> SDR tonemapping

Posted: Tue Jul 10, 2018 8:00 am
by Beta
Hi guys!

Is anyone here who can help to me fix this issue?
The source is HEVC
Thank You!

Image

Re: HDR -> SDR tonemapping

Posted: Tue Jul 10, 2018 10:08 am
by admin
Looks like an AVSPMOD issue (AVSPMOD not using Avisynth+?). Try to open your script in VirtualDub2 and report the result. Note that these filters require Avisynth+.