Notes for Intradams 2024

Todd R. Hanneken, St. Mary’s University

Table of Contents

1. Trivulziana, Dante

2. Directory structure

3. Optics

4. Brief notes on making the most of available technology with manuscripts

5. Spectral imaging

5.1. Spectral imaging capture

5.2. Spectral image processing

5.3. Spectral imaging visualization

5.4. Spectral imaging software

6. Color

6.1. Human spectral resolution

6.2. Color space

6.3. White

6.4. Naming Colors

6.5. Racism

6.6. Multiband Calibrated Color

7. Texture

8. Example of one surface in multiple visualizations

9. Accessibility

10. Digital editions

11. Digital Humanities

12. Glossary

QR code to this page
QR code to this page

1. Trivulziana, Dante

2. Directory structure

3. Optics

Isaac Newton, Opticks
Isaac Newton, Opticks
Prism refraction
Prism refraction

The electromagnetic spectrum

The electromagnetic spectrum
The electromagnetic spectrum

The range and resolution of silicon sensors far exceeds the range and resolution of human perception of electromagnetic radiation as light.

4. Brief notes on making the most of available technology with manuscripts

(Sorted from simple to advanced)

Keep notes: Your phone will store precise time of capture, and probably GPS location and whether the internal flash fired. It will not record other variations in what you were trying with illumination, etc.

White balance and color accuracy: Your phone will attempt to do white balance automatically on its own. The simplest thing you can do to help it is to make sure something white (not shiny) is in frame. A paper towel can do the trick.

Glare: try different angles of illumination. You will have the flash on your phone, lights on the stand, and ambient room light.

Texture from raking/oblique illumination: turn off or block all lights except a light held at a low angle. The flashlight on a colleague’s phone will work.

Registration: Registration means every pixel is perfectly aligned on multiple captures. Registration is the fundamental premise of digital MSI that allows advanced processing. (You will soon gain the capability to process ratios and linear transformations on your own for free.) You will need something very steady, such as a tripod or mount. Even then, you might use a 2 second countdown timer so that the vibration of your finger touching the phone will settle before capture. You could try aligning the pixels in software after capture.

Raw: Saving raw files will avoid loss due to compression, allow further processing, and skip some of the things Google/Apple do to make images prettier but not more accurate. Free software such as RawTherapee can do as much or as little as you wish from the raw capture files.

Advanced glare: Glare on the manuscript is only part of the problem. Glare from the background can also be bad. Black fabric could be specialized microfiber or something you have in your suitcase.

Reflect on your experiences with manuscripts under glass, in your hands, and rendered on screen. What might be possible to make the screen experience more like the hands experience?

5. Spectral imaging

5.1. Spectral imaging capture

Capture equipment in the Ambrosiana Sala Ceriani 2017
Capture equipment in the Ambrosiana Sala Ceriani 2017

Panchromatic Camera: Each pixel counts photons regardless of wavelength, as opposed to a Bayer array that causes each pixel to count photos in one of three spectral ranges

Bayer array
Bayer array

Apochromatic Lens: Corrects for variation in wavelength refraction across a wider range

No alt text available for this image

Focus, depth of field, aperture: balance between shorter exposure and greater depth of field

Light paths through different apertures
Light paths through different apertures
Depth of field at different apertures
Depth of field at different apertures

Narrowband reflectance: measures how many photons reach the sensor when all photos emitted are at a specific wavelength

Fluorescence: uses a filter wheel to measure how many photons at a certain wavelength fluoresce when the object is illuminated at a specific wavelength

Minerals fluorescing under ultraviolet illumination
Minerals fluorescing under ultraviolet illumination

Transmissive: Measures how many photons pass through an object when back-lit at a specific wavelength

Transmissive illumination
Transmissive illumination

Raking and RTI: Visualizes the texture of a surface based on multiple angles of illumination

Raking illumination
Raking illumination

Registration: The principle that every pixel represents the same spot on the object allows measurements from multiple captures of the same spot to be processed

Flattening: Assumes that all variation in the capture of an even white target results from consistent variations in illuminators, lens, and sensor (and removes that variation)

Flat field image with contrast enhanced to illustrate vignetting and other false visual artifacts
Flat field image with contrast enhanced to illustrate vignetting and other false visual artifacts

5.2. Spectral image processing

No processing (monochrome)

Simple ratios

Linear transformations, redundancy reduction methods (PCA, ICA, MNF)

Transformation of the first principal component
Transformation of the first principal component

Calibrated color

5.3. Spectral imaging visualization

Gamma: The human perception of luminosity is not linear. We can tell slightly brighter from bright more precisely than we can tell slightly darker from dark. Gamma correction makes the darks brighter without washing out the brights.

Gamma correction for imbalance in human intensity perception
Gamma correction for imbalance in human intensity perception

Histograms and histogram adjustments: Histograms visualize the number of pixels (y axis) at levels of intensity (x axis). An image is considered low-contrast if most of the pixels are within a narrow range of intensity. Histogram adjustments increase contrast by amplifying the range of measurements.

Histogram adjustment options in 
							
								Python SciKitImage
Histogram adjustment options in Python SciKitImage

Pseudocolor: Images captured, simple ratios, and linear transformation components are all one-channel “monochrome” images that measure intensity on a two-dimensional plane. Because the human eye can discern three channels of color, it can be helpful to combine three one-channel images into a single three-channel image. This is almost always pretty and gets more attention at first glance. It can be especially useful when three images show different things. Joining three images into one is easy in ImageJ or ImageMagick.

Flicker/motion: A good way to compare images or study an object based on multiple images is to align them exactly and quickly switch between images. This can be done by combining images into a stack in ImageJ or Ctrl+Tab in a web browser.

5.4. Spectral imaging software

6. Color

6.1. Human spectral resolution

Human perception of electromagnetic radiation
Human perception of electromagnetic radiation

A human is considered color blind if able to resolve color using two rather than three cones

A test for color blindness in humans
A test for color blindness in humans

The human perception of bands of color, rather than a smooth gradient, in a rainbow is to spectral resolution what pixelation is to spatial resolution.

Rainbow
Rainbow
Bands of pure color in the rainbow, bands of grayscale, gradient of grayscale
Bands of pure color in the rainbow, bands of grayscale, gradient of grayscale

Metamerism is a perceived matching of colors with different (nonmatching) spectral power distributions such that colors that appear identical in one light do not appear identical in another light.

Example of Metamerism
Example of Metamerism

6.2. Color space

CIE 1931 xy color space diagram
CIE 1931 xy color space diagram

Elle Stone, “Completely Painless Programmer’s Guide to XYZ, RGB, ICC, xyY, and TRCs.” Nine Degrees Below, 2015. https://ninedegreesbelow.com/photography/xyz-rgb.html.

6.3. White

Color Temperature is measured in the temperature in Kelvin of glowing metal. Descriptions as “soft,” “warm,” “cool,” and “daylight” are approximations. The abbreviations CIE D50 and CIE D65 correspond to 5000K and 6500K respectively.

Color temperature mapped to the CIE xy 1931 diagram
Color temperature mapped to the CIE xy 1931 diagram

6.4. Naming Colors

English “Black” and Italian “Bianco” come from the same Indo-European root meaning “burn.”

“Blu” and “Azurro” are two different colors in Italian. In English they are two shades of “Blue.”

“Red” and “Pink” are two different colors in English. In Italian “Rosa” and “Rossa” look pretty similar to me.

“Orange” and “Arancia” follow the fruit. English previously used “color was betwixe yelow and reed” and “geoluhread.”

6.5. Racism

Sarah Lewis, “The Racial Bias Built Into Photography.” New York Times, 2019. https://www.nytimes.com/2019/04/25/lens/sarah-lewis-racial-bias-photography.html.

Nicole Nguyen and Dalvin Brown, “Google Built the Pixel 6 Camera to Better Portray People With Darker Skin Tones. Does It?” Wall Street Journal, 2021. https://www.wsj.com/articles/google-built-the-pixel-6-camera-to-better-portray-people-with-darker-skin-tones-does-it-11635177665.

Photography was subjectively calibrated to make white women look good. They were all named Shirley.
Photography was subjectively calibrated to make white women look good. They were all named Shirley.

6.6. Multiband Calibrated Color

For each of the 24 patches on a color checker, calculate how much each captured band contributes to the known color value of that patch

Three-axis color values of artifact / 12-band capture of artifact = Known three-axis values of color checker / 12-band capture of color checker

Three-axis color values of artifact = 12-band capture of artifact * Known three-axis values of color checker / 12-band capture of color checker

Matrix multiplication

Euclidian Distance (Delta E)

7. Texture

Texture and shape

Human perception of texture

Digital capture, processing, and visualization of texture

Digital capture, processing, and visualization of shape

Blender, Unity Engine, and Unreal Engine have the capability to visualize shape, texture, transmissiveness, and fluorescence.

Todd R. Hanneken, “Texture Imaging from Capture to Access.” Jubilees Palimpsest Project, 2017. https://palimpsest.stmarytx.edu​/thanneken​/2017​/Hanneken(2017)TextureImagingCaptureAccess.pdf

8. Example of one surface in multiple visualizations

Digital image of Ceriani’s 1861 edition of the Assumption or Testament of Moses (Milan, Veneranda Biblioteca Ambrosiana C73inf 110)
Digital image of Ceriani’s 1861 edition of the Assumption or Testament of Moses (Milan, Veneranda Biblioteca Ambrosiana C73inf 110)
Digital scan of microfilm of the same page
Digital scan of microfilm of the same page
Conventional DSLR camera
Conventional DSLR camera
Color based on mapping three narrow bands to the RGB color space
Color based on mapping three narrow bands to the RGB color space
Calibrated color based on ten spectral bands
Calibrated color based on ten spectral bands
Raking illumination
Raking illumination
Pseudocolor
Pseudocolor

9. Accessibility

Licenses

IIIF (International Image Interoperability Framework)

Mirador

10. Digital editions

TEI XML as a way of thinking about texts

TEI as pure WYSIWYM

TEI as foundation for visualizations in PDF, HTML, others

Further reading

11. Digital Humanities

Terms and characteristics

History

12. Glossary

Blur and Divide
A noise reduction method used by Roger Easton. The output is the ratio of a simple box blur of an image divided by a gaussian blur of the same image. The sigma of the gaussian blur can be specified.
Illuminator Codes, MegaVision
numbers = wavelength in nanometers; M = main bank; MB = main bank; MBA = main bank auxiliary; WB = wheel bank (UV wavelengths that excite fluorescence); UV = ultraviolet; VI = violet; RB = royal blue; LB = light blue; CN = cyan; GN = green; LI = lime; AM = amber; RO = red orange; RD = red; DR = deep/dark red; IR = infrared; TX = transmissive; B47 = Wratten filter blue 47; G58 = Wratten filter green 58; O22 = Wratten filter orange 22; R25 = Wratten filter red 25; UVB = ultraviolet block; UVP = ultraviolet pass

Todd R. Hanneken, “Notes for Intradams 2024.” Jubilees Palimpsest Project. San Antonio, Texas: St. Mary’s University, 2024.

All text licensed CC BY-NC-SA. Linked images are not licensed unless specified otherwise.