diff --git a/Testing/Code/OBIA/otbStreamingVectorizedSegmentationOGR.cxx b/Testing/Code/OBIA/otbStreamingVectorizedSegmentationOGR.cxx
index 94d3df363a45cd45f08f3273b076cac5e44db15d..6b62e0393b2ee1eaae7ab1ceccd0e324fc155f61 100644
--- a/Testing/Code/OBIA/otbStreamingVectorizedSegmentationOGR.cxx
+++ b/Testing/Code/OBIA/otbStreamingVectorizedSegmentationOGR.cxx
@@ -50,6 +50,14 @@ int otbStreamingVectorizedSegmentationOGRNew(int argc, char * argv[])
 
 int otbStreamingVectorizedSegmentationOGR(int argc, char * argv[])
 {
+
+  if (argc != 4)
+    {
+      std::cerr << "Usage: " << argv[0];
+      std::cerr << " inputImage outputVec TileDimension" << std::endl;
+      return EXIT_FAILURE;
+    }
+
   const unsigned int spatialRadius = 9;
   const unsigned int spectralRadius = 9;
   const double spectralbandwidth = 50;