Permalink
Browse files

rename MOD_SPEC_ANGLE to SPECTRAL_ANGLE

more intuitive, but users need to be aware
  • Loading branch information...
ypnos committed Dec 29, 2015
1 parent a57323c commit b59767c9374180c1ed0e5702c41350d520860722
Showing with 6 additions and 6 deletions.
  1. +1 −1 gui/widgets/graphsegwidget.cpp
  2. +2 −2 rgb/rgb.cpp
  3. +2 −2 similarity_measures/sm_config.h
  4. +1 −1 similarity_measures/sm_factory.h
@@ -25,7 +25,7 @@ void GraphSegWidget::initUi(AutohideView *view)
similarityBox->addItem("Euclidean distance (L2)", EUCLIDEAN);
similarityBox->addItem(QString::fromUtf8("Chebyshev distance (L∞)"),
CHEBYSHEV);
- similarityBox->addItem("Spectral Angle", MOD_SPEC_ANGLE);
+ similarityBox->addItem("Spectral Angle", SPECTRAL_ANGLE);
similarityBox->addItem("Spectral Information Divergence",
SPEC_INF_DIV);
similarityBox->addItem("SID+SAM I", SIDSAM1);
View
@@ -264,8 +264,8 @@ void RGBDisplay::printShortHelp() const {
void RGBDisplay::printHelp() const {
std::cout << "RGB image creation (true-color or false-color)" << std::endl;
std::cout << std::endl;
- std::cout << "XYZ does a true-color image creation using a standard white balancing.\n"
- "PCA and SOM do false-coloring.\"";
+ std::cout << "XYZ creates a true-color image using a standard white balancing.\n"
+ "PCA and SOM perform false-coloring.";
std::cout << std::endl;
}
@@ -26,15 +26,15 @@ enum measure {
MANHATTAN,
EUCLIDEAN,
CHEBYSHEV,
- MOD_SPEC_ANGLE,
+ SPECTRAL_ANGLE,
SPEC_INF_DIV,
SIDSAM1,
SIDSAM2,
NORM_L2
};
#define similarity_measures_measureString \
{"MANHATTAN", "EUCLIDEAN", "CHEBYSHEV", \
- "MOD_SPEC_ANGLE", "SPEC_INF_DIV", "SIDSAM1", "SIDSAM2", "NORM_L2"}
+ "SPECTRAL_ANGLE", "SPEC_INF_DIV", "SIDSAM1", "SIDSAM2", "NORM_L2"}
class SMConfig: public Config {
public:
@@ -23,7 +23,7 @@ class SMFactory {
return new LNorm<T>(cv::NORM_L2);
case CHEBYSHEV:
return new LNorm<T>(cv::NORM_INF);
- case MOD_SPEC_ANGLE:
+ case SPECTRAL_ANGLE:
return new ModifiedSpectralAngleSimilarity<T>();
case SPEC_INF_DIV:
return new SpectralInformationDivergence<T>();

0 comments on commit b59767c

Please sign in to comment.