Skip to content
Snippets Groups Projects
Commit 980c9e92 authored by Julien Michel's avatar Julien Michel
Browse files

ENH: Moving and renaming Classification/otbLabeledImageColorMapping to...

ENH: Moving and renaming Classification/otbLabeledImageColorMapping to Utils/otbColorMapping since it now gathers the three color mapping algorithms from OTB
parent e253bce7
No related branches found
No related tags found
No related merge requests found
......@@ -16,9 +16,4 @@ OTB_CREATE_APPLICATION(NAME TrainSVMImagesClassifier
OTB_CREATE_APPLICATION(NAME ValidateSVMImagesClassifier
SOURCES otbValidateSVMImagesClassifier.cxx
LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters;OTBFeatureExtraction;OTBLearning)
OTB_CREATE_APPLICATION(NAME LabeledImageColorMapping
SOURCES otbLabeledImageColorMapping.cxx
LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters;OTBFeatureExtraction)
\ No newline at end of file
LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters;OTBFeatureExtraction;OTBLearning)
......@@ -70,3 +70,7 @@ OTB_CREATE_APPLICATION(NAME DEMConvert
OTB_CREATE_APPLICATION(NAME Quicklook
SOURCES otbQuicklook.cxx
LINK_LIBRARIES OTBBasicFilters)
OTB_CREATE_APPLICATION(NAME ColorMapping
SOURCES otbColorMapping.cxx
LINK_LIBRARIES OTBIO;OTBCommon;OTBBasicFilters;OTBFeatureExtraction)
......@@ -32,11 +32,11 @@ namespace otb
namespace Wrapper
{
class LabeledImageColorMapping: public Application
class ColorMapping: public Application
{
public:
/** Standard class typedefs. */
typedef LabeledImageColorMapping Self;
typedef ColorMapping Self;
typedef Application Superclass;
typedef itk::SmartPointer<Self> Pointer;
typedef itk::SmartPointer<const Self> ConstPointer;
......@@ -44,7 +44,7 @@ public:
/** Standard macro */
itkNewMacro(Self);
itkTypeMacro(LabeledImageColorMapping, otb::Application);
itkTypeMacro(ColorMapping, otb::Application);
typedef FloatImageType::PixelType PixelType;
typedef UInt16ImageType LabelImageType;
......@@ -69,7 +69,7 @@ public:
<PixelType, RGBPixelType> ReliefColorMapFunctorType;
private:
LabeledImageColorMapping()
ColorMapping()
{
SetName("ColorMapping");
SetDescription("Maps an input grayscale image into 8-bits RGB using look-up tables.");
......@@ -79,7 +79,7 @@ private:
SetDocLimitations("None");
SetDocAuthors("OTB-Team");
SetDocSeeAlso(" ");
SetDocCLExample("otbApplicationLauncherCommandLine LabeledImageColorMapping --in ${OTBAPP_BASELINE}/clLabeledImageQB123_1.tif --ct ${OTB-Data}/Input/Classification/ColorTable.txt --out clLabeledFancyImageQB123_1.tif");
SetDocCLExample("otbApplicationLauncherCommandLine ColorMapping --in ${OTBAPP_BASELINE}/clLabeledImageQB123_1.tif --ct ${OTB-Data}/Input/Classification/ColorTable.txt --out clLabeledFancyImageQB123_1.tif");
AddDocTag(Tags::Learning);
// Build lut map
......@@ -100,7 +100,7 @@ private:
m_LutMap["OverUnder"]=ColorMapFilterType::OverUnder;
}
virtual ~LabeledImageColorMapping()
virtual ~ColorMapping()
{
}
......@@ -274,6 +274,6 @@ private:
}
}
OTB_APPLICATION_EXPORT(otb::Wrapper::LabeledImageColorMapping)
OTB_APPLICATION_EXPORT(otb::Wrapper::ColorMapping)
......@@ -155,9 +155,10 @@ SET_TESTS_PROPERTIES(apTvClImageSVMClassifierQB123_1 PROPERTIES DEPENDS apTvClTr
OTB_TEST_APPLICATION(NAME apTvClLabeledImageColorMappingQB123_1
APP LabeledImageColorMapping
OPTIONS --in ${TEMP}/clLabeledImageQB123_1.tif
--ct ${INPUTDATA}/Classification/ColorTable.txt
APP ColorMapping
OPTIONS --in ${TEMP}/clLabeledImageQB123_1.tif
--method custom
--method.custom.lut ${INPUTDATA}/Classification/ColorTable.txt
--out ${TEMP}/clLabeledFancyImageQB123_1.tif
VALID --compare-image ${NOTOL}
${OTBAPP_BASELINE}/clLabeledFancyImageQB123_1.tif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment