If you got bored with all the science, now it's time for you to dive into the more fun part of image mixing. A very popular technique that is handled very efficiently by popular image processing suites is compositing two or more images, to make selected elements in them appear in the same scene simultaneously. When performed successfully, this technique can lead to beautiful artistic results, or even hilarious or odd scenes. But before getting to work on compositing, we should first get to know the tools we will be using in MATLAB.
The most useful function you will use when it comes to compositing tasks is imfuse
. This function takes two images as input and returns a fused version of these images as output. The function can also accept extra optional inputs, such as spatial referencing information for the two input images, fusion method selection, intensity scaling option, and output color channel for each of the two images...