Skip to content

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
friskluft committed Dec 27, 2024
1 parent e47e56e commit 79d7016
Show file tree
Hide file tree
Showing 10 changed files with 919 additions and 32 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ set(SOURCE
src/nyx/features/3d_gldzm.cpp
src/nyx/features/3d_glcm.cpp
src/nyx/features/3d_glcm_nontriv.cpp
src/nyx/features/3d_glszm.cpp
src/nyx/features/3d_glszm_nontriv.cpp
src/nyx/features/intensity.cpp
src/nyx/features/neighbors.cpp
src/nyx/features/ngldm.cpp
Expand Down
43 changes: 16 additions & 27 deletions src/nyx/env_features.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
#include "features/ngldm.h"
#include "features/ngtdm.h"
#include "features/3d_glcm.h"
#include "features/3d_gldzm.h"
#include "features/3d_glszm.h"
#include "features/roi_radius.h"
#include "helpers/helpers.h"
#include "helpers/system_resource.h"
Expand Down Expand Up @@ -434,48 +436,35 @@ bool Environment::expand_3D_featuregroup (const std::string& s)
#endif
};

theFeatureSet.enableFeatures(F);
theFeatureSet.enableFeatures (F);
theFeatureSet.enableFeatures (D3_GLCM_feature::featureset);
theFeatureSet.enableFeatures (D3_GLDZM_feature::featureset);
theFeatureSet.enableFeatures (D3_GLSZM_feature::featureset);

return true;
}

if (s == Nyxus::theFeatureSet.findGroupNameByCode(Fgroup3D::FG3_GLCM))
{
theFeatureSet.enableAll (false);

theFeatureSet.enableFeatures (D3_GLCM_feature::featureset);
return true;
}

if (s == Nyxus::theFeatureSet.findGroupNameByCode(Fgroup3D::FG3_GLDZM))
{
theFeatureSet.enableAll(false);

auto F =
{
Feature3D::GLDZM_SDE,
Feature3D::GLDZM_LDE,
Feature3D::GLDZM_LGLZE,
Feature3D::GLDZM_HGLZE,
Feature3D::GLDZM_SDLGLE,
Feature3D::GLDZM_SDHGLE,
Feature3D::GLDZM_LDLGLE,
Feature3D::GLDZM_LDHGLE,
Feature3D::GLDZM_GLNU,
Feature3D::GLDZM_GLNUN,
Feature3D::GLDZM_ZDNU,
Feature3D::GLDZM_ZDNUN,
Feature3D::GLDZM_ZP,
Feature3D::GLDZM_GLM,
Feature3D::GLDZM_GLV,
Feature3D::GLDZM_ZDM,
Feature3D::GLDZM_ZDV,
Feature3D::GLDZM_ZDE
};

theFeatureSet.enableFeatures(F);
theFeatureSet.enableAll (false);
theFeatureSet.enableFeatures (D3_GLDZM_feature::featureset);
return true;
}

if (s == Nyxus::theFeatureSet.findGroupNameByCode(Fgroup3D::FG3_GLSZM))
{
theFeatureSet.enableAll (false);
theFeatureSet.enableFeatures (D3_GLSZM_feature::featureset);
return true;
}

return false;
}

Expand Down
2 changes: 2 additions & 0 deletions src/nyx/feature_mgr_init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#include "features/3d_intensity.h"
#include "features/3d_glcm.h"
#include "features/3d_gldzm.h"
#include "features/3d_glszm.h"

#include "features/focus_score.h"
#include "features/power_spectrum.h"
Expand Down Expand Up @@ -74,6 +75,7 @@ FeatureManager::FeatureManager()
register_feature (new D3_PixelIntensityFeatures());
register_feature (new D3_GLCM_feature());
register_feature (new D3_GLDZM_feature());
register_feature (new D3_GLSZM_feature());

// image quality
register_feature (new FocusScoreFeature());
Expand Down
Loading

0 comments on commit 79d7016

Please sign in to comment.