sensor_msgs/Image
This is my first time dealing with sensor_msgs/Image. I am using ros melodic in ubuntu 18.04. I tried to subscribe the content of sensor_msgs/Image and tried to visualize the data from the msg for validating the image. it cunfused me when I print the width, height , and the size of the matrice data in sensor_msgs/Image. Why is the size value of matrice data in that msg different with height x width value ? Could anyone explain me about this ? (As I know the data is in the type of std::vector so I want to arrange it by dividing the data to an array[height][width] so I can validate and visualize those datas in Matlab)