Obtaining intensity/irradiance in an image

  • Thread starter Thread starter fog37
  • Start date Start date
  • Tags Tags
    Image
AI Thread Summary
It is possible to obtain pixel intensity or irradiance (W/m^2) from images captured by digital cameras, particularly using software like ImageJ. The pixel brightness correlates with the amount of reflected light, typically recorded as a voltage level. To accurately analyze this data, images should be saved in a non-compressed format, ideally RAW or bitmap, to preserve pixel information. JPEG compression can distort per-pixel data, making it less reliable for precise measurements.Calibration of the camera is essential for accurate irradiance calculations, which can be achieved using a radiometer or known light sources, such as the moon. High-end cameras often provide quantum yield information that aids in calibration. When comparing images of similar objects, it is recommended to use the same format and minimize compression to ensure a fair analysis. Using ImageJ, users can manipulate and analyze pixel data effectively, but starting with RAW images is crucial for maintaining data integrity.
fog37
Messages
1,566
Reaction score
108
TL;DR Summary
Find intensity/irradiance of the pixels in a picture
Hello,

Is it possible to take a picture/image using a digital camera and then obtain the intensity/irradiance (##W/m^2##) of the composing pixels? Should the image be exported in a particular format into a graphics software like photoshop to be able to obtain the irradiance information? Or should some simple code (say Python) be written and applied to the image to access its irradiance information?

Thanks!
 
Computer science news on Phys.org
First of all I recommend ImageJ
You can do pretty good photometry using most cameras. The voltage on a pixel is usually quite linear with photon number. One needs to be cognizant of manipulations done by the camera however, both optically and post processing. Also the flatness of the field.

ImageJ allows you to look in detail at the files and manipulate them ad infinitum. It's free from NIH so play with it some. Obviously you want a bitmap format of some kind. Play.
 
  • Like
Likes fog37
Thanks.

I just used ImageJ and I am exploring its functions.
As you mention, an image is made of pixels and the brightness of each pixel (which corresponds to the amount of reflected light) is collected as a electric voltage that should be linear with brightness. Once the image is imported in ImageJ, I wonder if the pixel values must be scaled and multiplied by factor to obtain the energy in Joule at each pixel...
 
Yes. On high end (often cooled) astronomical/fluorescence cameras they will often provide you the number (usually the quantum yield i.e. electrons per photon ) for the average pixel and then describe any amplifiers. You will need some way to calibrate your camera...either a good radiometer/photometer for comparison or a known source. One way to do it is to use the moon on a clear night.
Astronomers are often interested in doing these kinds of calibrations so you might research that area. Also there are some good amateur astronomers here. I have never done it for an ordinary camera.
 
  • Like
Likes fog37
hutchphd said:
Obviously you want a bitmap format of some kind.
Compression will greatly corrupt the per-pixel information: you need both a camera and software that will handle a RAW image.
 
  • Like
Likes fog37
I see how the data needs to be raw. A raw image is such that each pixels records the amount of light that hits it as a voltage level. Wouldn't a good digital camera provide, in the documentation, the conversion factor between voltage level and light energy on each pixel?

The calibration does not seem trivial...

thanks
 
hutchphd said:
Yes. On high end (often cooled) astronomical/fluorescence cameras they will often provide you the number (usually the quantum yield i.e. electrons per photon ) for the average pixel and then describe any amplifiers. You will need some way to calibrate your camera...either a good radiometer/photometer for comparison or a known source. One way to do it is to use the moon on a clear night.
Astronomers are often interested in doing these kinds of calibrations so you might research that area. Also there are some good amateur astronomers here. I have never done it for an ordinary camera.

Hello hutchphd, thanks again for bring ImageJ to my attention :) Very easy to use.

I may need one more piece of advice: assuming same illumination, etc. I am take two images of the two similar objects with a digital camera and would to compare the image brightness (mean intensity, integrated intensity, easy to get in ImageJ) in the same ROIs. I can do that.

But before I do the comparison analysis, so the comparison is fair, should I convert the two images from jpg to some other format inside ImageJ? For example, should I first convert both two images to 8-bit before comparing them (Image-> Type-> 8-bit> save)?

Thanks
 
It would be better if you could get a non compressed raw bitmap image from your camera (bmp). If jpeg you want the least compression possible and you might want to compare some images at different compression. I do not know exactly what jpeg does. For manipulation just keep it bmp until you are finished. Have fun
 
  • Like
Likes fog37
hutchphd said:
It would be better if you could get a non compressed raw bitmap image from your camera (bmp). If jpeg you want the least compression possible and you might want to compare some images at different compression. I do not know exactly what jpeg does. For manipulation just keep it bmp until you are finished. Have fun

Thanks!
I will borrow the camera tomorrow (a Canon ). Based on the camera instruction manual, I believe it can only save images either as jpeg or RAW. I guess I would save them as RAW and then import them into ImageJ. Instead of using Open..., I will import them using Import -> Raw..., unless I am making some mistake doing that...

1611876857265.png
 
Back
Top