使用OpenCV线性梯度掩码
首先,对不起,我的英语不好。这里问题的答案绝对是我正在寻找的答案,我正在寻找使用OpenCV或创建线性梯度掩码,但我想将此带垂直。我该怎么做? @hanshirse
First of all, sorry for my bad english. The answer to the question here is definitely the answer I was looking for Creating a Linear Gradient Mask using opencv or but I want to make this strip vertical. How can I do that? @HansHirse
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了我问题的答案。我创建了一个名为Mask3的掩码,然后将其等同于NP.Rot90(Mask1)
I found the answer to my question. I created a third mask called mask3 and I equated it to np.rot90(mask1)
这是如何在Python/OpenCV/Numpy中制作水平和垂直线性梯度图像。不同之处在于,转置操作是在瓷砖操作内部还是外部。
水平坡道:
垂直坡道:
Here is how to make both horizontal and vertical linear gradient image in Python/OpenCV/Numpy. The difference is whether the transpose operation is inside or outside the tile operation.
Horizontal Ramp:
Vertical Ramp: