想将Python程序改成c++,有个地方不太明白
grad_binary = np.zeros_like(scaled)
grad_binary[(scaled >= thresh[0]) & (scaled <= thresh[1])] = 1
scaled是图片数组,主要不太明白第二句,求大腿带我飞
想将Python程序改成c++,有个地方不太明白
grad_binary = np.zeros_like(scaled)
grad_binary[(scaled >= thresh[0]) & (scaled <= thresh[1])] = 1
scaled是图片数组,主要不太明白第二句,求大腿带我飞