From 9af4efc098768e35f0694dcf04221055c4fac675 Mon Sep 17 00:00:00 2001
From: Ludovic Hussonnois <ludovic.hussonnois@c-s.fr>
Date: Fri, 17 Feb 2017 14:36:41 +0100
Subject: [PATCH] ENH: Add new otbTrainImagesClustering CompositeApplication.

Use inheritance with otbTrainImagesBase to create unsupervised
composite application.
---
 .../app/otbTrainImagesClustering.cxx          | 22 +++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 Modules/Applications/AppClassification/app/otbTrainImagesClustering.cxx

diff --git a/Modules/Applications/AppClassification/app/otbTrainImagesClustering.cxx b/Modules/Applications/AppClassification/app/otbTrainImagesClustering.cxx
new file mode 100644
index 0000000000..fed5b0775a
--- /dev/null
+++ b/Modules/Applications/AppClassification/app/otbTrainImagesClustering.cxx
@@ -0,0 +1,22 @@
+#include "otbTrainImagesBase.h"
+
+namespace otb
+{
+namespace Wrapper
+{
+
+class TrainImagesClustering : public TrainImagesBase<false>
+{
+public:
+  typedef TrainImagesClustering         Self;
+  typedef TrainImagesBase<false>        Superclass;
+  typedef itk::SmartPointer<Self>       Pointer;
+  typedef itk::SmartPointer<const Self> ConstPointer;
+  itkNewMacro( Self )
+  itkTypeMacro( Self, Superclass )
+};
+
+}
+}
+
+OTB_APPLICATION_EXPORT( otb::Wrapper::TrainImagesClustering )
\ No newline at end of file
-- 
GitLab