mirror of
https://github.com/dgirardeau/q3DMASC.git
synced 2026-08-30 09:00:50 +08:00
Neighborhood features added (WIP)
This commit is contained in:
@@ -26,3 +26,20 @@ bool ContextBasedFeature::prepare( const CorePoints& corePoints,
|
||||
//TODO
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ContextBasedFeature::checkValidity(QString &error) const
|
||||
{
|
||||
if (!Feature::checkValidity(error))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
unsigned char cloudCount = (cloud1 ? (cloud2 ? 2 : 1) : 0);
|
||||
if (cloudCount < 2)
|
||||
{
|
||||
error = "at least two clouds are required to compute context-based features";
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user