I want to show a smaller image on another bigger image, but the smaller image has white background which is unwanted So how to remove the white background and correctly place the smaller image ?

After searching a lot for this problem on the internet I finally decided to post my own at mathworks.
So far I have used the following code. (Tested, but I would prefer a better code) CODE:
imshow(biggerimage)
hold on;
imshow(smallerimage, 'XData', xdata, 'YData', ydata);
hold off;

2 Comments

I have also tried for the 'ALPHA' (transparency) but it did not work for me. Please help.
you have to either put some sample images here, or explain what are the small and big images. you cannot expect to remove the background of any image with matlab, specially with a single function!

Sign in to comment.

Answers (0)

Asked:

on 23 Jul 2013

Community Treasure Hunt

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

Start Hunting!