insertImage(Ib, Is, ij)

版本 1.0.0.0 (1.3 KB) 作者: Germán
Inserts small image into a big one. Can also be used to pad arrays arbitrarily.
82.0 次下载
更新时间 2015/11/25

查看许可证

It can be used to put an array inside another array at an arbitrary location. It is sensitive to edges and correctly crops as needed.
Example:
A = zeros(10);
B = rand(5);
ij = [7,7];
I = insertImage(A, B, ij);

figure,
imagesc(I)
axis equal tight

引用格式

Germán (2024). insertImage(Ib, Is, ij) (https://www.mathworks.com/matlabcentral/fileexchange/54176-insertimage-ib-is-ij), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2012b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Images 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0

Docs