Minor changes in the modules interface to support modules that just return values

This commit is contained in:
jfmcarreira committed 2014-06-25 02:21:37 +01:00
1 parent ab0e63132c
commit 655d2c8aa1
7 files changed
+8 -18

No files matched your search

+3 -4
View File
@@ -39,8 +39,9 @@ namespace plaYUVer
enum // Module type
{
FRAME_LEVEL_MODULE,
VIDEO_LEVEL_MODULE,
FRAME_PROCESSING_MODULE,
VIDEO_PROCESSING_MODULE,
FRAME_MEASUREMENT_MODULE,
};
#define APPLY_WHILE_PLAYING true
@@ -132,8 +133,6 @@ public:
virtual Void destroy() { }
//PlaYUVerFrame* getProcessedFrame() { return m_pcProcessedFrame; }
Void setModuleDefinition( PlaYUVerModuleDefinition def ) { m_cModuleDef = def; }
protected:
+1 -1
View File
@@ -32,7 +32,7 @@ namespace plaYUVer
static PlaYUVerModuleDefinition DisparityStereoVarDef =
{
FRAME_LEVEL_MODULE,
FRAME_PROCESSING_MODULE,
"Disparity",
"StereoVar",
"Measure the disparity between two images using the Stereo Var method (OpenCV)",
+1 -1
View File
@@ -31,7 +31,7 @@ namespace plaYUVer
{
PlaYUVerModuleDefinition FilterFrameDef = {
FRAME_LEVEL_MODULE, // Apply module to the frames or to the whole sequence.
FRAME_PROCESSING_MODULE, // Apply module to the frames or to the whole sequence.
// Currently only support for frame
"Filters", // Category (sub-menu)
"Y_Filter", // Name
-4
View File
@@ -53,10 +53,6 @@ public:
PlaYUVerFrame* process( PlaYUVerFrame* InputFrame );
Void destroy();
PlaYUVerFrame* getModImage()
{
return m_pcFilteredFrame;
}
};
} // NAMESPACE
+1 -1
View File
@@ -32,7 +32,7 @@ namespace plaYUVer
static PlaYUVerModuleDefinition FrameDifferenceDef =
{
FRAME_LEVEL_MODULE,
FRAME_PROCESSING_MODULE,
"Measurements",
"AbsoluteFrameDifference",
"Measure the difference between two images (Y plane), e. g., abs( Y1 - Y2 )",
+2 -2
View File
@@ -32,8 +32,8 @@ namespace plaYUVer
static PlaYUVerModuleDefinition MeasurePSNRDef =
{
FRAME_LEVEL_MODULE,
"Measurements",
FRAME_MEASUREMENT_MODULE,
"Quality",
"PSNR",
"Measure the PSNR between two images",
MODULE_REQUIRES_TWO_FRAMES,
-5
View File
@@ -41,7 +41,6 @@ namespace plaYUVer
class MeasurePSNR: public PlaYUVerModuleIf
{
private:
PlaYUVerFrame* m_pcFilteredFrame;
public:
MeasurePSNR();
@@ -54,10 +53,6 @@ public:
PlaYUVerFrame* process( PlaYUVerFrame* InputFrame );
Void destroy();
PlaYUVerFrame* getModImage()
{
return m_pcFilteredFrame;
}
};
} // NAMESPACE