mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-29 08:34:48 +08:00
Merge branch 'dev' of https://github.com/p-leroy/q3DMASC into dev
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ if (INSTALL_Q3DMASC_PLUGIN)
|
||||
project( Q3DMASC_PLUGIN )
|
||||
|
||||
AddPlugin( NAME ${PROJECT_NAME} )
|
||||
set(Q3DMASC_PLUGIN_VERSION "0.2")
|
||||
set(Q3DMASC_PLUGIN_VERSION "0.3+")
|
||||
|
||||
include( CMakePolicies NO_POLICY_SCOPE )
|
||||
|
||||
|
||||
@@ -304,9 +304,9 @@ bool NeighborhoodFeature::computeValue(CCCoreLib::DgmOctree::NeighboursSet& poin
|
||||
minZ = maxZ = pointsInNeighbourhood[0].point->z;
|
||||
for (size_t i = 1; i < kNN; ++i)
|
||||
{
|
||||
if (minZ < pointsInNeighbourhood[i].point->z)
|
||||
if (minZ > pointsInNeighbourhood[i].point->z)
|
||||
minZ = pointsInNeighbourhood[i].point->z;
|
||||
else if (maxZ > pointsInNeighbourhood[i].point->z)
|
||||
else if (maxZ < pointsInNeighbourhood[i].point->z)
|
||||
maxZ = pointsInNeighbourhood[i].point->z;
|
||||
}
|
||||
|
||||
|
||||
@@ -275,7 +275,8 @@ bool Classifier::classify( const Feature::Source::Set& featureSources,
|
||||
QCoreApplication::processEvents();
|
||||
}
|
||||
|
||||
ConfusionMatrix *confusionMatrix = new ConfusionMatrix(*classifSFBackup, *classificationSF);
|
||||
if (classifSFBackup != nullptr)
|
||||
ConfusionMatrix *confusionMatrix = new ConfusionMatrix(*classifSFBackup, *classificationSF);
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
+3
-3
@@ -687,8 +687,8 @@ bool Tools::LoadFile( const QString& filename,
|
||||
{
|
||||
loadParameters.alwaysDisplayLoadDialog = true;
|
||||
loadParameters.shiftHandlingMode = ccGlobalShiftManager::DIALOG_IF_NECESSARY;
|
||||
loadParameters._coordinatesShift = &loadCoordinatesShift;
|
||||
loadParameters._coordinatesShiftEnabled = &loadCoordinatesTransEnabled;
|
||||
loadParameters._coordinatesShift = &loadCoordinatesShift;
|
||||
loadParameters._coordinatesShiftEnabled = &loadCoordinatesTransEnabled;
|
||||
loadParameters.parentWidget = parent;
|
||||
FileIOFilter::ResetSesionCounter();
|
||||
}
|
||||
@@ -1137,7 +1137,7 @@ bool Tools::PrepareFeatures(const CorePoints& corePoints, Feature::Set& features
|
||||
for (int i = 0; i < static_cast<int>(pointCount); ++i)
|
||||
{
|
||||
//spherical neighborhood extraction structure
|
||||
CCCoreLib::DgmOctree::NearestNeighboursSearchStruct nNSS;
|
||||
CCCoreLib::DgmOctree::NearestNeighboursSearchStruct nNSS;
|
||||
{
|
||||
nNSS.level = octreeLevel;
|
||||
nNSS.queryPoint = *corePoints.cloud->getPoint(i);
|
||||
|
||||
Reference in New Issue
Block a user