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

Something is terribly wrong with the sigmoid function #66

Closed
NSQY opened this issue Feb 13, 2023 · 0 comments
Closed

Something is terribly wrong with the sigmoid function #66

NSQY opened this issue Feb 13, 2023 · 0 comments

Comments

@NSQY
Copy link

NSQY commented Feb 13, 2023

resample_auto vs resample_manual:
https://slow.pics/c/rW8Qhc00

iew sigmoid vs fmtc sigmoid:
https://slow.pics/c/dP6VTNan

from vstools import vs, core, depth, Transfer
from vsscale.scale import SSIM
from vsscale.gamma import gamma2linear

img = core.imwri.Read('foo.png')
img = depth(img, 32)

rwidth, rheight = (178, 240)

resample_auto = SSIM(
    curve=Transfer.BT709, sigmoid=True
    ).scale(img, width=rwidth, height=rheight)

linear = img.fmtc.transfer(
    transs='709', transd='sigmoid', sig_t=0.5, sig_c=6.5)
resample = SSIM().scale(
    linear, width=rwidth, height=rheight)
resample_manual = resample.fmtc.transfer(
    transs='sigmoid', transd='709', sig_t=0.5, sig_c=6.5)


iew = gamma2linear(
    img, curve=Transfer.BT709, sigmoid=True, thr=0.5, cont=6.5
    )

fmtc = core.fmtc.transfer(
    img, transs='709', transd='sigmoid', sig_t=0.5, sig_c=6.5
    )

96184357_p0

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