- Open image: `calibrated_16bit__cells_eres_noisy.tif`
- Note down the value and coordinate of the pixel at [218, 332]
- Save the image in **jpg** format
- Reopen the image
- Compare the pixel to your notes, did it change?
- Compare the value and coordinate of the pixel at [218, 332] to your notes, did it change?
Repeat above workflow, but
- adjust the image display before saving
- save in **png** instead of **tif** format
- open `xy_float__nuclei_probability.tif` and save as **png**
1. adjust the image display before saving
2. save as **png**
3. open `xy_float__nuclei_probability.tif` and save as **png**
### Formative assessment
What can I do to avoid data loss during image saving (multiple answers)?
What can I do to preserve image integrity during image saving (multiple answers)?
A. I always save in Tiff format, this is safe.
B. I always check pixel values and coordinates before and after saving.
C. I ask my colleagues in the lab and do what they recommend..
D. I keep a copy of the raw data.
1. I always save in Tiff format, this is safe.
2. I always check pixel values and coordinates before and after saving.
3. I ask my colleagues in the lab, and do what they do.
4. I keep a copy of the raw data.
## Image display adjustment
### Motivation
Images are just a collection of numbers. To visualise those numbers one needs to decide how to map them onto a color and a brightness. There is no default way of doing this. Thus one has be educated and thoughful about this topic. In fact, it is one of the great responsibilties of a microscopist to ajust the image display settings proplery.
Images are a collection of numbers. To visualise those numbers one needs to decide how to map them onto a color and a brightness. There is no default way of doing this. Thus one has be educated and thoughful about this topic. In fact, it is one of the great responsibilties of a microscopist to ajust the image display settings proplery.
### Concepts
### Image display concept map
<img src='https://g.gravizo.com/svg?
digraph G {
...
...
@@ -103,19 +104,12 @@ Images are just a collection of numbers. To visualise those numbers one needs to
- Open image: `xy_calibrated_16bit__nuclear_protein_control.tif`
...
...
@@ -135,26 +129,27 @@ What helps to scientifically convey image intensity information (multiple answer
3. Add a LUT calibration bar.
4. Use the same LUT for all images.
5. Adjust the LUT to the image's full bit-depth.
6. Never change the LUT of images! Always keep it as is.
6. Never change the LUT of images! Always keep as in raw data.
## High dynamic range image display
### Motivation
The intensity in images of biological samples can cover large ranges.
For example, a GFP tagged protein could occur in the same cell in a diffraction limited volume either 1 or 10000 times. The human visual system can only distinguish about 200 gray values
The number range in images of biological samples can cover large ranges.
For example, a GFP tagged protein could occur in the same cell at different locations either 1 or 10000 times. This means that the dynamic range can be 10^4 or more. Due to limitations of image display and preception such large dynamics ranges are difficult to display.
high_dynamic_range -> display [label=" is challenging"];
}
'/>
...
...
@@ -170,31 +165,32 @@ For example, a GFP tagged protein could occur in the same cell in a diffraction
What can you do to show images with a high dynamic range (multiple answers)?
A. Adjust the LUT that the relevant information can be seen.
B. Adjust the LUT that the relevant information can be seen, state that this has been done in the
figure legend, and show the same image with other LUT settings in the supplemental material.
A. Adjust the LUT such that the scientifically relevant information can be seen.
B. Adjust the LUT such that the scientifically relevant information can be seen,
- and state that the LUT has been adjusted in the figure legend
- and show the same image with other LUT settings in the supplemental material.
C. Try to find a LUT that shows all data.
D. Never use multi color LUTs, they are confusing.
E. Change microscope settings such that only relevant structures are visible, e.g. lower the gain such that
too dark objects have zero pixel values.
F. Avoid showing background noise, as this is distracting.
E. Already on the microscope change the settings such that only relevant structures are visible, e.g. lower the gain such that dark irrelevant objects have zero pixel values.
F. Adjust LUT settings such that background noise is not visible, because this is distracting.
G. Add a LUT calibration to the image, such that readers can see that not all information might be visible.
## Image math
It sometimes is necessary to change the numbers in images. It is important to understand how to do this properly in order to avoid uncontrolled artifacts.
### Motivation
It sometimes is necessary to change numberic content of images. It is important to understand how to do this properly in order to avoid uncontrolled artifacts.
What are good reasons to change the pixel values in an image?
A. For intensity measurements, the image background (e.g. camera based offset) should be subtracted from all pixels.
B. For threshold based image segmentation (object detection), it helps to filter noise in the image.
B. For threshold based image segmentation (object detection), it helps to first filter noise in the image.
C. For intensity measurements, it helps to filter noise in the image.
D. The image appears to dark, multiplication of all pixels by a constant number is a means to make it brighter..
E. For uneven illumination (e.g. occuring in wide-field microscopy with large camera chips), one should do flat-field correction.
F. Images taken on a different microscope had consitently lower gray values than on our usual microscope. It is useful to adjust the values to make them similar.
D. The image appears to dark, multiplication of all pixels by a constant number is a means to make it brighter.
E. For uneven illumination (e.g. occuring in wide-field microscopy with large camera chips), one should do flat-field correction, which makes the intensity values even across the image.
F. Our microscope was broken. We took images on a replacement microscope. The pixel values were consistently higher than on our usual microscope. We multiplied the pixels on all images from the replacement microscope by a constant factor to make them comparable to our usual data.
### Concepts
...
...
@@ -202,13 +198,6 @@ F. Images taken on a different microscope had consitently lower gray values than
digraph G {
shift [fontcolor=white,color=white];
image_math -> pixel_values [label=" changes"];
image_math -> scientific_image_content [label=" can distort"];
}
'/>
<img src='https://g.gravizo.com/svg?
digraph G {
shift [fontcolor=white,color=white];
image_math -> pixel_data_type [label=" does not change"];
image_math -> wrong_pixel_values [label = " can yield"]