# How to do Camera comparison? (What makes an image "better"?)

**URL:** <https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558>\
**Category:** Hardware\
**Tags:** camera\
**Created:** [June 3, 2024, 3:54pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558 "2024-06-03T15:54:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![CMCI](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/cmci/32/961_2.png) [@CMCI](https://forum.microlist.org/u/CMCI)\
**Post date:** [June 3, 2024, 3:54pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/1 "2024-06-03T15:54:06Z")

</div>

Hi! I’ve recently acquired a Flash4.0LT, and I’d like to compare its performance to that of another camera (Photometrics Prime BSI) on the same microscope. I’ve captured images of the same sample using both cameras with the same exposure times, excitation powers, etc. Now I want to present this information to a PI and give them a recommendation for a purchase. How do I determine which of the two images is better, numerically? I have some ideas about this, but I’m not sure exactly what I should be doing. For example, I can normalise the images (subtract min then divide by max-min) and look at std dev, but the std dev in what definitely looks like the worse image is lower than in the better image. I suspect this is because of the high dark current (is that correct?) in the worse image, and the density of real signal in the better image.

I appreciate that explaining this kind of analysis entirely oneself is quite laborious, but if anyone has any good resources/reading that I can use/do for this kind of analysis I would be extremely grateful for the pointers.

Flash4.0 LT:

 ![Camera_Test.mvd2 - Flash4-1](https://us1.discourse-cdn.com/flex020/uploads/microlist/original/2X/a/a0e6c2a5dac4e58509588e58583d933c2e78d153.jpeg)

Prime BSI:

 ![Camera_Test.mvd2 - PVCAM 4-1](https://us1.discourse-cdn.com/flex020/uploads/microlist/original/2X/8/822414242bfe77929ada53d6e1fa3c57b82d837d.jpeg)

---

<div class="post-metadata">

**Author:** ![talley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/talley/32/3_2.png) [@talley](https://forum.microlist.org/u/talley)\
**Post date:** [June 3, 2024, 6:31pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/2 "2024-06-03T18:31:15Z")

</div>

hey @CMCI, I love this question 🙂

as a quick caveat: cameras are very complicated instruments with a ton of parameters that one might care about, and it can be really hard to do accurate comparisons. But that shouldn’t stop you from trying! 🙂 and here are few considerations.

Ultimately, probably the best number that you could measure is just signal-to-noise ratio ( **SNR** ). A _very_ quick-and-dirty estimate:

- you can ballpark estimate the **signal** as the max or the mean of some region of interest that has decent signal (it must be _exactly_ the same region in the two images), minus the background (the mean of a different area with minimal signal).
- you can estimate the **noise** as the standard deviation of some other region with minimal signal. Note: this is not strictly accurate, since that region will lack the poisson noise (shot noise) intrinsic in the signal; however, if you tried to take the SD of the area that had signal, then you’ be mostly just looking at variance in the sample itself (and not variance in your intensity measurement). So this gives you an estimate of noise due to read noise alone
- (if bleaching weren’t a concern, then technically a better way to measure SNR would be to take the signal of a pixel or region of pixels, divided by the variance of that _same_ pixel or region of pixels over a number of observations. However, with bleaching, you’ll mostly be measuring variance due to bleaching).

* * *

But there’s a lot to unpack in that simple ratio, and plenty of ways that your measurement might not be a fair/accurate comparison:

- **Signal** : first off, it’s really important that you really do deliver the _exact_ same amount of light if you want to be doing a fair SNR comparison (otherwise, well, the signal isnt the same). This is nearly impossible with biological samples due to bleaching. So just keep that in mind.
  - at the very least, switch up which camera you take the “first” image with.
  - if you have them, try using a sample that barely bleaches, such as beads, or fancy test slides.
  - try to keep the light path as similar as possible: definitely use the same filter sets, and try to use the same camera port and everything: take 1 image, then remove the camera from the port and put the other camera on in the same spot, and take the exact same image.

- **sampling & pixel size** - don’t forget to consider pixel size and sampling. Bigger pixels will have better SNR (but at the expense of sampling). Fortunately, the PrimeBSI and the flashLT both have a photodiode size of 6.5 µm, so you don’t need to take extra considerations for that.
- **read noise** : this (along with QE differences) will likely be the primary thing you’re seeing between the two. However, it’s very important to check the readout mode you’re using on the two cameras (i.e. don’t use “fast readout” on one and “slow readout” on the other). At the slowest (most accurrate) readout speeds, the LT is reported to have a read noise of 1.5 electrons (rms) / 0.9 electrons (med), while the BSI reports 1.1 electrons (rms) / 1 electron (med).
- **dark current** - since you mentioned it, you’re likely not looking at major differences in dark current (which is the average number of random electrons thermally generated during the exposure). the LT reports 0.6 e/pix/s and the BSI reports 05 e/pix/s. Not a huge difference, particularly if you’re not using many-seconds-long exposures.
- **noise and gain uniformity**. this a tough one to quantify easily, but this tells you how uniform the noise/gain characteristics are across the various amplifiers on the chip. Hamamatsu shows this as the “readout noise distribution” in their [spec sheet](https://www.hamamatsu.com/content/dam/hamamatsu-photonics/sites/documents/99_SALES_LIBRARY/sys/SCAS0162E_C11440-42U40_life.pdf). a related metric (for gain) is called pixel response non-uniformity.
- any additional **denoising modes** - notably, that BSI advertises a “prime enhance” mode. You should _not_ be using any active denoising to make a fair comparison. I would double check whether that was on, because the difference in your two images is larger than the specs would suggest)

From the specs alone (pasted below), you actually shouldn’t expect to see this big of a difference between those two cameras. Basically, the BSI does indeed have a QE of 95% vs the LT’s 82%, and that’s great, but it has a roughly similar expected read noise… and those images look like much more than just a 13% bump in SNR. So, I’d double whether there is additional on-camera denoising or processing going on, since it doesn’t quite fit what you’d expect to see.

* * *

[**BSI Spec sheet**](https://www.photometrics.com/wp-content/uploads/2023/03/Prime-BSI-Datasheet-Rev-A5-07032023.pdf)

 ![Screenshot 2024-06-03 at 2.12.16 PM](https://us1.discourse-cdn.com/flex020/uploads/microlist/original/2X/c/c35e77476e455f736135a537c082bd453ab6e366.png)

[**LT Spec Sheet**](https://www.hamamatsu.com/content/dam/hamamatsu-photonics/sites/documents/99_SALES_LIBRARY/sys/SCAS0162E_C11440-42U40_life.pdf)

 ![Screenshot 2024-06-03 at 2.08.51 PM](https://us1.discourse-cdn.com/flex020/uploads/microlist/original/2X/4/421911b3994ba715481cae8a622fa1b884fbe2a7.png)

* * *

as always, a quick response like this is an oversimplification. There’s plenty of articles out there. One of the best resources is the [Photon Transfer](https://www.amazon.com/Photon-Transfer-Press-Monograph-PM170/dp/0819467227/ref=sr_1_1?crid=XUJC3B0SZW6O&dib=eyJ2IjoiMSJ9.3NH-CJUqD1Lucb8JxVMzwM94miwo9Ph4W2z5SAzme6wBNLPs5XBfDxf7z0bjG6z9YW1qYtFmwwiaP4qYzCpb4xKJ7eCG77lEHVwdITfb1dJ0evBoLnJZdRMFn3cPaCrGo9ZwfFp1lxEdP3BAoeJPBYkj67u-mEQrCAy-MBy0dG30-PJJvQAmvl9G32xN4m2QosPPQxz5fYV5Egx2TvEe_MmOm4-u7_UBnqRuHxzesk-FajQmRbyyhJtXvLVokGZhUPQnFpz-U3QczZtQ4HR_swlVCQ5RITJy28lw_OmySlk.pr_nzwV6uj3NDCd3vVr7Q0PbhdUDR6SpSsEYESQQU6s&dib_tag=se&keywords=photon+transfer&qid=1717439273&sprefix=photon+transfer%2Caps%2C62&sr=8-1) book by James Janesick, but that’s probably overkill here :). I wrote an easier introduction to some of this in a book a while back, and while it doesn’t go into depth on sCMOS cameras, many of the core concepts are still applicable.

> **[Assessing camera performance for quantitative microscopy - PubMed](https://pubmed.ncbi.nlm.nih.gov/24974021/)**
>
> Charge-coupled device and, increasingly, scientific complementary metal oxide semiconductor cameras are the most common digital detectors used for quantitative microscopy applications. Manufacturers provide technical specification data on the average...

([direct link to pdf](https://www.dropbox.com/scl/fi/m1ry4o21tbrxiebs069x9/LambertWaters2014.pdf?rlkey=vx5csdo077r51sqxe03ixbwmu&dl=0))

---

<div class="post-metadata">

**Author:** ![P\_Tadrous](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/p_tadrous/32/862_2.png) [@P\_Tadrous](https://forum.microlist.org/u/P_Tadrous)\
**Post date:** [June 3, 2024, 7:34pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/3 "2024-06-03T19:34:18Z")

</div>

All the things @talley says are good.  
I would just take a step back though and start by refining the question as “better _for what_?”

Some example of the “what” might be:

- Imaging for illustrations vs. quantitation (or both0
- Low light level imaging
- Bright field imaging
- Field of view
- Temporal resolution (at what light level)
- Linearity of response (again, over what light level range and frame rate).
- Need for cooling and how effective is any built in cooling at stably reducing SNR _at the required light level_
- Ease of interface (software, file formats) to the user’s required work flow
- Ease of computer control of camera parameters (and by what software)
- Extent and ease of manual control over camera parameters
- Does the end-user need to sync frame capture or frame rate with other hardware for their purpose and does the camera support this?
- Need / availability of support from manufacturer (i.e. is user likely to require customisation?)

etc.

---

<div class="post-metadata">

**Author:** ![CMCI](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/cmci/32/961_2.png) [@CMCI](https://forum.microlist.org/u/CMCI)\
**Post date:** [June 3, 2024, 9:07pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/4 "2024-06-03T21:07:20Z")

</div>

Thanks for the help @talley and @P_Tadrous!

@Talley; your SNR calculation is pretty much how I explain it to people at the microscope when I’m telling them about SNR, so that feels validating for me!

I was also surprised by how much of a difference there was between the 2 cameras for this sample at this binning. I’m using 2x binning here for each camera, and I think that must be the reason; look at these images of the same cell at 1x binning:  
Flash4:

 ![FLASH4](https://us1.discourse-cdn.com/flex020/uploads/microlist/original/2X/0/0851f5e673b10cf3fb5865e57dfb917de2617409.jpeg)  
Prime BSI:  
 ![PVCAM](https://us1.discourse-cdn.com/flex020/uploads/microlist/original/2X/5/51335a2c2093159418a627035b727a085cc4cf62.jpeg)

It’s pretty much the same image, just a bit brighter for the Prime BSI, which I guess we would expect given the camera parameters. It’s super-weird that the Flash4 looks so bad at 2x binning (i.e. with the patterned noise I can see), because it looks perfectly fine at 4x binning!

@P_Tadrous Your point about application being the final metric is well taken. That’s actually why I was comparing the 2x binning mode (as well as 1x binning); I need to do live imaging of cells with extremely low signals, and I will need to bin pixels to detect the signals. I’m actually using 4x binning on the Flash4 at the minute, but unfortunately the Prime BSI doesn’t do 4x binning, so I can’t compare those directly.

---

<div class="post-metadata">

**Author:** ![talley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/talley/32/3_2.png) [@talley](https://forum.microlist.org/u/talley)\
**Post date:** [June 3, 2024, 9:24pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/5 "2024-06-03T21:24:46Z")

</div>

> [@CMCI](#):
>
> I’m using 2x binning here for each camera, and I think that must be the reason

ah! Actually… in general binning on an sCMOS (while acquiring) is not going to gain you any signal-to-noise ratio over what you would have achieved simply by downsampling digitally (with summation or averaging) _after_ acquisition. (This was not the case with CCD cameras but it is with sCMOS). When you bin on an scmos, it is generally done at the level of the FPGA (and _not_ done in a analog fashion during the readout, as it was with CCDs). So, pretty much the only reason to bin on an sCMOS is if you want to save the bandwidth transferring the data from the camera to the computer. unless you’re in that scenario (and definitely if you’re trying to compare two cameras), turn off the binning

---

<div class="post-metadata">

**Author:** ![JonD](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/jond/32/444_2.png) [@JonD](https://forum.microlist.org/u/JonD)\
**Post date:** [June 3, 2024, 11:00pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/6 "2024-06-03T23:00:34Z")

</div>

> [@CMCI](#):
>
> look at these images of the same cell at 1x binning

Comparing images based on how they look could be misleading unless you have ensured that the histogram settings are identical.

The actual data is an array of numbers coming from the camera that is rendered as an image on your screen. The histogram/display settings determine how the actual data are converted into the image. To be quantitative you should use the actual data as directly as possible.

---

<div class="post-metadata">

**Author:** ![CMCI](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/cmci/32/961_2.png) [@CMCI](https://forum.microlist.org/u/CMCI)\
**Post date:** [June 4, 2024, 2:22pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/7 "2024-06-04T14:22:48Z")

</div>

Oh wow, yes! Because the noise is created in every pixel, it doesn’t get averaged out? So on a CMOS with 2x binning, each image pixel is 4\*(signal + noise), whereas in a CCD you get (4\*signal)+noise? I’ll have to go look at the un-binned images again.

---

<div class="post-metadata">

**Author:** ![talley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/talley/32/3_2.png) [@talley](https://forum.microlist.org/u/talley)\
**Post date:** [June 4, 2024, 2:39pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/8 "2024-06-04T14:39:10Z")

</div>

yep, you’ve got it right! in a CCD, binning 2x2 gives you a signal increase of 4x and the noise remains the same, so you get a 4x gain in SNR. in an sCMOS, binning 2x2 would still give you a 4x gain in signal, but since there are still 4 (noisy) read events, you have to add the noise together too (which adds in quadrature) so noise = sqrt(1^2 + 1^2 + 1^2 + 1^2) = 2. So binning on an sCMOS gives you 2x gain in SNR (and, again, it’s digital binning, so you could achieve the same thing in post-processing). Basically, just don’t bin on a CMOS unless you’re actively trying to save disk space or you are speed limited by the bandwidth of data transfer between the camera and the computer.

---

<div class="post-metadata">

**Author:** ![CMCI](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/cmci/32/961_2.png) [@CMCI](https://forum.microlist.org/u/CMCI)\
**Post date:** [June 4, 2024, 6:31pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/9 "2024-06-04T18:31:21Z")

</div>

I just tried to DL the article you shared with me; it is behind a paywall, so I would be grateful if you can send it to me. Thanks!

---

<div class="post-metadata">

**Author:** ![talley](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/talley/32/3_2.png) [@talley](https://forum.microlist.org/u/talley)\
**Post date:** [June 4, 2024, 7:21pm UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/10 "2024-06-04T19:21:03Z")

</div>

here ya go (will add to the post above as well)

> **[LambertWaters2014.pdf](https://www.dropbox.com/scl/fi/m1ry4o21tbrxiebs069x9/LambertWaters2014.pdf?rlkey=vx5csdo077r51sqxe03ixbwmu&dl=0)**

---

<div class="post-metadata">

**Author:** ![JamesOrth](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.microlist.org/jamesorth/32/153_2.png) [@JamesOrth](https://forum.microlist.org/u/JamesOrth)\
**Post date:** [June 8, 2024, 3:04am UTC](https://forum.microlist.org/t/how-to-do-camera-comparison-what-makes-an-image-better/2558/11 "2024-06-08T03:04:00Z")

</div>

Agree with all this awesome advice from [talley] and others. Signal to Noise it a big one, and pixel size. As long as you have the sensitivity you need, I love small pixels, at low and intermediate magnification its great to have small pixel size, images are cleaner looking even with some light binning. For what its worth, they are both excellent cameras. I’m a bit more familiar with Hamamatsu and have to say - I have never, in 25 years, had a Hamamatsu camera malfunction, still using a 15 year old ORCA R2 and it is perfect.
