From 51edc7cbd97b2bcc75949120550e9420d46cd1ad Mon Sep 17 00:00:00 2001
From: Cyrille Valladeau <cyrille.valladeau@c-s.fr>
Date: Wed, 14 May 2008 15:58:03 +0000
Subject: [PATCH] nomsg

---
 Testing/Code/Markov/otbMRFSamplerRandomMAP.cxx | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Testing/Code/Markov/otbMRFSamplerRandomMAP.cxx b/Testing/Code/Markov/otbMRFSamplerRandomMAP.cxx
index 95f6dc3005..f2c3cc1b5d 100644
--- a/Testing/Code/Markov/otbMRFSamplerRandomMAP.cxx
+++ b/Testing/Code/Markov/otbMRFSamplerRandomMAP.cxx
@@ -51,6 +51,8 @@ int otbMRFSamplerRandomMAP(int argc, char * argv[])
   readerIn->Update();
   readerLab->Update();
 
+  object->SetNumberOfClasses(1);
+
   // USED TO OVERPASS RANDOM CALCULATION
   //object->SetValueInsteadRandom(300); 
 
-- 
GitLab