title: How to fuse multiple images in MATLAB without the images fading out?
body: <p>I need to fuse (overlay) 6 screenshots from a video. I am using MATLAB to do this. However, only the last 3 images are showing clearly, while the others are faded out considerably (see image below). The other forum posts do not deal with this issue:</p>
  
  <p><a href="https://i.stack.imgur.com/gTYYq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gTYYq.jpg" alt="enter image description here"></a></p>
  
  <p>I am using the code below:</p>
  
  <pre><code>A = imread('1.jpg'); 
  for idx = 2:1:6
      B = imread([num2str(idx) '.jpg']); % Read in the next image
      A = imfuse(A, B, 'blend', 'Scaling', 'joint'); % Fuse and store into A
  end
  imshow(A)
  imwrite(A, 'output.jpg')
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>