Skip to content

Commit

Permalink
fix premult by alpha output
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesangus committed Jan 3, 2019
1 parent ba09e6e commit 76f2d82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/DeepCMWrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void DeepCMWrapper::top_knobs(Knob_Callback f)
"presumably store position data (and all other data) premultiplied, "
"as required by the Deep spec.");
Input_ChannelSet_knob(f, &_processChannelSet, 0, "output");
Bool_knob(f, &_premultOutput, "premult_output", "premult output");
Bool_knob(f, &_unpremult, "unpremult", "(un)premult by alpha");
Tooltip(f, "If, for some reason, you want your mask stored without "
"premultipling it, contrary to the Deep spec, uncheck this. "
"Should probably always be checked.");
Expand Down
4 changes: 1 addition & 3 deletions src/DeepCMWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ class DeepCMWrapper : public DeepCWrapper
// can override in child classes to change the name of the aux channel knob
const char* _auxChannelKnobName;

// ChannelSet _processChannelSet;
ChannelSet _auxiliaryChannelSet;
bool _premultOutput;
bool _unpremultPosition;

int _operation;
Expand All @@ -35,7 +33,7 @@ class DeepCMWrapper : public DeepCWrapper
DeepCMWrapper(Node* node) : DeepCWrapper(node)
, _auxChannelKnobName("input_data")
, _auxiliaryChannelSet(Chan_Black)
, _premultOutput(true)
// , _premultOutput(true)
, _unpremultPosition(true)
, _operation(0)
{
Expand Down

0 comments on commit 76f2d82

Please sign in to comment.