1 #include "bbPackRecalageTransparencyBox.h"
2 #include "bbPackRecalagePackage.h"
3 namespace bbPackRecalage
6 BBTK_ADD_BLACK_BOX_TO_PACKAGE(PackRecalage,TransparencyBox)
7 BBTK_BLACK_BOX_IMPLEMENTATION(TransparencyBox,bbtk::AtomicBlackBox);
8 void TransparencyBox::Process()
10 transparency->setImage1(bbGetInputIn1());
11 transparency->setImage2(bbGetInputIn2());
12 transparency->setPercent(bbGetInputPercent());
13 transparency->calculateImage();
15 bbSetOutputOut(transparency->getImage());
17 void TransparencyBox::bbUserSetDefaultValues()
21 bbSetInputPercent(-1);
24 void TransparencyBox::bbUserInitializeProcessing()
26 transparency = new Transparency();
28 void TransparencyBox::bbUserFinalizeProcessing()
31 // THE FINALIZATION METHOD BODY :
33 // but this is where you should desallocate the internal/output pointers
38 // EO namespace bbPackRecalage