How to change ImageConstPtr data?
Hi all!
Please explain me how could I change raw data in ImageConstPtr& object? I have a function like:
void filterImage (const sensor_msgs::ImageConstPtr& rgb_msg)
{
// something like rgb_msg->data[100] = 0;
}
So, I should change image data, and then pass rgb_msg to other functions.
I see deprecated functions get_data_vec and set_data_vec in Image.h file, but looks like I could not use them cause I have const modifier on object, and set_data_vec is non-const function.
Thank you.