Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经尝试过检查if (x-h)^2+(y-k)^2 <= r^2,但是当我将img(x,y)=0;圆圈设置为不透明的蓝色时。其实我想要黑色 请帮忙,因为我对 Matlab 还很陌生。
if (x-h)^2+(y-k)^2 <= r^2
img(x,y)=0;
设置img(x,y,:) = 0因为 RGB 图像有 3 个通道(R、G、B)并存储为 3D 矩阵。该命令会将与像素:对应的所有 3 个值设置为.x,y0
img(x,y,:) = 0
:
x,y
0