what is image step ?
I wanted to use the toImageMsg() function to obtain ros image message using the image date from my usb cam. And as I was assigning header and encoding information, I came across this variable called "step" and then later the "size" is defined as: step_t size = image.step * image.rows;
then this "size" is passed to memcpy().
I do not know what exactly this step stands for and what is this size ? If I know both no of rows and columns in the image I can obtain the image size. Why do I need this step for then ?