ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
qRANSAC_SD.cpp File Reference
#include "qRANSAC_SD.h"
#include "qRANSAC_SD_Commands.h"
#include <ConePrimitiveShape.h>
#include <ConePrimitiveShapeConstructor.h>
#include <CylinderPrimitiveShape.h>
#include <CylinderPrimitiveShapeConstructor.h>
#include <PlanePrimitiveShape.h>
#include <PlanePrimitiveShapeConstructor.h>
#include <RansacShapeDetector.h>
#include <SpherePrimitiveShape.h>
#include <SpherePrimitiveShapeConstructor.h>
#include <TorusPrimitiveShape.h>
#include <TorusPrimitiveShapeConstructor.h>
#include "ccRansacSDDlg.h"
#include <QApplication>
#include <QMainWindow>
#include <QProgressDialog>
#include <QtConcurrentRun>
#include <QtGui>
#include <CVPlatform.h>
#include <ScalarField.h>
#include <ecvCone.h>
#include <ecvCylinder.h>
#include <ecvGenericMesh.h>
#include <ecvGenericPointCloud.h>
#include <ecvPlane.h>
#include <ecvPointCloud.h>
#include <ecvSphere.h>
#include <ecvTorus.h>
#include <algorithm>
#include <time.h>
Include dependency graph for qRANSAC_SD.cpp:

Go to the source code of this file.

Functions

void doDetection ()
 

Variables

static ecvMainAppInterfaces_app = nullptr
 
static MiscLib::Vector< std::pair< MiscLib::RefCountPtr< PrimitiveShape >, size_t > > * s_shapes
 
static size_t s_remainingPoints = 0
 
static RansacShapeDetector * s_detector = nullptr
 
static ransac::RansacPointCloud * s_cloud = nullptr
 
static unsigned s_supportPoints
 
static double s_maxNormalDev_deg
 
static double s_proba = 0.75
 
static bool s_primEnabled [5] = {true, true, true, false, false}
 
static float s_minRadius
 
static float s_maxRadius
 
static bool s_randomColor = true
 

Function Documentation

◆ doDetection()

void doDetection ( )

Definition at line 99 of file qRANSAC_SD.cpp.

References s_cloud, s_detector, s_remainingPoints, and s_shapes.

Variable Documentation

◆ s_app

ecvMainAppInterface* s_app = nullptr
static

Definition at line 57 of file qRANSAC_SD.cpp.

◆ s_cloud

ransac::RansacPointCloud* s_cloud = nullptr
static

Definition at line 98 of file qRANSAC_SD.cpp.

Referenced by doDetection().

◆ s_detector

RansacShapeDetector* s_detector = nullptr
static

Definition at line 97 of file qRANSAC_SD.cpp.

Referenced by doDetection().

◆ s_maxNormalDev_deg

double s_maxNormalDev_deg
static
Initial value:
=
25.0

Definition at line 109 of file qRANSAC_SD.cpp.

Referenced by qRansacSD::doAction().

◆ s_maxRadius

float s_maxRadius
static
Initial value:
=
0.5f

Definition at line 117 of file qRANSAC_SD.cpp.

Referenced by qRansacSD::doAction().

◆ s_minRadius

float s_minRadius
static
Initial value:
=
0.001f

Definition at line 115 of file qRANSAC_SD.cpp.

Referenced by qRansacSD::doAction().

◆ s_primEnabled

bool s_primEnabled[5] = {true, true, true, false, false}
static

Definition at line 113 of file qRANSAC_SD.cpp.

Referenced by qRansacSD::doAction().

◆ s_proba

double s_proba = 0.75
static

Definition at line 111 of file qRANSAC_SD.cpp.

Referenced by qRansacSD::doAction().

◆ s_randomColor

bool s_randomColor = true
static

Definition at line 119 of file qRANSAC_SD.cpp.

Referenced by qRansacSD::doAction().

◆ s_remainingPoints

size_t s_remainingPoints = 0
static

Definition at line 96 of file qRANSAC_SD.cpp.

Referenced by doDetection().

◆ s_shapes

MiscLib::Vector<std::pair<MiscLib::RefCountPtr<PrimitiveShape>, size_t> >* s_shapes
static

Definition at line 95 of file qRANSAC_SD.cpp.

Referenced by doDetection().

◆ s_supportPoints

unsigned s_supportPoints
static
Initial value:
=
500

Definition at line 107 of file qRANSAC_SD.cpp.

Referenced by qRansacSD::doAction().