In this paper, we present a new denoising technique based on a modification on the heat equation. This method is mainly presented to enhance some physical images that were carried out in a physical laboratory during some experiments. A one-dimensional example using a vector and a two-dimensional example using matrices are showed in this paper to clarify how applying the modified way of solution on a heat diffusion equation can remove some existing defects in these images. In addition, we are going to make a model for a heat diffusion in two directions x and y and assemble letters from components in matrices to apply our experiment on some other different colorful and greyscale images. Finally, we calculate PSNR values for our method and compare them with some research methods to conclude that enhancing images by removing undesired defects can be done by the proposed method.