How do I remove loop for numpy subtraction of 2d and 3d arrays?

前端 未结 0 668
时光取名叫无心
时光取名叫无心 2021-01-03 19:15

Is it possible to speed up the following code by removing the for-loop?

all_t = np.array([])    
for color in color_list:
    t = np.subtract(image, color         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题