In this paper a novel method is proposed to improve the performance of the S IFT (S cale Invariant Feature Transformation) algorithm in adverse illumination conditions (in an outdoor environment at night), for this research it is proposed to work with CLAHE (Contrast Limited Adaptive Histogram Equalization), adding a preprocessing stage to the traditional methodology of the S IFT algorithm, this will be applied to the building to be found in the scene, i.e., the image pattern.A comparison with different illumination conditions (day, evening and night) will be held to know the response that will have the S IFT algorithm and to identify which moment the algorithm has a better performance.