1. A method of stabilizing a sequence of infrared (IR) images captured using an infrared (IR) imaging system, using a processor comprised in said IR imaging system, wherein the processor is adapted to process IR image data, the method comprising: for each of a first and a second IR image: i) identifying, by said processor, pixels comprising edge information; ii) generating, by said processor, an edge map, wherein the pixels identified as comprising edge information are assigned first pixel values that differ from second pixel values for the remaining pixels, and wherein the generating of an edge map further comprises applying one or more threshold values to the first and second IR images, respectively; and iii) generating, by said processor, a data collection representing the distribution of the first and/or second pixel values in the edge map; thus resulting in a first data collection representing the distribution of the first and/or second pixel values in the first edge map, and a second data collection representing the distribution of the first and/or second pixel values in the second edge map; comparing, by said processor, the first data collection to the second data collection; determining, by said processor, the displacement between said first and second IR images based on the comparison between the first and second data collections; shifting, by said processor, the second IR image based on the determined displacement, thereby achieving stabilization of the second IR image to the IR first image; and providing, by said processor, a feedback control loop adapted to optimize said one or more threshold values that are to be applied to the second IR image, in order to obtain an optimized number of, or an optimized amount of, pixels in the second IR image that will be identified as comprising edge information.