]> Creatis software - clitk.git/blobdiff - tools/clitkImageGradientMagnitude.cxx
gradient magnitude tool
[clitk.git] / tools / clitkImageGradientMagnitude.cxx
diff --git a/tools/clitkImageGradientMagnitude.cxx b/tools/clitkImageGradientMagnitude.cxx
new file mode 100644 (file)
index 0000000..7371bf0
--- /dev/null
@@ -0,0 +1,50 @@
+/*=========================================================================
+  Program:   vv                     http://www.creatis.insa-lyon.fr/rio/vv
+
+  Authors belong to:
+  - University of LYON              http://www.universite-lyon.fr/
+  - Léon Bérard cancer center       http://www.centreleonberard.fr
+  - CREATIS CNRS laboratory         http://www.creatis.insa-lyon.fr
+
+  This software is distributed WITHOUT ANY WARRANTY; without even
+  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+  PURPOSE.  See the copyright notices for more information.
+
+  It is distributed under dual licence
+
+  - BSD        See included LICENSE.txt file
+  - CeCILL-B   http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
+===========================================================================**/
+
+/* =================================================
+ * @file   clitkImageGradientMagnitudeGenericFilter.txx
+ * @author xxx <xxx@creatis.insa-lyon.fr>
+ * @date   29 June 2029
+ *
+ * @brief ImageGradientMagnitude an image
+ *
+ ===================================================*/
+
+// clitk
+#include "clitkImageGradientMagnitude_ggo.h"
+#include "clitkImageGradientMagnitudeGenericFilter.h"
+
+//--------------------------------------------------------------------
+int main(int argc, char * argv[])
+{
+
+  // Init command line
+  GGO(clitkImageGradientMagnitude, args_info);
+  CLITK_INIT;
+
+  // Filter
+  typedef clitk::ImageGradientMagnitudeGenericFilter<args_info_clitkImageGradientMagnitude> FilterType;
+  FilterType::Pointer filter = FilterType::New();
+
+  filter->SetArgsInfo(args_info);
+  filter->Update();
+
+  return EXIT_SUCCESS;
+}// end main
+
+//--------------------------------------------------------------------