commmented out the image callback from the hdr publisher because it

wasn't getting the motion blured version of the images
This commit is contained in:
Arnaud Fauconnet 2023-08-03 11:01:06 +02:00
parent a4d013c9d7
commit 200975a3f0

View File

@ -100,14 +100,14 @@ namespace event_camera_simulator {
}
void HdrPublisher::imageCallback(const ImagePtrVector& images, Time t) {
CHECK_EQ(images.size(), 1);
static uint frame_number = 0;
std::stringstream ss;
ss << output_folder_ << "/frames/frame_" << std::setfill('0')
<< std::setw(5) << frame_number++ << ".exr";
std::string frame_path = ss.str();
cv::imwrite(frame_path, *images[0]);
// CHECK_EQ(images.size(), 1);
// static uint frame_number = 0;
// std::stringstream ss;
// ss << output_folder_ << "/frames/frame_" << std::setfill('0')
// << std::setw(5) << frame_number++ << ".exr";
// std::string frame_path = ss.str();
//
// cv::imwrite(frame_path, *images[0]);
}
void HdrPublisher::eventsCallback(const EventsVector& events) {