Multifocus image fusion using dwt2

1 view (last 30 days)
Lindsay
Lindsay on 6 Mar 2014
Edited: Lindsay on 6 Mar 2014
I am working on a one-level 2D DWT approach to image fusion. I have created two images (perfectly registered) that have different focuses, i.e. one has the foreground in focus, the other has the background in focus. I am using Matlab's dwt2 command to take the DWT's of both images separately, and am trying to merge the detail and approximation images while in the wavelet domain by taking means. I am taking the mean of each of the detail matrices and the approximation images and making them my fused detail and fused approximation.
My question is: what do I use as my color mapping for constructing the fused image?
Here is the basic idea of my code:
1) Load each image and perform rgb2ind to obtain color mappings.
2) Take dwt2 of both images separately and construct detail and approximation images using color mappings found earlier.
% At this point I have a color mapping for my foreground image and a color mapping for my background image.
3) Take mean of each set of detail images (I end up with my fused cH, cV, cD, and cA)
4) Inverse dwt2 on the fused detail and approximation images.
5) Construct fused image using fused color mapping. This is the color mapping that I don't know and am interested in finding.

Answers (0)

Community Treasure Hunt

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

Start Hunting!