Commit 31a457e5 authored by Vladimír Ulman's avatar Vladimír Ulman
Browse files

FIX: reporting cleanup: FILO ID (lengths) removed, exporting mask with prunning info

parent a1a2f54e
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -613,15 +613,15 @@ int RenderMesh(const char* path,const std::map<std::string, float>& pruning,cons
			float filoLength = 0.0f;
			float filoLength = 0.0f;
			size_t curr_index = mesh.Ftree[i].segToPoint.size() - 1;
			size_t curr_index = mesh.Ftree[i].segToPoint.size() - 1;
			size_t stop_index = size_t(-1); 
			size_t stop_index = size_t(-1); 
			std::cout << "FILO_ID: " << tipIter ->first << " CURR_INDEX: " << curr_index << std::endl;
			//std::cout << "FILO_ID: " << tipIter ->first << " CURR_INDEX: " << curr_index << std::endl;
			std::cout << "==========================================================================" << std::endl;
			//std::cout << "==========================================================================" << std::endl;
			while (curr_index != stop_index)
			while (curr_index != stop_index)
			{
			{
				std::cout << "To: " << mesh.Ftree[i].segToPoint[curr_index] << " From: " << mesh.Ftree[i].segFromPoint[curr_index] << " Increase: " << (mesh.Ftree[i].fPoints[mesh.Ftree[i].segToPoint[curr_index]] - mesh.Ftree[i].fPoints[mesh.Ftree[i].segFromPoint[curr_index]]).Len() << std::endl;
				//std::cout << "To: " << mesh.Ftree[i].segToPoint[curr_index] << " From: " << mesh.Ftree[i].segFromPoint[curr_index] << " Increase: " << (mesh.Ftree[i].fPoints[mesh.Ftree[i].segToPoint[curr_index]] - mesh.Ftree[i].fPoints[mesh.Ftree[i].segFromPoint[curr_index]]).Len() << std::endl;
				filoLength += (mesh.Ftree[i].fPoints[mesh.Ftree[i].segToPoint[curr_index]] - mesh.Ftree[i].fPoints[mesh.Ftree[i].segFromPoint[curr_index]]).Len();
				filoLength += (mesh.Ftree[i].fPoints[mesh.Ftree[i].segToPoint[curr_index]] - mesh.Ftree[i].fPoints[mesh.Ftree[i].segFromPoint[curr_index]]).Len();
				--curr_index;
				--curr_index;
			}
			}
			std::cout << "==========================================================================" << std::endl;
			//std::cout << "==========================================================================" << std::endl;


			//  inside mask image?                          &&   is displayed color == the expected one?
			//  inside mask image?                          &&   is displayed color == the expected one?
			if (mask.Include((signed)x,(signed)y,(signed)z) && mask.GetVoxel(x,y,z) == tipIter->first)
			if (mask.Include((signed)x,(signed)y,(signed)z) && mask.GetVoxel(x,y,z) == tipIter->first)
@@ -675,7 +675,7 @@ int RenderMesh(const char* path,const std::map<std::string, float>& pruning,cons
		}
		}


		//save the "updated" mask
		//save the "updated" mask
		std::cout << "exporting mask #" << fileNo << "\n";
		std::cout << "exporting mask #" << fileNo << " (prunning: " << pruningIter->first << ")\n";
		sprintf(fileName,"%s/ID%d_afterTM/mask_t%03d%s.tif",path,ID,fileNo,pruningIter->first.c_str());
		sprintf(fileName,"%s/ID%d_afterTM/mask_t%03d%s.tif",path,ID,fileNo,pruningIter->first.c_str());
		mask.SaveImage(fileName);
		mask.SaveImage(fileName);