【发布时间】:2015-01-21 22:14:43
【问题描述】:
我正在我的项目中进行分割部分,我需要将 3 维蒙版与彩色图像相乘。
现在在做什么:
maskedFrame=np.zeros((rgbFrame.shape))
maskedHsvFrame=np.zeros((rgbFrame.shape))
for color in range(0,3):
maskedFrame[:,:,color]=rgbFrame[:,:,color]*biscuitMask
maskedHsvFrame[:,:,color]=hsvFrame[:,:,color]*biscuitMask
在python中是否可以不使用任何循环进行乘法?
【问题讨论】:
标签: python image-processing numpy image-segmentation