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.
谁能帮我在 Matlab 中制作光圈函数?我尝试制作一个矩阵,但没有帮助。
如果您有图像处理工具箱,您可以使用fspecial:
fspecial
A = fspecial('disk',10);
这将创建一个半径为 10 像素的光圈。接下来,您可以将此矩阵嵌入到更大的零矩阵中,padarray例如:
padarray
A = padarray(A,[20 20]);