The present application discloses a novel algorithm to convert medical hyperspectral images (MHSI) into RGB (RedBlueGreen) images in different medical conditions by making use of the three spectral bands (Red, Green and Blue) of the MHSI and mapping them into Red, Green and Blue components for visualization of hyperspectral images.