3 #include <opencv2/core/check.hpp> 
    5 #include <sensor_msgs/CameraInfo.h> 
   20              const cv::Mat& depth_image,
 
   21              const image_geometry::PinholeCameraModel& cam_model,
 
   25     depth_image_(depth_image),
 
   36     cam_info.header.frame_id.clear();
 
   37     cam_info.header.seq = 0;
 
   38     cam_info.header.stamp.fromSec(0);
 
   47     sensor_msgs::CameraInfo cam_info = cam_model.cameraInfo();
 
   48     cam_info.header.frame_id.clear();
 
   49     cam_info.header.seq = 0;
 
   50     cam_info.header.stamp.fromSec(0);
 
   82     if (this_depth.data != other_depth.data)
 
   85         cv::bitwise_xor(this_depth, other_depth, dst);
 
   86         if (cv::countNonZero(dst) != 0)
 
   92     if (this_rgb.data != other_rgb.data)
 
   95         cv::bitwise_xor(this_rgb, other_rgb, dst);
 
   96         cv::transform(dst, dst2, cv::Matx<int, 1, 3>(1,1,1));
 
   97         if (cv::countNonZero(dst2) != 0)