diff --git a/src/image_roi_alg_node.cpp b/src/image_roi_alg_node.cpp index d079d864663e616d32e7eae7fd7366b589227c77..51051d48c9f66f9fb96b05345bc439144f9d5fd5 100644 --- a/src/image_roi_alg_node.cpp +++ b/src/image_roi_alg_node.cpp @@ -90,6 +90,7 @@ void ImageRoiAlgNode::image_in_callback(const sensor_msgs::Image::ConstPtr& msg, new_info.height=roi_rect.height; new_info.width=roi_rect.width; new_info.P[6]=roi_rect.height/2.0; + new_info.K[5]=roi_rect.height/2.0; this->image_out_Image_msg_.height=roi_rect.height; this->image_out_Image_msg_.width=roi_rect.width; this->image_out_publisher_.publish(this->image_out_Image_msg_,new_info);