File Exchange

image thumbnail

insertImage(Ib, Is, ij)

version (1.28 KB) by Germán
Inserts small image into a big one. Can also be used to pad arrays arbitrarily.

1 Download

Updated 25 Nov 2015

View License

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.
A = zeros(10);
B = rand(5);
ij = [7,7];
I = insertImage(A, B, ij);

axis equal tight

Cite As

Germán (2021). insertImage(Ib, Is, ij) (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!