Skip to content

Commit 765e47f

Browse files
authored
POL5610 3d glszm (PolusAI#250)
1 parent 4cc7524 commit 765e47f

File tree

9 files changed

+917
-31
lines changed

9 files changed

+917
-31
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ 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_glszm.cpp
170171
src/nyx/features/3d_glrlm.cpp
171172
src/nyx/features/3d_glrlm_nontriv.cpp
172173
src/nyx/features/intensity.cpp

src/nyx/env_features.cpp

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@
3333
#include "features/ngldm.h"
3434
#include "features/ngtdm.h"
3535
#include "features/3d_glcm.h"
36+
#include "features/3d_gldzm.h"
37+
#include "features/3d_glszm.h"
3638
#include "features/roi_radius.h"
3739
#include "helpers/helpers.h"
3840
#include "helpers/system_resource.h"
@@ -434,14 +436,17 @@ bool Environment::expand_3D_featuregroup (const std::string& s)
434436
#endif
435437
};
436438

437-
theFeatureSet.enableFeatures(F);
439+
theFeatureSet.enableFeatures (F);
440+
theFeatureSet.enableFeatures (D3_GLCM_feature::featureset);
441+
theFeatureSet.enableFeatures (D3_GLDZM_feature::featureset);
442+
theFeatureSet.enableFeatures (D3_GLSZM_feature::featureset);
443+
438444
return true;
439445
}
440446

441447
if (s == Nyxus::theFeatureSet.findGroupNameByCode(Fgroup3D::FG3_GLCM))
442448
{
443449
theFeatureSet.enableAll (false);
444-
445450
theFeatureSet.enableFeatures (D3_GLCM_feature::featureset);
446451
return true;
447452
}
@@ -518,34 +523,18 @@ bool Environment::expand_3D_featuregroup (const std::string& s)
518523
}
519524
if (s == Nyxus::theFeatureSet.findGroupNameByCode(Fgroup3D::FG3_GLDZM))
520525
{
521-
theFeatureSet.enableAll(false);
522-
523-
auto F =
524-
{
525-
Feature3D::GLDZM_SDE,
526-
Feature3D::GLDZM_LDE,
527-
Feature3D::GLDZM_LGLZE,
528-
Feature3D::GLDZM_HGLZE,
529-
Feature3D::GLDZM_SDLGLE,
530-
Feature3D::GLDZM_SDHGLE,
531-
Feature3D::GLDZM_LDLGLE,
532-
Feature3D::GLDZM_LDHGLE,
533-
Feature3D::GLDZM_GLNU,
534-
Feature3D::GLDZM_GLNUN,
535-
Feature3D::GLDZM_ZDNU,
536-
Feature3D::GLDZM_ZDNUN,
537-
Feature3D::GLDZM_ZP,
538-
Feature3D::GLDZM_GLM,
539-
Feature3D::GLDZM_GLV,
540-
Feature3D::GLDZM_ZDM,
541-
Feature3D::GLDZM_ZDV,
542-
Feature3D::GLDZM_ZDE
543-
};
544-
545-
theFeatureSet.enableFeatures(F);
526+
theFeatureSet.enableAll (false);
527+
theFeatureSet.enableFeatures (D3_GLDZM_feature::featureset);
546528
return true;
547529
}
548530

531+
if (s == Nyxus::theFeatureSet.findGroupNameByCode(Fgroup3D::FG3_GLSZM))
532+
{
533+
theFeatureSet.enableAll (false);
534+
theFeatureSet.enableFeatures (D3_GLSZM_feature::featureset);
535+
return true;
536+
}
537+
549538
if (s == Nyxus::theFeatureSet.findGroupNameByCode(Fgroup3D::FG3_GLRLM))
550539
{
551540
theFeatureSet.enableAll(false);
@@ -590,6 +579,7 @@ bool Environment::expand_3D_featuregroup (const std::string& s)
590579
theFeatureSet.enableFeatures(F);
591580
return true;
592581
}
582+
593583
return false;
594584
}
595585

src/nyx/feature_mgr_init.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#include "features/3d_intensity.h"
3232
#include "features/3d_glcm.h"
3333
#include "features/3d_gldzm.h"
34+
#include "features/3d_glszm.h"
3435
#include "features/3d_glrlm.h"
3536

3637
#include "features/focus_score.h"
@@ -75,6 +76,7 @@ FeatureManager::FeatureManager()
7576
register_feature (new D3_PixelIntensityFeatures());
7677
register_feature (new D3_GLCM_feature());
7778
register_feature (new D3_GLDZM_feature());
79+
register_feature (new D3_GLSZM_feature());
7880
register_feature (new D3_GLRLM_feature());
7981

8082
// image quality

0 commit comments

Comments
 (0)