that’s ROS, isn’t it? we don’t know about ROS here.
anyway, if the rows and cols are right, you should then check channels()
. if that is 1
, then you have achieved your goal.
opencv does not distinguish between those two. they’re the same.
why do you think they’re different? how did you determine those shapes?