Export: fixed depth image wrongly set for stereo data

This commit is contained in:
matlabbe
2022-11-10 17:18:57 -08:00
parent bdfab4e0be
commit d59a306ae3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1290,7 +1290,7 @@ int main(int argc, char * argv[])
}
}
}
if(!depth.empty())
if(!depth.empty() && (depth.type() == CV_16UC1 || depth.type() == CV_32FC1))
{
cameraDepths.insert(std::make_pair(iter->first, depth));
}
+1 -1
View File
@@ -635,7 +635,7 @@ int main(int argc, char * argv[])
else
{
printf("[Warning] \"pub_loops\" option is used but parameter %s is true in the opened database. "
"Setting parameter %s to false for convenience to so that republished loop closure ids match.\n",
"Setting parameter %s to false for convenience so that republished loop closure ids match.\n",
Parameters::kMemGenerateIds().c_str(),
Parameters::kMemGenerateIds().c_str());
uInsert(parameters, ParametersPair(Parameters::kMemGenerateIds(), "false"));