BioGeeks

Part 7 Display and Analysis

Tucsen · Uploaded · 45:44 · Watch on YouTube

Tucsen's course lesson walks through how scientific camera images are scaled for display, using lookup tables and histogram bounds rather than raw intensity values. It then explains why signal-to-noise ratio limits how faint a signal can be detected, and why the common shortcut of dividing peak signal by background is incorrect.

Transcript

Captions as a .vtt fileEmbed with the transcript

  1. 0:01Welcome back to the Tucsen Mastering Scientific Cameras course.
  2. 0:06And in this part, part seven, display and analysis, we're going to be considering some of the factors that are really important when displaying our images on a screen and maybe making qualitative judgments or using the image to explore what's happening in our sample.
  3. 0:21But also some factors that are really important for the quality of that image and that image quality then has massive implications for our ability to answer our scientific questions, either through displaying the image on the screen or feeding the image into an analysis pipeline.
  4. 0:38The first of those aspects is signal to noise ratio.
  5. 0:43And we've mentioned this quite a few times already in this course because it's such a fundamental and important aspect of imaging that we have a good or at least adequate signal to noise ratio in our images.
  6. 0:55And we're going to be exploring exactly what this means and how to calculate it.
  7. 1:00It's something that there's in fact quite a lot of misconceptions and misunderstandings around in imaging in the imaging world for how to calculate it and what it represents.
  8. 1:12Next, we'll be looking more qualitatively at image quality and looking at some of the kind of artifacts that we can sometimes get in camera based imaging, what kind of effects these can have and when these might or might not be an issue.
  9. 1:26Finally, as a subset of that, we'll be having a look at image patterns as represented by these two specifications that we'll sometimes find on camera specification sheets, DSNU and PRNU.
  10. 1:40And we're going to be defining these in this part.
  11. 1:46So the first aspect that we're going to have a look at for displaying our image is this question of histogram and scaling.
  12. 1:53So the question is, does our computer monitor truly show image intensity values?
  13. 2:00And of course, we have a camera of a certain bit depth, as we have explored before.
  14. 2:06Maybe it's a 12-bit camera with 4000 different gray levels.
  15. 2:10And we might have image data with a maximum intensity value from our image of maybe 2000.
  16. 2:17So the question is, how do we display this data?
  17. 2:20As we've talked about before, monitors rescale images to 8-bit.
  18. 2:26Only 256 different brightnesses that a monitor pixel can be.
  19. 2:31So how do we represent this data?
  20. 2:34If we have, for example, just set the darkest pixel to zero and the brightest pixel, the fully white pixel value of our 8-bit monitor,
  21. 2:44to the brightest possible image value, i.e. 4096 for a 12-bit camera,
  22. 2:50then that's going to display our image quite dark if our maximum intensity value is only 2000.
  23. 2:59This would mean that in this case, our image is going to be only half as bright as the monitor can show.
  24. 3:07So this question is, would we want it to just directly show image intensity values?
  25. 3:13There's also this question of the monitor can't actually, of course, display values above 256 directly as the image comes from the camera.
  26. 3:22This is different from consumer cameras and our smartphone cameras, which do only produce images with a maximum value of 256.
  27. 3:29Another thing to note with our consumer cameras and smartphone cameras is that we can sometimes change the exposure or change the intensity,
  28. 3:38the brightness of the image, and we're free to do that.
  29. 3:42And if we make an image darker, it's lowering the exposure time, but we do result with a darker image, a blacker image.
  30. 3:51And that's not necessarily what we want in scientific imaging.
  31. 3:54Maybe we want to lower the exposure time, reduce our light levels, or work with low light images, but still have a bright image come out of it.
  32. 4:01And that's where histogram and scaling controls come in.
  33. 4:05Histogram scaling, also called image scaling or LUTs, lookup tables,
  34. 4:10determines the brightness that the monitor will represent different image intensity values with.
  35. 4:17Our monitors are only 8-bit.
  36. 4:19We have 256 different brightness values, from 0 being fully black or turned off, to 255 being the maximum intensity white.
  37. 4:32And of course, the question is, how do we represent 8-bit, 12-bit, or 16-bit image data?
  38. 4:39On the right-hand side here, we have an example of what an image looks like once it's rescaled.
  39. 4:45As you can see, this image has a maximum intensity value above 255, so we can't just directly display the image values as the brightness of monitor pixels.
  40. 4:56Our brightest value is around 1,000, 993 there.
  41. 5:00And our darkest value is also not 0, it's around 101 at the bottom of the image.
  42. 5:05What we wouldn't want to do is just display from 0 up to the bit depth in this camera,
  43. 5:11because at the very least, this must be a 10-bit camera to have 1024 possible grey levels, but it could be any bit depth.
  44. 5:19So 993 would be very dark if we displayed the full bit depth in most of those cases.
  45. 5:24But what we've done with this image, as you can hopefully see,
  46. 5:27is that our darkest pixel, that 101, is set to our black monitor value, our 0 monitor value.
  47. 5:35And our brightest pixel, 993, is set to fully 255, white monitor brightness.
  48. 5:42And then we have a linear scale between the two of them.
  49. 5:46That is our image scaling settings.
  50. 5:48And we are in software free to choose, usually, what these image scaling settings will be
  51. 5:53to match what our image actually contains, in terms of its intensity values,
  52. 5:58and match our intentions and our scientific questions or our experimental procedures.
  53. 6:06So we can use appropriate scaling settings for the type of imaging that we're doing.
  54. 6:11Most scientific imaging software does allow this manual control over the image scaling,
  55. 6:16and most also allows automatic image scaling, where you don't have to worry about it.
  56. 6:21Sometimes you have adjustable parameters as well for exactly how this is implemented.
  57. 6:27And the question is, what is right for your application?
  58. 6:29We'll just have a look at a couple of different examples of what different image scalings can look like.
  59. 6:34So on the left here, we have a fluorescent microscopy image with, in this case, image scaling,
  60. 6:42where we've brought down the upper bound, which on the previous slide was set to 993 for that brightest pixel,
  61. 6:50here we've brought that down to a value below many of the pixels of the image.
  62. 6:56So it looks overexposed.
  63. 6:58It's not overexposed, it's just image scaling that's leading to those white pixels.
  64. 7:03But what we've done here is reduce this upper bound in order to really zero in on what's happening
  65. 7:09in the lower intensities areas of the image.
  66. 7:12So we can see very clearly now what's happening in the dark areas of the image
  67. 7:17in exchange for not being able to really tell what's happening in the bright areas of the image.
  68. 7:23There might be many applications where there's something very bright in our image
  69. 7:26which isn't actually what we're interested in in that image.
  70. 7:29And we want to really zero in and see what's happening in a darker area of the image
  71. 7:35or in a particular scale, a particular area of intensities.
  72. 7:44Below the image, we have the histogram, which if you're not familiar with image histograms,
  73. 7:49this represents the brightness overall of the pixels of the image.
  74. 7:53On the x-axis, we have the different possible intensity values for pixels.
  75. 8:00And then on the y-axis, we have the number of pixels that contain that intensity value.
  76. 8:06As you can see, we have a maximum intensity of something in the region of 580.
  77. 8:13That's the brightest pixel of the image.
  78. 8:15But then the modal, the intensity value with the most pixels containing that value
  79. 8:24is something in the region of 220, somewhere around there.
  80. 8:28The darkest pixel is something around 85 or 90.
  81. 8:33Looking now at another image scaling setting,
  82. 8:36here we have what an automatic image scaling might do to this image.
  83. 8:41And here, you know, we're seeing the whole thing.
  84. 8:42This is probably what most applications will want to do.
  85. 8:46We'll see the image quite clearly across all intensity levels.
  86. 8:50But one thing to note from the histogram
  87. 8:51is that the image scaling isn't set to the very brightest and very darkest pixel values,
  88. 8:59displaying truly every single pixel,
  89. 9:01with none being just set to fully black and being set to fully white.
  90. 9:06As you can see, our lower bound 92 is slightly above the minimum value
  91. 9:10and our upper bound 562 is slightly below the maximum value.
  92. 9:15This is because there are bound to be many pixels in the image
  93. 9:21which have really quite high values
  94. 9:23due to the random variations of noise within the image.
  95. 9:28And these highest values can fluctuate quite a lot from image to image.
  96. 9:33Like, for example, in one image, one pixel might have a value of 700
  97. 9:37and then in the next image in a sequence, it might be 650.
  98. 9:42You know, we can really expect very large fluctuations in the upper bound
  99. 9:45and some fluctuations too in the lower bound of the image.
  100. 9:49And if our automatic image scaling is just fully adapting to every single pixel
  101. 9:54and adjusting our image scaling based on every single pixel,
  102. 9:58including these sort of outlier high and low pixels,
  103. 10:01our image scaling is going to change an awful lot from image to image.
  104. 10:06And that can be really quite distracting
  105. 10:07and not very helpful for judging the intensities of signals.
  106. 10:13So what's typically done by image, by camera software,
  107. 10:17is some degree of ignoring a percentage of the brightest and darkest pixels.
  108. 10:24So, for example, that might be you ignore the darkest 0.1%
  109. 10:29and the brightest 0.1%
  110. 10:31in choosing what these image scaling values, upper and lower bounds, should be.
  111. 10:36And that way, we have much more stable images
  112. 10:40in terms of their image scaling settings.
  113. 10:43And also, this can enhance the contrast that we see things with.
  114. 10:50The final little case study that we'll look at
  115. 10:52is if we're interested in the very bright areas of the image.
  116. 10:56Say, in this case, there's something about the structures
  117. 10:59of the bright part of the image that we're really interested in
  118. 11:02and we don't really care about what's happening,
  119. 11:04at least for now, in the darker areas of the image.
  120. 11:07We can increase the lower bound of the image scaling settings
  121. 11:11to give us much better contrast in the brighter areas of the image
  122. 11:16than we would with the middle case
  123. 11:18and certainly than with the left-hand case.
  124. 11:24In many cases, as I've mentioned,
  125. 11:26the automatic image scaling might be what you need,
  126. 11:29but it's important to realise that these options are available to us
  127. 11:32to explore what's going on in our image
  128. 11:34and hone in our image scaling on exactly what we're interested in in our images.
  129. 11:43So next, we're going to look at this really important subject
  130. 11:45of the signal-to-noise ratio.
  131. 11:48And one way that we can think about the signal-to-noise ratio
  132. 11:51is the limiting factor on how small our signals can get
  133. 11:56and where we can still answer our scientific questions.
  134. 12:00Because as we've just seen with image scaling,
  135. 12:02if our image is too dark,
  136. 12:04then we can simply change our scaling settings
  137. 12:06to see what's there and reveal what's there.
  138. 12:09In many cases,
  139. 12:10if we reduce, say, our exposure time
  140. 12:13or our illumination intensity,
  141. 12:14we might not really notice much difference,
  142. 12:17initially at least,
  143. 12:18in our image.
  144. 12:19Maybe our signal-to-noise ratio is really good
  145. 12:21and we don't notice much difference
  146. 12:23because our image scaling
  147. 12:24will be adjusting automatically, for example,
  148. 12:28to cope with that change in intensity.
  149. 12:30So what's the limiting factor here?
  150. 12:32What's stopping us just turning our light source
  151. 12:34all the way down
  152. 12:35until it's really, really, really tiny
  153. 12:37and saving energy
  154. 12:39or reducing the effect on our sample
  155. 12:42or whatever the incentive there might be for doing this?
  156. 12:46Well, ultimately,
  157. 12:47signal-to-noise ratio is the limiting factor
  158. 12:50on how small a signal we can effectively collect.
  159. 12:54And it's what determines
  160. 12:57whether our imaging subject
  161. 12:59has been captured sufficiently
  162. 13:01or not for our particular imaging application.
  163. 13:07In these three examples
  164. 13:08with three different signal-to-noise ratios,
  165. 13:11we can obviously see that
  166. 13:12the left-hand image,
  167. 13:13we're going to be struggling to tell
  168. 13:15the structures on this beach,
  169. 13:17which is maybe not the most ideal scientific example,
  170. 13:20but we can tell that on the left-hand image,
  171. 13:23we're struggling to tell what's going on.
  172. 13:25But if we were trying to detect
  173. 13:27is there a rock on the beach or not,
  174. 13:30we can still do that with the left-hand image.
  175. 13:32It entirely depends what our intentions are
  176. 13:35as to what signal-to-noise ratio
  177. 13:37we need for that particular scientific question.
  178. 13:43But in general,
  179. 13:44images with different signal-to-noise ratios
  180. 13:46do tend to look fairly similar to each other
  181. 13:49in terms of their visual noise
  182. 13:53and sort of image quality.
  183. 13:56How much signal-to-noise ratio you need
  184. 13:58depends, of course, on your application.
  185. 14:01But a signal-to-noise ratio of around 20,
  186. 14:03images will start just looking really nice and clean
  187. 14:06and noise won't really be visible by eye.
  188. 14:10For many applications,
  189. 14:11this might be the only bar
  190. 14:13that they need to reach
  191. 14:14just for things to be looking fairly good
  192. 14:18and clean and clear and nice.
  193. 14:21On the other hand,
  194. 14:24at a signal-to-noise ratio of 1,
  195. 14:25our signal is now effectively equal to our noise
  196. 14:29and data is unusable in almost all circumstances.
  197. 14:33Anything in between or above
  198. 14:35is down to your application for what you need.
  199. 14:38To see that visually here on the left-hand side,
  200. 14:40we have a nice fluorescence microscopy image
  201. 14:43with a signal-to-noise ratio of 23.
  202. 14:46As you can see, this is very clean,
  203. 14:48got a nice clean background,
  204. 14:49high contrast,
  205. 14:50and everything's looking pretty good.
  206. 14:52As our signal-to-noise ratio lowers,
  207. 14:54however, our signal is being lost
  208. 14:56into that noisy background
  209. 14:58and we're losing that contrast
  210. 15:00that we get as a result.
  211. 15:02So improving signal-to-noise ratio
  212. 15:05and moving from right to left
  213. 15:07along this sequence
  214. 15:08means either increasing signal
  215. 15:11or reducing noise.
  216. 15:12But what's the most important factor in this?
  217. 15:16What do you need to focus on
  218. 15:18in your particular imaging
  219. 15:20to make the most difference?
  220. 15:23What actual noise sources
  221. 15:24are playing the biggest role?
  222. 15:27This is something that we can calculate
  223. 15:28by calculating our signal-to-noise ratio
  224. 15:31and then truly coming to understand
  225. 15:33what's going on.
  226. 15:37So how to calculate
  227. 15:38the signal-to-noise ratio?
  228. 15:40This is in fact something
  229. 15:41that is often misunderstood
  230. 15:42in imaging.
  231. 15:45There are quite a lot of misconceptions
  232. 15:46for how signal-to-noise ratio
  233. 15:48can be calculated.
  234. 15:49One might be,
  235. 15:50say we've got this image
  236. 15:53on the right-hand side here.
  237. 15:54There's a certain peak value,
  238. 15:56say 644 in grayscale units,
  239. 16:00and it's surrounded by some backgrounds
  240. 16:03of largely unilluminated pixels.
  241. 16:06This might be a fluorescent molecule
  242. 16:09or a small object or star
  243. 16:12or whatever it might be
  244. 16:13that we're interested in examining.
  245. 16:15One common and unfortunately incorrect way
  246. 16:19to calculate signal-to-noise ratio
  247. 16:20that I've come across people using
  248. 16:23is taking this maximum value,
  249. 16:26in this case 644,
  250. 16:28and saying,
  251. 16:29okay, that's our signal.
  252. 16:31Let's divide that
  253. 16:33by some average
  254. 16:35of the background values.
  255. 16:37So looking at the values
  256. 16:38in this sort of rectangle
  257. 16:40of background pixels,
  258. 16:41we can judge that
  259. 16:42an average value
  260. 16:44might be something
  261. 16:44in the region of 140 or 150.
  262. 16:48We can then say that,
  263. 16:50oh, if I divide my signal
  264. 16:52by this sort of noisy background,
  265. 16:54I get a signal-to-noise ratio
  266. 16:56around four or five.
  267. 16:57This is unfortunately
  268. 16:59completely incorrect.
  269. 17:00It's maybe giving you
  270. 17:01some rough indication
  271. 17:03of signal-to-background,
  272. 17:05but even that is completely off
  273. 17:08in this particular way of doing it,
  274. 17:10because all of these pixel values
  275. 17:12in almost all scientific cameras
  276. 17:14will have some offset value,
  277. 17:16for example, 100 added to them.
  278. 17:18So this straight-up division
  279. 17:20is not serving any purpose at all.
  280. 17:23Another common misconception
  281. 17:24is thinking that
  282. 17:25it in some way represents
  283. 17:27signal-to-noise
  284. 17:28to subtract background pixel values
  285. 17:31from peak pixel values.
  286. 17:32Like, say we take our value,
  287. 17:34you know, 140,
  288. 17:35whatever it is,
  289. 17:36for the average of this background area,
  290. 17:37and subtract it from 640,
  291. 17:39and that gives us a signal of 500,
  292. 17:42and trying to make conclusions
  293. 17:44based on that.
  294. 17:44That's also not correct
  295. 17:47for calculating a signal-to-noise ratio
  296. 17:49or for judging what's happening
  297. 17:50from a noise perspective
  298. 17:52in our image.
  299. 17:53Again, it's not serving
  300. 17:55any purpose, really.
  301. 17:57A slightly less wrong,
  302. 17:59but still completely wrong,
  303. 18:00approach is to divide
  304. 18:03our peak pixel value
  305. 18:05by the standard deviation
  306. 18:07of our image background.
  307. 18:09There's no way, basically,
  308. 18:14to access the noise characteristics
  309. 18:17of our camera
  310. 18:18from the image that we've acquired.
  311. 18:20It simply doesn't work like that.
  312. 18:22We need to access
  313. 18:23those noise characteristics
  314. 18:24from completely independent measurements,
  315. 18:27or, more likely,
  316. 18:29from the specification sheet
  317. 18:30of the camera,
  318. 18:31or from, potentially,
  319. 18:33camera manufacturers
  320. 18:34might include some kind of
  321. 18:36calibration sheet
  322. 18:37or certificate of performance
  323. 18:38with scientific cameras
  324. 18:40where engineers have
  325. 18:42independently measured
  326. 18:43the noise characteristics
  327. 18:44of cameras,
  328. 18:46and they might include
  329. 18:47that sheet with the camera.
  330. 18:48That will be the most accurate way
  331. 18:50to judge the noise
  332. 18:51of a camera.
  333. 18:53What you can't do
  334. 18:54is look at an image like this
  335. 18:56and make a conclusion
  336. 18:57about the noise in the image
  337. 18:58based on the background pixel values.
  338. 19:03For one thing,
  339. 19:04there might well be collected photons
  340. 19:06in those pixels,
  341. 19:07which will, of course,
  342. 19:08contribute to a standard
  343. 19:10deviation measurement
  344. 19:11and then who are effectively
  345. 19:14penalising cameras
  346. 19:15for being sensitive
  347. 19:16and capturing photons
  348. 19:17because we think
  349. 19:18those photons are noise.
  350. 19:20There's all sorts of problems
  351. 19:21that we come across
  352. 19:22when we attempt to measure
  353. 19:23signal-to-noise ratio
  354. 19:24from a single image.
  355. 19:26But there are many, many
  356. 19:28creative ways
  357. 19:29to calculate
  358. 19:29signal-to-noise ratio
  359. 19:30and, unfortunately,
  360. 19:32they will probably
  361. 19:32all be completely wrong.
  362. 19:34There is basically
  363. 19:35only one correct way
  364. 19:37to do it, unfortunately.
  365. 19:40But at least
  366. 19:41it's simple enough
  367. 19:42to understand
  368. 19:43once you understand it
  369. 19:44and it's a fairly easy
  370. 19:46calculation to do.
  371. 19:47So we'll do it
  372. 19:47on the next slide.
  373. 19:49But there are a few things
  374. 19:50that we do need to know,
  375. 19:51as I've mentioned,
  376. 19:52to calculate this.
  377. 19:53One absolutely essential part
  378. 19:55is we need to know
  379. 19:57the camera gain
  380. 19:58with the current settings
  381. 20:00of the camera
  382. 20:00in grey levels
  383. 20:02per electron.
  384. 20:04One thing I didn't touch on
  385. 20:06when we were exploring
  386. 20:06these misconceptions
  387. 20:07is that all of these values
  388. 20:09are in grayscales,
  389. 20:11not in any form
  390. 20:12of objective units
  391. 20:14like photoelectrons.
  392. 20:16As we saw
  393. 20:17in the gain section
  394. 20:18of this course,
  395. 20:20the engineers
  396. 20:21who design the camera
  397. 20:22can fairly arbitrarily
  398. 20:23set the conversion scale,
  399. 20:26the gain,
  400. 20:26but the conversion
  401. 20:27between photoelectrons
  402. 20:28and grey levels.
  403. 20:29If we're trying to say,
  404. 20:31OK, we've got lots of signal
  405. 20:32because the number is 644
  406. 20:34and that's quite high,
  407. 20:36you know,
  408. 20:37we could have another
  409. 20:37camera mode
  410. 20:38where the exact same signal
  411. 20:40might be represented
  412. 20:41as 6,440.
  413. 20:46That doesn't mean
  414. 20:47that there's more signal.
  415. 20:48It simply means
  416. 20:49that the same signal
  417. 20:50is being represented
  418. 20:51with a different gain.
  419. 20:52Yet, if we try
  420. 20:53and make signal-to-noise
  421. 20:54ratio calculations
  422. 20:55purely based on image values
  423. 20:57in this way,
  424. 20:58that's almost certainly
  425. 20:59going to throw us off.
  426. 21:00So, we need to convert back
  427. 21:01to objective units
  428. 21:03of photoelectrons
  429. 21:04for our intensities.
  430. 21:06And to do that,
  431. 21:07we absolutely need
  432. 21:08to know the camera gain.
  433. 21:11We also need to know
  434. 21:12the camera offset,
  435. 21:13which is the value
  436. 21:14that the camera outputs
  437. 21:15at zero incident signal.
  438. 21:17For many cameras,
  439. 21:18this is 100,
  440. 21:19but it's important
  441. 21:19to check for your camera.
  442. 21:21One way to check this
  443. 21:23is to cut off
  444. 21:24all light to the camera,
  445. 21:25put on a lens cap,
  446. 21:27for example,
  447. 21:28and take a number of frames,
  448. 21:30maybe 10 or 100 frames
  449. 21:32with no photons
  450. 21:33hitting the camera at all,
  451. 21:35and measure the average value
  452. 21:36of all of the pixels
  453. 21:37of all of those frames.
  454. 21:39And that will tell you
  455. 21:40the camera offset,
  456. 21:41but it might well be specified
  457. 21:43by the camera manufacturer
  458. 21:44or set to some nice,
  459. 21:46round, obvious number
  460. 21:47like 100,
  461. 21:48in which case,
  462. 21:48it's fairly simple.
  463. 21:52Another thing
  464. 21:52that we need to know,
  465. 21:53as I mentioned,
  466. 21:54is the noise characteristics
  467. 21:56That includes the read noise
  468. 21:58and the dark current value.
  469. 22:00If we're using EMCCDs,
  470. 22:02then this is a more
  471. 22:03complicated process
  472. 22:04that we're not going to talk
  473. 22:05about in this fairly short course.
  474. 22:07But for CMOS and CCD cameras,
  475. 22:09all we need to know
  476. 22:10is the read noise
  477. 22:11and the dark current value.
  478. 22:16And we also need to know
  479. 22:17our peak or chosen signal value.
  480. 22:20And this is important
  481. 22:21to mention because
  482. 22:22one thing that I've
  483. 22:23slightly glossed over so far
  484. 22:24is that in fact,
  485. 22:26every pixel of an image
  486. 22:28has its own signal
  487. 22:29to noise ratio value.
  488. 22:31Of course,
  489. 22:32every different pixel
  490. 22:33has collected
  491. 22:34a different amount
  492. 22:34of signal.
  493. 22:35That's actually
  494. 22:36what our image represents,
  495. 22:37different signals
  496. 22:37across the pixels.
  497. 22:40And of course,
  498. 22:40different signals
  499. 22:41means different
  500. 22:41signal to noise ratio values.
  501. 22:43So the question is,
  502. 22:44when we talk about an image
  503. 22:46having a certain
  504. 22:48what do we mean?
  505. 22:49What's useful for us to mean?
  506. 22:51And typically,
  507. 22:52we'll calculate this
  508. 22:54based on the peak value
  509. 22:56of the signal
  510. 22:58within an object of interest.
  511. 23:00and that might not be
  512. 23:02the brightest point
  513. 23:02in the entire image.
  514. 23:03That might be
  515. 23:04just the part of the image
  516. 23:05that we're most interested in.
  517. 23:06Or sometimes we might
  518. 23:07take an average
  519. 23:08across a small area
  520. 23:10of the bright signal
  521. 23:12from our object of interest.
  522. 23:16What we can't do
  523. 23:17is take an average
  524. 23:19for every pixel
  525. 23:20of the image
  526. 23:21because of course,
  527. 23:22you can probably imagine
  528. 23:23that if you have
  529. 23:24a single bright area
  530. 23:26within a largely dark image,
  531. 23:29the signal to noise ratio
  532. 23:30in dark pixels
  533. 23:31is going to be
  534. 23:32very, very low,
  535. 23:33maybe even one or less.
  536. 23:36And therefore,
  537. 23:37the more dark pixels we have,
  538. 23:39the more that will
  539. 23:39throw off our average
  540. 23:41and not represent
  541. 23:41really what's happening.
  542. 23:43So what's typically done
  543. 23:44is we'll take
  544. 23:45the brightest point
  545. 23:46or an average
  546. 23:48of some bright pixels
  547. 23:49from an object of interest
  548. 23:51and call that
  549. 23:52our signal value,
  550. 23:54our peak or chosen signal value
  551. 23:55in grey levels
  552. 23:57or ADUs.
  553. 24:01So with all of that said,
  554. 24:02how do we calculate
  555. 24:05Here's the formula.
  556. 24:07Our signal to noise ratio
  557. 24:08is given by our signal
  558. 24:10divided by our noise.
  559. 24:13Though two things to note here
  560. 24:15with this first left-hand side
  561. 24:17of the equation
  562. 24:18is that our signal
  563. 24:19is in photoelectrons,
  564. 24:21as I'd mentioned.
  565. 24:22That's very, very important.
  566. 24:24Our noise then
  567. 24:26is added up
  568. 24:29our various noise sources,
  569. 24:31the three noise sources
  570. 24:32that we talked about,
  571. 24:32the photon shot noise,
  572. 24:34the read noise
  573. 24:35and the dark current.
  574. 24:36It's added up
  575. 24:37as the squares
  576. 24:38of these values.
  577. 24:40We square them,
  578. 24:41add them
  579. 24:41and then take
  580. 24:42the square root
  581. 24:43and that's how noises
  582. 24:44have to be added together.
  583. 24:47So on the right-hand side
  584. 24:48of the equation
  585. 24:49we have the full form
  586. 24:50of this
  587. 24:50and here you'll notice
  588. 24:52that the signal
  589. 24:53in electrons
  590. 24:54occurs twice
  591. 24:55in the formula.
  592. 24:56That's because on the top
  593. 24:57that's simply our signal
  594. 24:58but on the bottom
  595. 24:59that's our
  596. 25:01photon shot noise term
  597. 25:03which if you recall
  598. 25:04photon shot noise's
  599. 25:06noise contribution
  600. 25:07is given by the square root
  601. 25:09of the signal
  602. 25:09that we've collected
  603. 25:10as a Poisson statistics
  604. 25:12noise source.
  605. 25:14But because we're squaring
  606. 25:15our terms
  607. 25:16before they go
  608. 25:16into this equation
  609. 25:17we've squared
  610. 25:18that square root
  611. 25:19away
  612. 25:20so it's now just
  613. 25:21the signal once again.
  614. 25:22So on the bottom
  615. 25:23we have the square root
  616. 25:24plus our read noise
  617. 25:26squared
  618. 25:27plus our
  619. 25:28dark current term.
  620. 25:30This is given
  621. 25:31by our dark current
  622. 25:32specification
  623. 25:33from the specification
  624. 25:34sheet
  625. 25:35in electrons
  626. 25:36per pixel
  627. 25:37per second
  628. 25:37and where
  629. 25:39we have
  630. 25:40the exposure time
  631. 25:41as t
  632. 25:41in there as well.
  633. 25:43And once again
  634. 25:44this is a Poisson
  635. 25:45behaving noise source
  636. 25:46as we introduced
  637. 25:47in that section
  638. 25:48where the square root
  639. 25:49gives us the actual
  640. 25:50noise contribution
  641. 25:51and then we've squared it
  642. 25:53so that square root
  643. 25:54has gone away
  644. 25:54once again.
  645. 25:56So this is the one
  646. 25:57correct way to calculate
  647. 25:59our signal-to-noise ratio.
  648. 26:02As a quick reminder
  649. 26:03how do we get
  650. 26:04the signal in
  651. 26:05photoelectrons?
  652. 26:07Well once we know
  653. 26:08the gain
  654. 26:08and the offset
  655. 26:10our signal in electrons
  656. 26:11is given by
  657. 26:12our signal in grey levels
  658. 26:13that was 644
  659. 26:15on the previous slide
  660. 26:16subtracting
  661. 26:18our offset value
  662. 26:20for example
  663. 26:20100
  664. 26:21if it is that
  665. 26:22for your camera
  666. 26:22divided by
  667. 26:25of your camera
  668. 26:26in the given setting
  669. 26:27that you're using
  670. 26:29per electron.
  671. 26:32So with that
  672. 26:33you'll get a number
  673. 26:34out the other end
  674. 26:35which represents
  675. 26:36your signal-to-noise ratio.
  676. 26:40We can use this
  677. 26:41formula
  678. 26:41to work out
  679. 26:42which terms
  680. 26:43are more important.
  681. 26:44So for example
  682. 26:45if you're trying
  683. 26:46to work out
  684. 26:47whether your read noise
  685. 26:48or your dark current
  686. 26:49is more significant
  687. 26:51if we work out
  688. 26:53this equation
  689. 26:54in long form
  690. 26:56maybe in Excel
  691. 26:57or a spreadsheet software
  692. 26:58we can see
  693. 26:59the relative size
  694. 27:01of the read noise squared
  695. 27:02or the d times t
  696. 27:04parts of the equation
  697. 27:05to see if read noise
  698. 27:07or dark current
  699. 27:08is something that we need
  700. 27:09to concentrate more
  701. 27:10on reducing.
  702. 27:11We can also see
  703. 27:12the different
  704. 27:13effects of
  705. 27:16changing pixel size
  706. 27:17which will change
  707. 27:18the amount of signal
  708. 27:20that we can collect.
  709. 27:21In general
  710. 27:22what we can do
  711. 27:23with this formula
  712. 27:23is just compare
  713. 27:24the results
  714. 27:25and compare
  715. 27:25the sensitivities
  716. 27:26of different cameras
  717. 27:28and different circumstances
  718. 27:29when getting
  719. 27:30an objective number
  720. 27:31out
  721. 27:32which will tell us
  722. 27:33this is how good
  723. 27:34our image quality
  724. 27:34is going to be.
  725. 27:35This is a very
  726. 27:36powerful formula
  727. 27:37once we get accustomed
  728. 27:38to using it.
  729. 27:42So on to some
  730. 27:43more qualitative
  731. 27:44measurements
  732. 27:45of the quality
  733. 27:46of images
  734. 27:47signal-to-noise
  735. 27:48is not the only
  736. 27:49influential factor
  737. 27:50on the quality
  738. 27:51of our images
  739. 27:52there are things
  740. 27:52like artifacts
  741. 27:53that we need
  742. 27:54to take into account.
  743. 27:56Artifacts and patterns
  744. 27:57can be present
  745. 27:57in images
  746. 27:58and that can be
  747. 28:00an issue
  748. 28:00for the appearance
  749. 28:01of our images
  750. 28:02but also sometimes
  751. 28:04for analysis routines
  752. 28:05that can get thrown
  753. 28:06off by artifacts.
  754. 28:09Some common artifacts
  755. 28:10that you might come
  756. 28:11across in imaging
  757. 28:12are first of all
  758. 28:13fixed pattern column
  759. 28:14noise on the left
  760. 28:15hand side here
  761. 28:16and this is a problem
  762. 28:19that CMOS cameras
  763. 28:20can sometimes exhibit
  764. 28:21where as we mentioned
  765. 28:23in the readout section
  766. 28:25CMOS cameras
  767. 28:26have a different
  768. 28:27analog to digital converter
  769. 28:29on every column
  770. 28:30of the sensor.
  771. 28:32These analog to digital
  772. 28:34converters can sometimes
  773. 28:35if they're not
  774. 28:37adequately calibrated
  775. 28:38which is quite
  776. 28:40an intensive process
  777. 28:41if they're not
  778. 28:42adequately calibrated
  779. 28:43by the camera manufacturer
  780. 28:45they can have
  781. 28:46slight offset variations
  782. 28:49this value that
  783. 28:51the camera exhibits
  784. 28:51at no signal
  785. 28:52and these slight
  786. 28:54differences in offset
  787. 28:54can transmit
  788. 28:56in the form
  789. 28:57of a pattern
  790. 28:58on which low light
  791. 29:00signals will be
  792. 29:01overlaid
  793. 29:02and this can sometimes
  794. 29:03be problematic
  795. 29:03and at the very least
  796. 29:05be unsightly
  797. 29:06and not nice
  798. 29:08to look at.
  799. 29:11We can also have
  800. 29:12hot pixels
  801. 29:13where individual pixels
  802. 29:14have particularly
  803. 29:15high dark currents
  804. 29:17or otherwise
  805. 29:18have higher values
  806. 29:19than they should
  807. 29:19and by their
  808. 29:21higher values
  809. 29:22than their neighbours.
  810. 29:23We can see this
  811. 29:24on the right hand
  812. 29:25side image
  813. 29:26with these little
  814. 29:27sort of starry night
  815. 29:28sky like
  816. 29:29white pinpricks
  817. 29:30that we have
  818. 29:31on the image.
  819. 29:32This can sometimes
  820. 29:33throw off image scaling
  821. 29:34and throw off
  822. 29:34analysis routines
  823. 29:35and it just again
  824. 29:37generally doesn't look
  825. 29:38very good.
  826. 29:39In both cases though
  827. 29:40these are problems
  828. 29:42that can be avoided
  829. 29:43by camera manufacturers
  830. 29:44or indeed
  831. 29:45they might simply
  832. 29:46not be issues
  833. 29:47for the type of imaging
  834. 29:48that you're doing.
  835. 29:52One specific
  836. 29:53measure of image quality
  837. 29:56that's sometimes
  838. 29:56offered by camera
  839. 29:57manufacturers
  840. 29:58is DSNU
  841. 30:00and PRNU
  842. 30:01and this is
  843. 30:02one attempted
  844. 30:03solution
  845. 30:04to the problem
  846. 30:05of representing image
  847. 30:06quality on a
  848. 30:08specification sheet
  849. 30:09for a camera
  850. 30:09with simple
  851. 30:10numeric values.
  852. 30:12Unfortunately
  853. 30:12it's not
  854. 30:13particularly effective
  855. 30:15but this is
  856. 30:18one attempt
  857. 30:18to do it
  858. 30:18and
  859. 30:19one thing
  860. 30:22to bear in mind
  861. 30:22is that
  862. 30:23the DSNU
  863. 30:24and PRNU
  864. 30:25which I'll define
  865. 30:26in a second
  866. 30:26are simple
  867. 30:28numbers
  868. 30:29which attempt
  869. 30:30to tell
  870. 30:30a story
  871. 30:33about a far
  872. 30:34more complicated
  873. 30:34and multifaceted
  874. 30:37issue
  875. 30:38of patterns
  876. 30:39and artifacts
  877. 30:39and they can only
  878. 30:42go so far
  879. 30:43but DSNU
  880. 30:45is called
  881. 30:45the dark signal
  882. 30:47non-uniformity
  883. 30:48and this is an attempt
  884. 30:49to represent
  885. 30:50that offset variation
  886. 30:51of fixed pattern
  887. 30:52column noise
  888. 30:53amongst other issues
  889. 30:54that I talked about
  890. 30:55on the previous slide.
  891. 30:57So this is a numerical
  892. 30:58representation
  893. 30:58of the variation
  894. 31:00of pixel offset
  895. 31:01and it's calculated
  896. 31:03by taking an average
  897. 31:04of tens of thousands
  898. 31:06of frames
  899. 31:07with no light
  900. 31:08hitting the camera
  901. 31:09and once we take
  902. 31:11that average frame
  903. 31:12one frame
  904. 31:13representing
  905. 31:14the average value
  906. 31:15of each pixel
  907. 31:16in that entire
  908. 31:16stack of images
  909. 31:18we take the standard
  910. 31:19deviation
  911. 31:19of that frame
  912. 31:20and that represents
  913. 31:22our dark signal
  914. 31:23non-uniformity.
  915. 31:25This is typically
  916. 31:25represented in units
  917. 31:27of electrons
  918. 31:27which allows us
  919. 31:29to easily compare it
  920. 31:30to camera read noise
  921. 31:31which is also given
  922. 31:33and also represents
  923. 31:35a variation
  924. 31:36in our pixels
  925. 31:36so it makes sense
  926. 31:38to compare these two.
  927. 31:39DSNU is often lower
  928. 31:41than camera read noise
  929. 31:42and if it's lower
  930. 31:43by much
  931. 31:44then it's unlikely
  932. 31:45to be playing a role
  933. 31:46in our imaging
  934. 31:47or unlikely to see
  935. 31:48it very much.
  936. 31:50However
  937. 31:50there is one case
  938. 31:52in which even small
  939. 31:54DSNU
  940. 31:54or small variations
  941. 31:56in offsets
  942. 31:57are likely to stay visible
  943. 31:59and that's
  944. 32:00the example
  945. 32:01of fixed pattern
  946. 32:01column noise
  947. 32:02that we saw
  948. 32:03in the last slide.
  949. 32:04As we can see
  950. 32:05for this image
  951. 32:06before corrections
  952. 32:07for pixel offsets
  953. 32:09are applied
  954. 32:10there's quite a lot
  955. 32:11of vertical striping
  956. 32:12in the image
  957. 32:12there's quite a lot
  958. 32:14but our DSNU
  959. 32:15is still really low
  960. 32:16it's still well below
  961. 32:17what a read noise
  962. 32:18value might be
  963. 32:19of at least
  964. 32:20one electron.
  965. 32:22So this low
  966. 32:22DSNU value
  967. 32:23isn't really representing
  968. 32:25the quality
  969. 32:26of this image
  970. 32:26and this is the primary
  971. 32:27problem with DSNU
  972. 32:29measurements.
  973. 32:32PRNU
  974. 32:32is similar to DSNU
  975. 32:34in that it's a numerical
  976. 32:35representation of variation
  977. 32:37but this time
  978. 32:37it's of the gain values
  979. 32:39of pixels
  980. 32:40which can be slightly
  981. 32:41different
  982. 32:42for CMOS cameras
  983. 32:44from pixel to pixel
  984. 32:45but it's only a representation
  985. 32:47at one specific
  986. 32:48intensity level
  987. 32:49which is one of the
  988. 32:51limitations of PRNU
  989. 32:53as a measurement.
  990. 32:55The variation
  991. 32:57of gain
  992. 32:58across different
  993. 33:00intensity levels
  994. 33:02is called
  995. 33:03non-linearity
  996. 33:04and in general
  997. 33:05all non-scientific cameras
  998. 33:08are highly non-linear
  999. 33:09they actually
  1000. 33:10don't respond linearly
  1001. 33:11to lights
  1002. 33:12with more signal
  1003. 33:14directly meaning
  1004. 33:15higher outputted values
  1005. 33:17in the case
  1006. 33:19of non-scientific cameras.
  1007. 33:20Scientific cameras
  1008. 33:21are deliberately designed
  1009. 33:22to be as linear
  1010. 33:24as possible
  1011. 33:25and they are
  1012. 33:25significantly more linear
  1013. 33:27than non-scientific cameras
  1014. 33:28but there still might be
  1015. 33:30some small variations
  1016. 33:33won't really capture that
  1017. 33:34because it's only choosing
  1018. 33:35one specific intensity level
  1019. 33:37to represent things at.
  1020. 33:39But once again
  1021. 33:40it's a standard deviation
  1022. 33:41of tens of thousands
  1023. 33:43of images
  1024. 33:43or I should say
  1025. 33:45of the average image
  1026. 33:46formed from tens of thousands
  1027. 33:48this time
  1028. 33:49at one fixed
  1029. 33:50illumination intensity
  1030. 33:51and it's typically shown
  1031. 33:53as a percentage
  1032. 33:54of the chosen signal
  1033. 33:55which is typically chosen
  1034. 33:57as half the camera's
  1035. 33:58full well capacity.
  1036. 34:00So in this case
  1037. 34:01if we have a look
  1038. 34:02at an image
  1039. 34:03that the PRNU
  1040. 34:04is formed based on
  1041. 34:05this average image
  1042. 34:06of all these frames
  1043. 34:06we can see
  1044. 34:07that there's some slight
  1045. 34:09sort of glow
  1046. 34:09in the centre of the image
  1047. 34:10and that our PRNU
  1048. 34:13is around 1.6%.
  1049. 34:15This is maybe going
  1050. 34:16some way
  1051. 34:17to represent
  1052. 34:17that there's
  1053. 34:18a slight issue
  1054. 34:19with this image
  1055. 34:21before correction.
  1056. 34:26We've now added
  1057. 34:29in the images
  1058. 34:29after correction
  1059. 34:31and after calibration
  1060. 34:32for these issues
  1061. 34:33and as we can see
  1062. 34:34the DSNU image
  1063. 34:36is now clean
  1064. 34:37of that fixed pattern
  1065. 34:39and there's some
  1066. 34:41improvement too
  1067. 34:42in the sort of
  1068. 34:43general noisy appearance
  1069. 34:44of the zoomed in area
  1070. 34:47but as you can see
  1071. 34:48our DSNU value
  1072. 34:50hasn't actually changed
  1073. 34:51all that much
  1074. 34:52from 0.3%
  1075. 34:53to 0.2 electrons
  1076. 34:55isn't really
  1077. 34:56a large enough change
  1078. 34:57the quite large change
  1079. 35:00in image quality
  1080. 35:01that we have
  1081. 35:01between these two
  1082. 35:02background images.
  1083. 35:04With PRNU however
  1084. 35:06we've now got a value
  1085. 35:08of 0.3%
  1086. 35:09and our image
  1087. 35:10does look significantly better
  1088. 35:11so PRNU might be
  1089. 35:13a better representation
  1090. 35:15but still we're likely
  1091. 35:16to have this same issue
  1092. 35:18of patterns
  1093. 35:18not being truly
  1094. 35:19represented by PRNU.
  1095. 35:21Another factor
  1096. 35:24is that for low light
  1097. 35:26levels
  1098. 35:27PRNU is not going
  1099. 35:28to be at all
  1100. 35:29significant
  1101. 35:30compared to other
  1102. 35:31noise sources
  1103. 35:32and for many
  1104. 35:34imaging situations
  1105. 35:35we're not going
  1106. 35:36to be working
  1107. 35:37with exactly
  1108. 35:38half the cameras
  1109. 35:39full well
  1110. 35:39and then the PRNU
  1111. 35:41might even be different
  1112. 35:42at higher or lower
  1113. 35:43signals
  1114. 35:43so it's quite difficult
  1115. 35:46the entire response
  1116. 35:47of a camera
  1117. 35:47with PRNU
  1118. 35:49so in general
  1119. 35:50PRNU should be treated
  1120. 35:51with a little bit
  1121. 35:52of scepticism
  1122. 35:52as should DSNU
  1123. 35:54and seeing the actual
  1124. 35:55images that the camera
  1125. 35:56produces
  1126. 35:57especially at low
  1127. 35:58light levels
  1128. 35:59should be the measure
  1129. 36:00of image quality.
  1130. 36:02All of that to say
  1131. 36:04though
  1132. 36:04this is only when
  1133. 36:05image quality
  1134. 36:06at the low end
  1135. 36:07of the spectrum
  1136. 36:08especially in the case
  1137. 36:09of DSNU
  1138. 36:09is really really important
  1139. 36:11and for many
  1140. 36:12imaging applications
  1141. 36:13these variations
  1142. 36:14are going to be
  1143. 36:15so small
  1144. 36:16that there's not
  1145. 36:17going to be
  1146. 36:17any visual effects
  1147. 36:18on our image
  1148. 36:19we're going to talk
  1149. 36:20about this
  1150. 36:20a little bit more later
  1151. 36:22so finally
  1152. 36:25to have a look
  1153. 36:26at some image
  1154. 36:26patterns and artifacts
  1155. 36:28that DSNU
  1156. 36:30don't represent
  1157. 36:31neither can represent
  1158. 36:33dynamic artifacts
  1159. 36:34that change
  1160. 36:35from frame to frame
  1161. 36:36because both of these
  1162. 36:37are acquired
  1163. 36:38through averaging
  1164. 36:39over multiple frames
  1165. 36:41also neither
  1166. 36:43can represent
  1167. 36:43structured noise
  1168. 36:44which has a
  1169. 36:45disproportionate effect
  1170. 36:46on image quality
  1171. 36:47versus the standard
  1172. 36:48deviation
  1173. 36:49of the image
  1174. 36:50pixels that are
  1175. 36:52too similar
  1176. 36:53to each other
  1177. 36:53as in the case
  1178. 36:54of a structured noise
  1179. 36:55that's not really
  1180. 36:56going to change
  1181. 36:57the standard deviation
  1182. 36:58all that much
  1183. 36:59and this is a problem
  1184. 37:01with measuring
  1185. 37:03things in this way
  1186. 37:04and representing
  1187. 37:05an entire image
  1188. 37:06as one single value
  1189. 37:07on the right here
  1190. 37:10we have an example
  1191. 37:11of a dynamic
  1192. 37:12artifact
  1193. 37:13where we can
  1194. 37:13sometimes get
  1195. 37:14a scrolling pattern
  1196. 37:15of bright or dark
  1197. 37:17rows of the camera
  1198. 37:18this is quite a common
  1199. 37:20issue that you might
  1200. 37:21come across sometimes
  1201. 37:22so in summary
  1202. 37:25in this section
  1203. 37:27we looked at the
  1204. 37:29first off we examined
  1205. 37:32the histogram
  1206. 37:32and scaling settings
  1207. 37:33and this is important
  1208. 37:35to make sure that
  1209. 37:36your image scaling
  1210. 37:36settings are set
  1211. 37:37appropriately
  1212. 37:38for your imaging
  1213. 37:39application
  1214. 37:40these might sometimes
  1215. 37:41require manually
  1216. 37:43setting
  1217. 37:44in low light imaging
  1218. 37:46it's more important
  1219. 37:47to set them
  1220. 37:48appropriately
  1221. 37:49than in higher
  1222. 37:50light settings
  1223. 37:51our signal to noise
  1224. 37:54ratio is one of the
  1225. 37:55most important factors
  1226. 37:56in imaging
  1227. 37:57especially at low light
  1228. 37:58where it might be
  1229. 37:59the primary barrier
  1230. 38:00to our image quality
  1231. 38:01and we can improve it
  1232. 38:02either by increasing
  1233. 38:03the signal
  1234. 38:04or by reducing noise
  1235. 38:05and we can calculate
  1236. 38:09there's only one
  1237. 38:10correct way to do it
  1238. 38:11and you do need to know
  1239. 38:13some properties of the
  1240. 38:14camera such as the gain
  1241. 38:15and the offset
  1242. 38:16and those noise
  1243. 38:17characteristics
  1244. 38:18next we had a more
  1245. 38:21qualitative look at
  1246. 38:22image quality
  1247. 38:23looking at DSNU
  1248. 38:25which are attempts
  1249. 38:26to represent image
  1250. 38:27quality numerically
  1251. 38:29they can play some role
  1252. 38:30they can give some
  1253. 38:31indication of what's
  1254. 38:32going on
  1255. 38:32but what they won't do
  1256. 38:34is tell the whole story
  1257. 38:35we also looked at
  1258. 38:39qualitatively
  1259. 38:42with patterns
  1260. 38:43and artifacts
  1261. 38:43both dynamic
  1262. 38:44and static
  1263. 38:47both structured
  1264. 38:48and random
  1265. 38:49and all of these
  1266. 38:50can affect your image
  1267. 38:51in ways not captured
  1268. 38:53by the signal to noise ratio
  1269. 38:55so on to some examples
  1270. 38:59and applications
  1271. 38:59for this section
  1272. 39:01first of all
  1273. 39:02exploring what histogram
  1274. 39:03and scaling settings
  1275. 39:05might be appropriate
  1276. 39:05for different situations
  1277. 39:07one thing to say
  1278. 39:09is that if you're using
  1279. 39:10a high bit depth
  1280. 39:11i.e. it's more than
  1281. 39:12an 8-bit camera
  1282. 39:14typically software
  1283. 39:15can handle image scaling
  1284. 39:16for you
  1285. 39:17if your image values
  1286. 39:18are way above
  1287. 39:19this sort of 256 level
  1288. 39:21if they're
  1289. 39:23if they're
  1290. 39:23you know
  1291. 39:24intensity values
  1292. 39:25in the thousands
  1293. 39:26then it's very
  1294. 39:27it's much less likely
  1295. 39:29that you're going to need
  1296. 39:29to worry about
  1297. 39:30setting your image scaling
  1298. 39:31to particular values
  1299. 39:33or particular settings
  1300. 39:35if however you're working
  1301. 39:37in low light conditions
  1302. 39:38sometimes scaling
  1303. 39:40can be really important
  1304. 39:41to manage
  1305. 39:41to give you the best contrast
  1306. 39:43for seeing what's going on
  1307. 39:44if your maximum signal
  1308. 39:46just as a rule of thumb
  1309. 39:48if your maximum signal
  1310. 39:50minus your minimum signal
  1311. 39:52which is usually
  1312. 39:52the offset value
  1313. 39:53if that's less than 256
  1314. 39:56so less than our
  1315. 39:58number of monitor
  1316. 39:59intensity values
  1317. 40:01that we're going to be
  1318. 40:01scaling against
  1319. 40:02it might be really important
  1320. 40:04to maximize
  1321. 40:05our contrast
  1322. 40:07via setting
  1323. 40:08the appropriate
  1324. 40:08image scaling settings
  1325. 40:09and this might not always
  1326. 40:12be very well set
  1327. 40:13by automatic
  1328. 40:14image scaling
  1329. 40:16adjustments
  1330. 40:17in software
  1331. 40:17sometimes you might have
  1332. 40:19to do this by hand
  1333. 40:19and you might have
  1334. 40:21a benefit in contrast
  1335. 40:22by setting the image scaling
  1336. 40:24by hand
  1337. 40:24in these low light situations
  1338. 40:26a good rule of thumb
  1339. 40:29in low light imaging
  1340. 40:30is to set the lower bound
  1341. 40:32to that image offset
  1342. 40:33which is often 100
  1343. 40:34this means that
  1344. 40:36at the very least
  1345. 40:37you're not going to be
  1346. 40:37including noisy areas
  1347. 40:40of the histogram
  1348. 40:43where you can sometimes
  1349. 40:44get values below
  1350. 40:47due to the presence
  1351. 40:49of noise in the image
  1352. 40:50which is both plus
  1353. 40:51and minus
  1354. 40:51in its effect on values
  1355. 40:54we can sometimes get
  1356. 40:55many pixels below
  1357. 40:57but all of that
  1358. 40:58is going to be noise
  1359. 40:59so if we set the offset
  1360. 41:00if we set the lower bound
  1361. 41:02of our image scaling
  1362. 41:03to the offset
  1363. 41:04then we're going to
  1364. 41:05maximize our contrast
  1365. 41:07through that
  1366. 41:08sometimes
  1367. 41:10if we're using a fixed
  1368. 41:12histogram scaling
  1369. 41:13that can help
  1370. 41:14if we're attempting
  1371. 41:15to judge
  1372. 41:15the change in signal
  1373. 41:17from image to image
  1374. 41:18or from different parts
  1375. 41:19of a sample
  1376. 41:20as we move around
  1377. 41:22or over time
  1378. 41:23it will help us
  1379. 41:25assess relative intensities
  1380. 41:27or intensity changes
  1381. 41:28by eye
  1382. 41:29because if we have
  1383. 41:30automatic image scaling
  1384. 41:32and the entire image
  1385. 41:34changes in its intensity
  1386. 41:35maybe through photo bleaching
  1387. 41:37through the reduction
  1388. 41:38in fluorescent signal
  1389. 41:39we might not notice that
  1390. 41:41because the image scaling
  1391. 41:42will simply adapt
  1392. 41:43to the new brightness settings
  1393. 41:45and our monitor
  1394. 41:46will display it
  1395. 41:47with just the same brightness
  1396. 41:48if we want to avoid
  1397. 41:50this kind of
  1398. 41:51loss of information
  1399. 41:53we can fix
  1400. 41:55the histogram scaling
  1401. 41:56and then
  1402. 41:57if the image gets darker
  1403. 41:59or brighter
  1404. 41:59we'll see it getting darker
  1405. 42:01or brighter
  1406. 42:01to summarize
  1407. 42:05and give some examples
  1408. 42:06for signal to noise ratio
  1409. 42:08once again
  1410. 42:09your signal to noise ratio
  1411. 42:11requirements
  1412. 42:11will vary massively
  1413. 42:13depending on the application
  1414. 42:14and depending on
  1415. 42:15the scientific questions
  1416. 42:17you're attempting to answer
  1417. 42:18with your images
  1418. 42:19very few applications
  1419. 42:20only require detection
  1420. 42:22with a signal to noise ratio
  1421. 42:24of 2 to 3 to 1
  1422. 42:26in almost all cases
  1423. 42:30we need a better
  1424. 42:31than that
  1425. 42:32but it again depends
  1426. 42:34on what you're doing
  1427. 42:35many applications
  1428. 42:36will require
  1429. 42:37simply visually
  1430. 42:38high quality images
  1431. 42:39such as in
  1432. 42:40documentation imaging
  1433. 42:41this is achieved
  1434. 42:42around a signal to noise ratio
  1435. 42:44of around 20
  1436. 42:45as we saw before
  1437. 42:45and there's not going to be
  1438. 42:47a huge difference
  1439. 42:48visually
  1440. 42:49between say
  1441. 42:4920 and 22
  1442. 42:50or even 20 and 40
  1443. 42:53we might not
  1444. 42:54by eye
  1445. 42:54be able to see
  1446. 42:55a huge amount of difference
  1447. 42:56that said
  1448. 42:57there are some applications
  1449. 42:59that require
  1450. 43:00incredibly precise
  1451. 43:01intensity change measurements
  1452. 43:03and here
  1453. 43:04there's effectively
  1454. 43:05no limit
  1455. 43:06to the amount
  1456. 43:06of signal to noise ratio
  1457. 43:07improvement
  1458. 43:08that can be beneficial
  1459. 43:09to us
  1460. 43:09sometimes
  1461. 43:10signal to noise ratios
  1462. 43:11of a hundred
  1463. 43:12or more
  1464. 43:12maybe several hundred
  1465. 43:14can help measure
  1466. 43:15the tiniest
  1467. 43:16and most precise
  1468. 43:17of intensity changes
  1469. 43:18what high signal to noise
  1470. 43:20ratio allows us to do
  1471. 43:21when comparing to signals
  1472. 43:24is be confident
  1473. 43:25that any change
  1474. 43:26is down to a change
  1475. 43:27in that signal
  1476. 43:28and not simply
  1477. 43:29a change in the
  1478. 43:30manifestation
  1479. 43:31of the noise
  1480. 43:32in that camera
  1481. 43:33but remember
  1482. 43:36with all of this
  1483. 43:37sort of numerical
  1484. 43:38examining
  1485. 43:40and really focusing
  1486. 43:42on the details
  1487. 43:43of signal to noise
  1488. 43:43the fundamental question
  1489. 43:45is
  1490. 43:45if your image
  1491. 43:46looks good
  1492. 43:47and meets your requirements
  1493. 43:48for your analysis
  1494. 43:49that's the most important thing
  1495. 43:51and you don't necessarily
  1496. 43:53always need to worry
  1497. 43:54about such details
  1498. 43:55if your image
  1499. 43:56is good enough
  1500. 43:57if you're trying
  1501. 43:58to push things further
  1502. 43:59maybe it can be
  1503. 44:00very beneficial
  1504. 44:00to calculate
  1505. 44:02but it might not be
  1506. 44:03beneficial
  1507. 44:04or necessary
  1508. 44:04for every imaging application
  1509. 44:06as a summary
  1510. 44:09for DSNU
  1511. 44:10PRNU
  1512. 44:11and in general
  1513. 44:12patterns in our image
  1514. 44:13when are these likely
  1515. 44:14to be significant
  1516. 44:15for imaging
  1517. 44:16the answer is
  1518. 44:17mostly
  1519. 44:18if you're imaging
  1520. 44:19in low light conditions
  1521. 44:20as a rough rule of thumb
  1522. 44:22if you have less than
  1523. 44:24100 photons per pixel
  1524. 44:25at peak
  1525. 44:26we might have
  1526. 44:27a more significant
  1527. 44:28contribution
  1528. 44:30than DSNU
  1529. 44:31if these are unmanaged
  1530. 44:32as we saw the difference
  1531. 44:34between the calibrated
  1532. 44:35and uncalibrated
  1533. 44:36images earlier
  1534. 44:38when we were talking
  1535. 44:39about DSNU
  1536. 44:40a well managed
  1537. 44:42scientific camera
  1538. 44:43might have
  1539. 44:43very low contributions
  1540. 44:45from any form
  1541. 44:47in which case
  1542. 44:48it might never
  1543. 44:48really be visible
  1544. 44:49but if they're less managed
  1545. 44:51then if you're trying
  1546. 44:52to do low light work
  1547. 44:53they can sometimes
  1548. 44:55become an issue
  1549. 44:56similarly
  1550. 44:57if you're working
  1551. 44:59with very exact
  1552. 45:02intensity measurements
  1553. 45:03so you really care
  1554. 45:04precisely what the values
  1555. 45:05are
  1556. 45:06at very high light levels
  1557. 45:08i.e. close to the camera's
  1558. 45:09full well capacity
  1559. 45:10then PRNU
  1560. 45:11might become
  1561. 45:12a significant factor
  1562. 45:13for you to be aware of
  1563. 45:15and to try
  1564. 45:16and minimize
  1565. 45:17but in other circumstances
  1566. 45:22than these
  1567. 45:22these patterns
  1568. 45:23and issues
  1569. 45:25with image quality
  1570. 45:26might not be visible
  1571. 45:27at all
  1572. 45:28for your imaging conditions
  1573. 45:29this might simply
  1574. 45:30not be something
  1575. 45:31that you have to worry
  1576. 45:32about at all
  1577. 45:32with your imaging application
  1578. 45:33it really depends
  1579. 45:34on what you're doing
Embed this video with its transcript

Paste this into your page. The frame holds the player and the transcript; the link below it says where the transcript comes from.

토론

다음 단계에서 이름을 정하게 돼요. 이미 회원이신가요? 로그인하세요.

누군가 댓글을 달면 메일로 알려 드려요. 계정은 필요 없어요.

뉴스레터

새 기기, 가격, 바이오테크 뉴스를 담은 무료 뉴스레터를 받아보세요.