mat img

看type:img.type()

rows:img.rows

cols:img.cols

channels:img.channels(),channels()这是一个函数,和上面两个有点不同