From c7374ab496cd2a78b55d3d96ec2fa684b576564c Mon Sep 17 00:00:00 2001
From: Aurelien Bricier <aurelien.bricier@c-s.fr>
Date: Fri, 26 Nov 2010 14:55:43 +0100
Subject: [PATCH] ENH: enabled distinguishing between PixelType and
 OutputPrecision

---
 Code/ObjectDetection/otbStandardMetaImageFunctionBuilder.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Code/ObjectDetection/otbStandardMetaImageFunctionBuilder.h b/Code/ObjectDetection/otbStandardMetaImageFunctionBuilder.h
index e0c82adcd2..e52661cedb 100644
--- a/Code/ObjectDetection/otbStandardMetaImageFunctionBuilder.h
+++ b/Code/ObjectDetection/otbStandardMetaImageFunctionBuilder.h
@@ -107,9 +107,10 @@ public:
   template <class TInputImage>
   void AddImage(TInputImage * image)
   {
-    typedef TInputImage                      InputImageType;
-    typedef Image<ValueType, 2>              ImageType;
-
+    typedef TInputImage                                   InputImageType;
+    typedef typename InputImageType::InternalPixelType    InternalPixelType;
+    typedef Image<InternalPixelType, 2>                   ImageType;
+   
     //Mono-Channel Factories
     typedef LocalHistogramIFFactory<ImageType,
       CoordRepType, TPrecision>               LocalHistogramIFFactoryType;
-- 
GitLab