Obtaining intensity/irradiance in an image

  • Thread starter Thread starter fog37
  • Start date Start date
  • Tags Tags
    Image
Click For Summary

Discussion Overview

The discussion revolves around obtaining intensity or irradiance measurements from digital images captured by cameras. Participants explore methods for extracting pixel intensity data, including software options like ImageJ, and considerations for image formats and calibration techniques.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest using ImageJ for photometry, noting that pixel voltage is generally linear with photon number, but caution about camera manipulations.
  • There is a discussion on the necessity of using bitmap formats for images to avoid data corruption, with emphasis on using RAW images for accurate intensity measurements.
  • Some participants mention the importance of calibrating the camera, with suggestions to use known light sources or radiometers for comparison.
  • One participant questions whether digital cameras provide conversion factors for voltage levels to light energy, indicating that calibration may not be straightforward.
  • There is a suggestion to convert images to 8-bit format in ImageJ for comparison, but some participants argue for maintaining RAW formats until analysis is complete.

Areas of Agreement / Disagreement

Participants generally agree on the importance of using RAW image formats for accurate intensity measurements, but there is no consensus on the best calibration methods or the necessity of converting image formats before analysis.

Contextual Notes

Limitations include the potential variability in camera specifications and the lack of standardized calibration methods across different camera models. The discussion also reflects uncertainty regarding the effects of image compression on data integrity.

Who May Find This Useful

Individuals interested in photometry, image analysis, and calibration techniques in digital imaging, particularly in scientific or experimental contexts.

fog37
Messages
1,566
Reaction score
108
TL;DR
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   Reactions: 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   Reactions: 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   Reactions: 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   Reactions: 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
 

Similar threads

Replies
16
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 2 ·
Replies
2
Views
7K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 152 ·
6
Replies
152
Views
11K
  • · Replies 19 ·
Replies
19
Views
3K
Replies
1
Views
3K