A device for generating an image, the device comprising: a first lighting unit configured to emit light to an object; a second lighting unit configured to emit light to the object and located at a position different from a position of the first lighting unit; a light receiver configured to receive light reflected from the object when light is emitted to the object from the first lighting unit or the second lighting unit; and an image processor configured to obtain image data based on the light received by the light receiver and process the obtained image data, wherein the image processor is configured to obtain a first image based on light reflected from the object when light is emitted from the first lighting unit, is configured to obtain a second image based on light reflected from the object when light is emitted from the second lighting unit, is configured to generate a processed image using the first image and the second image to correct a pixel value of at least one of a first light noise region of the first image due to the light emitted from the first lighting unit or a second light noise region of the second image due to the light emitted from the second lighting unit, wherein the processor, to generate the processed image, is configured to obtain a similarity between the first image and the second image, is configured to determine a weight function for synthesizing the first image and the second image on the basis of the similarity, and is configured to generate the processed image by synthesizing the first image and the second image on the basis of the weight function, and characterized in that the image processor determines the weight function to include a linear function when a value obtained based on the similarity is less than or equal to a predetermined value, and determines the weight function to include a sigmoid function when the value obtained based on the similarity is greater than the predetermined value. a first lighting unit configured to emit light to an object; a second lighting unit configured to emit light to the object and located at a position different from a position of the first lighting unit; a light receiver configured to receive light reflected from the object when light is emitted to the object from the first lighting unit or the second lighting unit; and an image processor configured to obtain image data based on the light received by the light receiver and process the obtained image data, wherein the image processor is configured to obtain a first image based on light reflected from the object when light is emitted from the first lighting unit, is configured to obtain a second image based on light reflected from the object when light is emitted from the second lighting unit, is configured to generate a processed image using the first image and the second image to correct a pixel value of at least one of a first light noise region of the first image due to the light emitted from the first lighting unit or a second light noise region of the second image due to the light emitted from the second lighting unit, wherein the processor, to generate the processed image, is configured to obtain a similarity between the first image and the second image, is configured to determine a weight function for synthesizing the first image and the second image on the basis of the similarity, and is configured to generate the processed image by synthesizing the first image and the second image on the basis of the weight function, and characterized in that the image processor determines the weight function to include a linear function when a value obtained based on the similarity is less than or equal to a predetermined value, and determines the weight function to include a sigmoid function when the value obtained based on the similarity is greater than the predetermined value. <EOS>