From 5145e0651f81ff872018f7e02517a36a0a7dc44b Mon Sep 17 00:00:00 2001 From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org> Date: Tue, 2 Dec 2008 12:12:21 +0800 Subject: [PATCH] BUG: RGB shouldn't be restricted to more than 2 bands images --- Code/Visu/otbImageViewerBase.txx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Code/Visu/otbImageViewerBase.txx b/Code/Visu/otbImageViewerBase.txx index 27f6397883..9e45489278 100644 --- a/Code/Visu/otbImageViewerBase.txx +++ b/Code/Visu/otbImageViewerBase.txx @@ -1054,8 +1054,9 @@ ImageViewerBase<TPixel,TLabel> { case ScrollWidgetType::RGB: { - if(m_InputImage->GetNumberOfComponentsPerPixel()>2) - { +// if(m_InputImage->GetNumberOfComponentsPerPixel()>2) +// { //NOTE: No reason to prevent a 2 bands image to be displayed in RGB +// and the image is not necessarily loaded at that time. if(m_UseScroll) { m_ScrollWidget->SetViewModel(viewModel); @@ -1108,7 +1109,7 @@ ImageViewerBase<TPixel,TLabel> m_GreenHistogramWidget->SetHistogramColor(green); m_GreenHistogramWidget->SetTextColor(green); break; - } +// } } case ScrollWidgetType::GRAYSCALE: { -- GitLab