diff --git a/Utils/otbVectorDataExtractROIApplication.cxx b/Utils/otbVectorDataExtractROIApplication.cxx
index c94d1f0cd993bc77ccdf8a80390927d8e0d2ef7b..8f5e21c57b0529c5ceba21487e4d02833cf8b7d0 100644
--- a/Utils/otbVectorDataExtractROIApplication.cxx
+++ b/Utils/otbVectorDataExtractROIApplication.cxx
@@ -124,8 +124,8 @@ int VectorDataExtractROIApplication::Execute(otb::ApplicationOptionsResult* pars
   RemoteSensingRegionType            rsRegion;
   RemoteSensingRegionType::IndexType rsOrigin;
   RemoteSensingRegionType::SizeType  rsSize;
-  rsOrigin[0] = min(pul[0], plr[0]);
-  rsOrigin[1] = min(pul[1], plr[1]);
+  rsOrigin[0] = std::min(pul[0], plr[0]);
+  rsOrigin[1] = std::min(pul[1], plr[1]);
   rsSize[0] = vcl_abs(pul[0] - plr[0]);
   rsSize[1] = vcl_abs(pul[1] - plr[1]);