1. A method for replacing a texture of an apparel with an other texture in a video file, the method comprising— calculating a reference histogram of the apparel in a current frame of the video file; refining the reference histogram by removing a background histogram and a skin histogram in the current frame, from the calculated reference histogram; dividing the current frame into overlapping subimages, and calculating a sample histogram for each subimage in the current frame; localizing the apparel in the current frame by comparing the updated reference histogram with the sample histogram for each image window; identifying the variation in light intensity in the localized apparel in the current frame; replacing the localized apparel with the other texture; applying the identified variation in light intensity to the replaced other texture; updating the refined reference histogram with the histogram of the localized apparel region of the current frame; and repeating the above steps till last frame of the video file using the updated reference histogram.