Re-format code
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
|
||||
/**
|
||||
* \file DisparityStereoBM.cpp
|
||||
* \brief Measure the disparity between two images using the Stereo Var method (OpenCV)
|
||||
* \brief Measure the disparity between two images using the Stereo Var
|
||||
* method (OpenCV)
|
||||
*/
|
||||
|
||||
#include "DisparityStereoBM.h"
|
||||
@@ -31,9 +32,12 @@ DisparityStereoBM::DisparityStereoBM()
|
||||
m_iModuleType = FRAME_PROCESSING_MODULE;
|
||||
m_pchModuleCategory = "Stereo";
|
||||
m_pchModuleName = "Disparity-BM";
|
||||
m_pchModuleTooltip = "Measure the disparity between two images using the Stereo BM method (OpenCV)";
|
||||
m_pchModuleTooltip =
|
||||
"Measure the disparity between two images using the "
|
||||
"Stereo BM method (OpenCV)";
|
||||
m_uiNumberOfFrames = MODULE_REQUIRES_TWO_FRAMES;
|
||||
m_uiModuleRequirements = MODULE_REQUIRES_SKIP_WHILE_PLAY | MODULE_REQUIRES_NEW_WINDOW | MODULE_REQUIRES_OPTIONS;
|
||||
m_uiModuleRequirements =
|
||||
MODULE_REQUIRES_SKIP_WHILE_PLAY | MODULE_REQUIRES_NEW_WINDOW | MODULE_REQUIRES_OPTIONS;
|
||||
|
||||
m_cModuleOptions.addOptions() /**/
|
||||
( "block_size", m_uiBlockSize, "Block Size (positive odd number) [9]" );
|
||||
@@ -45,8 +49,8 @@ DisparityStereoBM::DisparityStereoBM()
|
||||
Bool DisparityStereoBM::create( std::vector<PlaYUVerFrame*> apcFrameList )
|
||||
{
|
||||
_BASIC_MODULE_API_2_CHECK_
|
||||
m_pcDisparityFrame =
|
||||
new PlaYUVerFrame( apcFrameList[0]->getWidth(), apcFrameList[0]->getHeight(), PlaYUVerFrame::GRAY );
|
||||
m_pcDisparityFrame = new PlaYUVerFrame( apcFrameList[0]->getWidth(), apcFrameList[0]->getHeight(),
|
||||
PlaYUVerFrame::GRAY );
|
||||
if( ( m_uiBlockSize % 2 ) == 0 )
|
||||
{
|
||||
m_uiBlockSize++;
|
||||
|
||||
Reference in New Issue
Block a user