title: Add two images in MATLAB
body: <p>I am trying to overlay an activation map over a baseline vasculature image but I keep getting the same error below: </p>
  
  <blockquote>
    <p>X and Y must have the same size and class or Y must be a scalar double.</p>
  </blockquote>
  
  <p>I resized each to 400x400 so I thought it would work but no dice. Is there something I am missing? It is fairly straight forward for a GUI I am working on. Any help would be appreciated.</p>
  
  <pre><code>a=imread ('Vasculature.tif');
  b = imresize (a, [400,400]);
  c=imread ('activation.tif');
  d= imresize (c, [400,400]);
  e=imadd (b,d); 
  </code></pre>
  
  <p>Could it be the bit depth or dpi?</p>