From 3fd26c1eb483d8a8b15405d2b5d11398f3eed34a Mon Sep 17 00:00:00 2001 From: Tom Schofield Date: Sun, 19 Feb 2012 18:51:25 +0000 Subject: [PATCH] fixed bug in color single --- src/ColorSingleAnalysis.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ColorSingleAnalysis.cpp b/src/ColorSingleAnalysis.cpp index 8ed26df..d8a9efb 100755 --- a/src/ColorSingleAnalysis.cpp +++ b/src/ColorSingleAnalysis.cpp @@ -77,7 +77,7 @@ void ColorSingleAnalysis::synthesise() int index=0; //if you want to see what this looks like with real data ignore the new filenames and load teh old ones. - bool debug=true; + bool debug=false; if(debug){ _saved_filenames.clear(); _saved_filenames=getListOfImageFilePaths("MIDDLESBOROUGH", _name); @@ -93,7 +93,7 @@ void ColorSingleAnalysis::synthesise() image1.setUseTexture(false); image2.setUseTexture(false); //some of the textures are not loading correctly so only make mesh if both the images load - if(image1.loadImage(_saved_filenames[1]) && image2.loadImage(_saved_filenames[i+1])){ + if(image1.loadImage(_saved_filenames[i]) && image2.loadImage(_saved_filenames[i+1])){ if(i<_saved_filenames.size()/3){ setMeshFromPixels( calculateListOfZValues(image1,image2, COMPARE_RED), image2, &meshes[index]);