热门

最新

红包

立Flag

投票

同城

我的

发布
chanruoburuo
chanruoburuo
3 年前
truechanruoburuo


from skimage import data,io
import matplotlib.pyplot as plt

img=data.coffee()
plt.figure('image')
io.imshow(img)
plt.title('coffee')
plt.show()

plt.figure('hist')
arr=img.flatten()
plt.hist(arr, bins=256, density=1,edgecolor='None',facecolor='blue')
plt.title('histogram')
plt.show()

import cv2
from skimage import data,io
img=data.coffee()
colormap1 = img
plt.imshow(colormap1)
chans=cv2.split(colormap1)
colors=("b", "g", "r")
plt.figure()
plt.title("Color histogram")
plt.xlabel("Bins")
plt.ylabel("Number of pixels")
for (chan, c) in zip(chans, colors):
hist=cv2.calcHist([chan], [0], None, [256], [0,256])
plt.plot(hist, color=c)
plt.xlim([0,256])
plt.show()

@chanruoburuo:请教一下,这段程序中最后积的高位和低位各应存在哪个寄存器?
MOV BX 1234H
MOV AX 1H
MUL [BX]

…全文
CSDN App 扫码分享
分享
2
2
打赏
  • 复制链接
  • 举报
下一条:
感觉中国程序员前景一片灰暗,是这样吗?
立即登录