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

Chromakey fix for pre-multiplied Alpha #643

Merged
merged 2 commits into from Mar 12, 2021

Conversation

jonoomph
Copy link
Member

Each channel must be updated, vs just the alpha value. This is a result of the alpha value already multiplied into the R,G,B, so this leaves behind darker pixels and artifacts, if we don't zero all these pixels out.

@codecov
Copy link

codecov bot commented Mar 12, 2021

Codecov Report

Merging #643 (6b845c0) into develop (c08dc9c) will increase coverage by 1.09%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #643      +/-   ##
===========================================
+ Coverage    51.54%   52.64%   +1.09%     
===========================================
  Files          151      130      -21     
  Lines        12228    10698    -1530     
===========================================
- Hits          6303     5632     -671     
+ Misses        5925     5066     -859     
Impacted Files Coverage Δ
src/effects/ChromaKey.cpp 0.00% <0.00%> (ø)
src/QtImageReader.cpp 73.98% <0.00%> (-0.21%) ⬇️
src/Clip.cpp 42.07% <0.00%> (-0.16%) ⬇️
src/EffectInfo.cpp 0.00% <0.00%> (ø)
src/ChunkWriter.cpp 0.00% <0.00%> (ø)
tests/Frame_Tests.cpp 100.00% <0.00%> (ø)
src/effects/Deinterlace.cpp 0.00% <0.00%> (ø)
src/CVObjectDetection.h
src/effects/Stabilizer.h
tests/CVTracker_Tests.cpp
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c08dc9c...6b845c0. Read the comment docs.

@jonoomph jonoomph merged commit 691fc83 into develop Mar 12, 2021
@jonoomph jonoomph deleted the fix-chromakey-premultiplied-alpha branch March 12, 2021 21:25
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

Successfully merging this pull request may close these issues.

None yet

1 participant