insertImage(Ib, Is, ij)

Inserts small image into a big one. Can also be used to pad arrays arbitrarily.

You are now following this Submission

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

Cite As

Germán (2026). insertImage(Ib, Is, ij) (https://uk.mathworks.com/matlabcentral/fileexchange/54176-insertimage-ib-is-ij), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Images in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0

Docs