单项选择题
对于一个元素值都是0或1的数组,可视为黑白图像img,访问img第0行第3列的像素点正确的是()。
A.img[0,3]
B.img[3,0]
C.img[1,3]
D.img[3,1]
点击查看答案&解析
相关考题
-
单项选择题
Numpy库定义一维数组时,下列能正确返回结果的是()
A.numpy.arange(0:3)
B.numpy.arange(0,3,1)
C.numpy.range(0:3)
D.numpy.range(0,3,1) -
单项选择题
使用openCV读取一张图像返回img,下列说法正确的是()
A.img.itemsize属性返回img中每个元素大小
B.img.dtype属性返回img中元素类型
C.img.data属性返回img的数据
D.img.flat属性返回img的维度 -
单项选择题
下列选项中()可以使用matplotlib绘制线性线段图。
A.matplotlib.pyplot.figure(numpy.arange(7))
B.matplotlib.pyplot.plot(numpy.arange(7))
C.matplotlib.pyplot.figure(numpy.arange(8))
D.matplotlib.pyplot.plot(numpy.arange(8))
