Loading src/main_Generator.cpp +5 −5 Original line number Original line Diff line number Diff line Loading @@ -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) Loading Loading @@ -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); Loading Loading
src/main_Generator.cpp +5 −5 Original line number Original line Diff line number Diff line Loading @@ -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) Loading Loading @@ -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); Loading