title: Optimization of Image Reconstruction Algorithm using Genetic Algorithm in Matlab
body: <p>I'm trying to optimize an image reconstruction algorithm using genetic algorithm.I took initial population size as 10.I have an input image an 10 reconstructed image.fitness function is the difference between these two.That is</p>
  
  <pre><code>fitness_1 = inputimage - reconstructedimage_1;
  fitness_2 = inputimage - reconstructedimage_2;
                :
                :
  fitness_10 = inputimage - reconstructedimage_10;
  </code></pre>
  
  <p>I want to chose the best fitness population among them.But my fitness result is an image(matrix with intensity values).So how can I get a single fitness value for each population for doing crossover in the next stage.
  Please help.Thanks in advance</p>