A motion compensation algorithm correcting not only for translation but also for rotation, scaling, and shearing, is investigated in this thesis. Our work also includes noise detection and noise compensation due to the variation of the light. The probability distribution of the noise is investigated. The variation of the light could occur due to the voltage variation or due to the sunlight variation in the presence of clouds, or other reasons. Practical results have also been obtained by applying our theory to moving pictures