From 20f44c0b5bc34146ec84e2d3760c25bc973f06a2 Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Fri, 9 Oct 2009 15:12:06 +0200
Subject: [PATCH] ENH  : add complex image (2 bands) in consideration in
 StandardRenderingFunction

---
 Code/Visualization/otbStandardRenderingFunction.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Code/Visualization/otbStandardRenderingFunction.h b/Code/Visualization/otbStandardRenderingFunction.h
index f4a73e6088..05054f65b3 100644
--- a/Code/Visualization/otbStandardRenderingFunction.h
+++ b/Code/Visualization/otbStandardRenderingFunction.h
@@ -122,7 +122,7 @@ public:
     */
   virtual OutputPixelType EvaluateTransferFunction(const InternalPixelType &  spixel) const
   {
-    if ((spixel.Size() != 1) && (spixel.Size() != 3) && (spixel.Size() != 4))
+    if ((spixel.Size() != 1) && (spixel.Size() != 3) && (spixel.Size() != 2)&& (spixel.Size() != 4))
     {
       itkExceptionMacro( << "the PixelRepresentation function should give an output of "
        << "size 1, 3 or 4 otherwise I don't know how to make an RGB of it !" );
-- 
GitLab