/usr/include/CLAM/FrameTransformation.hxx is in libclam-dev 1.4.0-6.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | #ifndef _FrameTransformation_
#define _FrameTransformation_
#include "Processing.hxx"
#include "InControl.hxx"
#include "FrameTransformationConfig.hxx"
namespace CLAM
{
class Frame;
class FrameTransformation : public Processing
{
public:
FrameTransformation()
: mAmount("Amount", this) //soon to be deprecated
{
}
virtual bool Do(const Frame& in,Frame& out) = 0;
const ProcessingConfig& GetConfig() const { return mConfig; }
virtual bool ConcreteStart(){ return InitControls();}
/** Virtual function to override when needing to give different default values to the controls*/
virtual bool InitControls()
{
mAmount.DoControl(0.);
return true;
}
protected:
FrameTransformationConfig mConfig;
FloatInControl mAmount; //soon to be deprecated
};
//@todo: could also add ports here
template <typename T>
class FrameTransformationTmpl : public FrameTransformation
{
public:
virtual bool Do(const T&, T&) = 0;
};
} // namespace CLAM
#endif
|