From 2f8b627c3e81e3fd01fa4a25845988f5c943f59f Mon Sep 17 00:00:00 2001 From: Julien Michel <julien.michel@c-s.fr> Date: Mon, 1 Dec 2008 16:17:06 +0100 Subject: [PATCH] BUG: Fixed a segfault when using meanshift on visual --- Code/BasicFilters/otbMeanShiftImageFilter.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/BasicFilters/otbMeanShiftImageFilter.txx b/Code/BasicFilters/otbMeanShiftImageFilter.txx index 70159f9af9..2783932a83 100644 --- a/Code/BasicFilters/otbMeanShiftImageFilter.txx +++ b/Code/BasicFilters/otbMeanShiftImageFilter.txx @@ -384,7 +384,7 @@ namespace otb typename LabeledOutputType::IndexType boundIndex; // TODO: Here it would be possible to extract the polygon edges for each region - for(LabelType label = 1; label <= numRegions;++label) + for(LabelType label = 0; label < numRegions;++label) { regionIndeces = regionList->GetRegionIndeces(label); for(int i = 0; i < regionList->GetRegionCount(label);++i) -- GitLab