fix(sample): record core fix.
This commit is contained in:
parent
2c9cd5238e
commit
51c4e8737e
|
@ -122,12 +122,7 @@ void Dataset::SaveStreamData(
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
ss << writer->outdir << MYNTEYE_OS_SEP << std::dec
|
ss << writer->outdir << MYNTEYE_OS_SEP << std::dec
|
||||||
<< std::setw(IMAGE_FILENAME_WIDTH) << std::setfill('0') << seq << ".png";
|
<< std::setw(IMAGE_FILENAME_WIDTH) << std::setfill('0') << seq << ".png";
|
||||||
try {
|
cv::imwrite(ss.str(), data.frame);
|
||||||
cv::imwrite(ss.str(), data.frame);
|
|
||||||
}
|
|
||||||
catch(int e) {
|
|
||||||
LOG(WARNING) << "Save failed.";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
++stream_counts_[stream];
|
++stream_counts_[stream];
|
||||||
}
|
}
|
||||||
|
|
|
@ -122,9 +122,13 @@ int main(int argc, char *argv[]) {
|
||||||
// dataset.SaveStreamData(Stream::RIGHT, right);
|
// dataset.SaveStreamData(Stream::RIGHT, right);
|
||||||
// }
|
// }
|
||||||
// save Stream::DEPTH
|
// save Stream::DEPTH
|
||||||
// for (auto &&depth : depth_datas) {
|
try {
|
||||||
// dataset.SaveStreamData(Stream::DEPTH, depth);
|
for (auto &depth : depth_datas) {
|
||||||
// }
|
dataset.SaveStreamData(Stream::DEPTH, depth);
|
||||||
|
}
|
||||||
|
} catch(int e) {
|
||||||
|
LOG(WARNING) << "Save failed.";
|
||||||
|
}
|
||||||
// save Stream::DISPARITY
|
// save Stream::DISPARITY
|
||||||
// for (auto &&disparity : disparity_datas) {
|
// for (auto &&disparity : disparity_datas) {
|
||||||
// dataset.SaveStreamData(Stream::DISPARITY, disparity);
|
// dataset.SaveStreamData(Stream::DISPARITY, disparity);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user