Skip to content

Commit 923706a

Browse files
friskluftsameeul
andauthored
initial (PolusAI#251)
Co-authored-by: Sameeul Bashir Samee <[email protected]>
1 parent 765e47f commit 923706a

File tree

12 files changed

+2009
-3
lines changed

12 files changed

+2009
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ set(SOURCE
167167
src/nyx/features/3d_gldzm.cpp
168168
src/nyx/features/3d_glcm.cpp
169169
src/nyx/features/3d_glcm_nontriv.cpp
170+
src/nyx/features/3d_gldm.cpp
171+
src/nyx/features/3d_ngldm.cpp
172+
src/nyx/features/3d_ngtdm.cpp
170173
src/nyx/features/3d_glszm.cpp
171174
src/nyx/features/3d_glrlm.cpp
172175
src/nyx/features/3d_glrlm_nontriv.cpp

src/nyx/env_features.cpp

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333
#include "features/ngldm.h"
3434
#include "features/ngtdm.h"
3535
#include "features/3d_glcm.h"
36+
#include "features/3d_gldm.h"
37+
#include "features/3d_ngldm.h"
38+
#include "features/3d_ngtdm.h"
3639
#include "features/3d_gldzm.h"
3740
#include "features/3d_glszm.h"
3841
#include "features/roi_radius.h"
@@ -451,6 +454,27 @@ bool Environment::expand_3D_featuregroup (const std::string& s)
451454
return true;
452455
}
453456

457+
if (s == Nyxus::theFeatureSet.findGroupNameByCode (Fgroup3D::FG3_GLDM))
458+
{
459+
theFeatureSet.enableAll (false);
460+
theFeatureSet.enableFeatures (D3_GLDM_feature::featureset);
461+
return true;
462+
}
463+
464+
if (s == Nyxus::theFeatureSet.findGroupNameByCode (Fgroup3D::FG3_NGLDM))
465+
{
466+
theFeatureSet.enableAll (false);
467+
theFeatureSet.enableFeatures (D3_NGLDM_feature::featureset);
468+
return true;
469+
}
470+
471+
if (s == Nyxus::theFeatureSet.findGroupNameByCode (Fgroup3D::FG3_NGTDM))
472+
{
473+
theFeatureSet.enableAll (false);
474+
theFeatureSet.enableFeatures (D3_NGTDM_feature::featureset);
475+
return true;
476+
}
477+
454478
if (s == Nyxus::theFeatureSet.findGroupNameByCode(Fgroup3D::FG3_GLCM))
455479
{
456480
theFeatureSet.enableAll (false);
@@ -521,6 +545,7 @@ bool Environment::expand_3D_featuregroup (const std::string& s)
521545
theFeatureSet.enableFeatures(F);
522546
return true;
523547
}
548+
524549
if (s == Nyxus::theFeatureSet.findGroupNameByCode(Fgroup3D::FG3_GLDZM))
525550
{
526551
theFeatureSet.enableAll (false);

src/nyx/feature_mgr_init.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030

3131
#include "features/3d_intensity.h"
3232
#include "features/3d_glcm.h"
33+
#include "features/3d_gldm.h"
3334
#include "features/3d_gldzm.h"
35+
#include "features/3d_ngldm.h"
36+
#include "features/3d_ngtdm.h"
3437
#include "features/3d_glszm.h"
3538
#include "features/3d_glrlm.h"
3639

@@ -75,7 +78,10 @@ FeatureManager::FeatureManager()
7578
// 3D
7679
register_feature (new D3_PixelIntensityFeatures());
7780
register_feature (new D3_GLCM_feature());
81+
register_feature (new D3_GLDM_feature());
7882
register_feature (new D3_GLDZM_feature());
83+
register_feature (new D3_NGLDM_feature());
84+
register_feature (new D3_NGTDM_feature());
7985
register_feature (new D3_GLSZM_feature());
8086
register_feature (new D3_GLRLM_feature());
8187

0 commit comments

Comments
 (0)