mirror of
https://github.com/introlab/rtabmap.git
synced 2026-09-09 13:00:19 +08:00
Export: fixed depth image wrongly set for stereo data
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user