title: normalization in image processing
body: <p>What is the correct mean of normalization in image processing? I googled it but i had different definition. I'll try to explain in detail each definition.</p>
  
  <p><strong>Normalization of a kernel matrix</strong></p>
  
  <p>If normalization is referred to a matrix (such as a kernel matrix for convolution filter), usually each value of the matrix is divided by the sum of the values of the matrix in order to have the sum of the values of the matrix equal to one (if all values are greater than zero). This is useful because a convolution between an image matrix and our kernel matrix give an output image with values between 0 and the max value of the original image. But if we use a sobel matrix (that have some negative values) this is not true anymore and we have to stretch the output image in order to have all values between 0 and max value.</p>
  
  <p><strong>Normalization of an image</strong></p>
  
  <p>I basically find two definition of normalization. The first one is to "cut" values too high or too low. i.e. if the image matrix has negative values one set them to zero and if the image matrix has values higher than max value one set them to max values. The second one is to linear stretch all the values in order to fit them into the interval [0, max value].</p>