Skip to content

Commit 76f2d82

Browse files
committed
fix premult by alpha output
1 parent ba09e6e commit 76f2d82

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/DeepCMWrapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ void DeepCMWrapper::top_knobs(Knob_Callback f)
8585
"presumably store position data (and all other data) premultiplied, "
8686
"as required by the Deep spec.");
8787
Input_ChannelSet_knob(f, &_processChannelSet, 0, "output");
88-
Bool_knob(f, &_premultOutput, "premult_output", "premult output");
88+
Bool_knob(f, &_unpremult, "unpremult", "(un)premult by alpha");
8989
Tooltip(f, "If, for some reason, you want your mask stored without "
9090
"premultipling it, contrary to the Deep spec, uncheck this. "
9191
"Should probably always be checked.");

src/DeepCMWrapper.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ class DeepCMWrapper : public DeepCWrapper
2323
// can override in child classes to change the name of the aux channel knob
2424
const char* _auxChannelKnobName;
2525

26-
// ChannelSet _processChannelSet;
2726
ChannelSet _auxiliaryChannelSet;
28-
bool _premultOutput;
2927
bool _unpremultPosition;
3028

3129
int _operation;
@@ -35,7 +33,7 @@ class DeepCMWrapper : public DeepCWrapper
3533
DeepCMWrapper(Node* node) : DeepCWrapper(node)
3634
, _auxChannelKnobName("input_data")
3735
, _auxiliaryChannelSet(Chan_Black)
38-
, _premultOutput(true)
36+
// , _premultOutput(true)
3937
, _unpremultPosition(true)
4038
, _operation(0)
4139
{

0 commit comments

Comments
 (0)