Skip to content

Commit

Permalink
definitions: reconciling discussions from #10 and #11
Browse files Browse the repository at this point in the history
  • Loading branch information
virginiascarlett committed Nov 21, 2024
1 parent 90c7c76 commit 43cf7f3
Showing 1 changed file with 65 additions and 66 deletions.
131 changes: 65 additions & 66 deletions definitions.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,150 +2,149 @@
Please note that this is a living document. Definitions are preliminary and subject to change.

- Basic definitions
- [*array*](#array)
- [*image*](#image)
- [*pixel*](#pixel)
- [*sample*](#sample)
- [*voxel*](#voxel)
- [array](#array)
- [image](#image)
- [pixel](#pixel)
- [sample](#sample)
- [voxel](#voxel)
- Other definitions
- [*axis*](#axis)
- [*bit-depth*](#bit-depth)
- [*domain*](#domain)
- [*downsampling*](#downsampling)
- [*field of view*](#field-of-view)
- [*filtering*](#filtering)
- [*group*](#group)
- [*hierarchy*](#hierarchy)
- [*interpolation*](#interpolation)
- [*origin*](#origin)
- [*physical*](#physical)
- [*quantization*](#quantization)
- [*resampling*](#resampling)
- [*resolution*](#resolution)
- [axis](#axis)
- [bit-depth](#bit-depth)
- [domain](#domain)
- [downsampling](#downsampling)
- [field of view](#field-of-view)
- [filtering](#filtering)
- [group](#group)
- [hierarchy](#hierarchy)
- [interpolation](#interpolation)
- [origin](#origin)
- [physical](#physical)
- [quantization](#quantization)
- [resampling](#resampling)
- [resolution](#resolution)


## Basic definitions

### array
An n-dimensional collection of discrete *samples* whose domain is a regular discrete (integer) grid.
An n-dimensional collection of discrete samples whose domain is a regular discrete (integer) grid.

Related terms: [*sample*](#sample), [*image*](#image), [*hierarchy*](#hierarchy)
Related terms: [sample](#sample), [image](#image), [hierarchy](#hierarchy)

### image
A set of numbers intended to be displayed on a screen. Ancillary data structures may be required to display or interpret an *image* (such as a lookup table), but these are not part of the *image* itself. An *image* is often, but not necessarily, acquired by a sensor situated within an optical system. *Images* can be represented in compact forms, for example as a compressed sequence of bytes or as a discrete function over a finite domain, but these are not canonical uses of the word “image”, and the word “image” by itself should refer only to *arrays* and array-like data structures.
A static set of coherent visual information. For our purposes, ‘image’ and ‘digital image’ may be used interchangeably.

Related terms: [*array*](#array), [*sample*](#sample), [*pixel*](#pixel), [*voxel*](#voxel), [*axis*](#axis), [*dimension*](#dimension)
Images can be represented in compact forms, for example as a compressed sequence of bytes or as a discrete function over a finite domain. For our purposes, the word ‘image’ by itself refers to raster images produced by displaying arrays and array-like data structures on a screen. Unless otherwise specified, this rastering occurs at regular equispaced intervals, the pixel pitch.

### pixel
A single *sample* of a two-dimensional *image*.
An image is an abstract notion distinct from its representation, e.g. a discrete digital array. Colloquially, 'array' and 'image' are often used interchangeably. However, a rigorous technical definition separates the two, so that an image (a static set of coherent visual information) may be constituted by several arrays, for example.

Related terms: [array](#array), [sample](#sample), [pixel](#pixel), [voxel](#voxel), [axis](#axis), [dimension](#dimension)

Often used interchangeably with *sample*.
### pixel
A single sample of a two-dimensional image.

Related terms: [*sample*](#sample), [*voxel*](#voxel)
Related terms: [sample](#sample), [voxel](#voxel)

### sample
A digital number representing a measurement of the energy sensed by a particular cell on a sensor at a discrete point in time. Because cells on a sensor correspond to elements of an *array* and *pixels* of an *image*, *sample* is often used interchangeably with *pixel*.
A digital number representing a measurement of the energy sensed by a particular cell on a sensor at a discrete point in time. Because cells on a sensor correspond to elements of an array and pixels of an image, sample is often used interchangeably with pixel.

Related terms: [*pixel*](#pixel), [*voxel*](#voxel), [*image*](#image), [*array*](#array)
Related terms: [pixel](#pixel), [voxel](#voxel), [image](#image), [array](#array)

### voxel
A single *sample* of a three-dimensional *image*.
A single sample of a three-dimensional image.

Related terms: [*sample*](#sample), [*pixel*](#pixel)
Related terms: [sample](#sample), [pixel](#pixel)

## Other definitions

### axis
The *physical* interpretation of a discrete, numeric, finite dimension. Generally represented with a 1D variable that is strictly monotonic and has the same name as the axis it represents. An axis must have *physical* units.
The physical interpretation of a discrete, numeric, finite dimension. Generally represented with a 1D variable that is strictly monotonic and has the same name as the axis it represents. An axis must have physical units.

### bit-depth
The number of bits used in the *quantization* a digital image that defines the number of unique values that can be represented by samples. For example, samples of images with a bit depth of ("8-bit images") can take up to 256 unique values.
The number of bits used in the quantization of a digital image that defines the number of unique values that can be represented by samples. For example, samples of images with a bit depth of ("8-bit images") can take up to 256 unique values.

Related terms: [*quantization*](#quantization)
Related terms: [quantization](#quantization)

### dimension
An independent extent of a domain. A domain has $N$ dimensions where $N$ is the minimum number of coordinates needed to identify any particular point within the domain. The length of a discrete, numeric, finite dimension establishes the number of indexable locations along that dimension.

### domain
A set of discrete locations in abstract space. A domain, or any location within a domain, may be described by multiple variables, but any given variable has only one domain. A domain has zero or more dimensions. The component dimensions of a domain need not be numeric, but when they are, the domain may be thought of as situated in a coordinate space. If a domain's dimensions are all axes, then that domain is situated in a *physical* space.
A set of discrete locations in abstract space. A domain, or any location within a domain, may be described by multiple variables, but any given variable has only one domain. A domain has zero or more dimensions. The component dimensions of a domain need not be numeric, but when they are, the domain may be thought of as situated in a coordinate space. If a domain's dimensions are all axes, then that domain is situated in a physical space.

### downsampling
The act of *resampling* an *image* to a lower *resolution*, often by an integer factor.
Sometimes this can require *interpolation*.
The act of resampling an image to a lower sample density (higher pixel spacing), often by an integer factor.
Sometimes this can require interpolation.

Related terms: [*resampling*](#resampling), [*resolution*](#resolution), [*interpolation*](#interpolation)
Related terms: [resampling](#resampling), [resolution](#resolution), [interpolation](#interpolation)

### field of view
The *physical* extent of the observed space. In microscopy, FOV may be expressed as the diameter of the circular view seen through the eyepiece. In scientific bioimaging, FOV is typically expressed as linear measurements of the horizontal, vertical, and/or diagonal space captured by the digital sensor.
The physical extent of the observed space. In microscopy, FOV may be expressed as the diameter of the circular view seen through the eyepiece. In scientific bioimaging, FOV is typically expressed as the horizontal, vertical, and/or diagonal extent of the space captured by the digital sensor. For example, the FOV for a 2D image may be $44mm$ by $22mm$, where $44mm$ is the width and $22mm$ is the height of the observed space.

### filtering
1. Usually referes to a convolution operation (a local, linear operation on the intensity values of an *image*).
2. Any operation that modifies the intensity values of an *image*.
1. Usually referes to a convolution operation (a local, linear operation on the intensity values of an image).
2. Any operation that modifies the intensity values of an image.

### group
See [*hierarchy*](#hierarchy).
See [hierarchy](#hierarchy).

### hierarchy
A collection of nodes, connected in a tree-like structure.
A node can be either:
1. A group, i.e., a node that can have child nodes, and can contain metadata, but cannot contain *array* data.
2. An *array*. *Array* nodes cannot have child nodes.
1. A group, i.e., a node that can have child nodes, and can contain metadata, but cannot contain array data.
2. An array. Array nodes cannot have child nodes.

Related terms: [*group*](#group), [*array*](#array)
Related terms: [group](#group), [array](#array)

### interpolation
A process that, given an *image*, produces new *samples* at points in the domain not on the discrete image grid.
A process that, given an image, produces new samples at points in the domain not on the discrete image grid.

The most common methods for *interpolation* are "nearest-neighbor", "bi-/tri-/n-linear", "cubic", "windowed sinc".
The most common methods for interpolation are 'nearest-neighbor', 'bi-/tri-/n-linear', 'cubic', and 'windowed sinc'.

Related terms: [*resampling*](#resampling), [*downsampling*](#downsampling)
Related terms: [resampling](#resampling), [downsampling](#downsampling)

### origin
1. Of an *array*: the point in the discrete domain with the minimum index (usually zero) for all dimensions.
2. Of an *image*: the point in the *physical* domain corresponding to the *array* *origin*.
A special location that acts as a reference point, relative to which relative to which other locations are defined. Unless otherwise specified, the image's origin is the same as the array's origin (assuming the image is produced from an array). An array's origin is typically the point in the discrete domain with the minimum index (usually zero) for all dimensions. Physical or anatomical spaces can also have origins; for example, in MR imaging, the anterior/posterior commissure is commonly regarded as an origin for the brain.

The term "offset" is sometimes used to refer to the *origin*.
The term 'offset' is sometimes used to refer to the origin.

### physical
Relating to quantities or measurements of the real world.

Examples:

* *sample* intensities measured by a *physical* sensor
* sample intensities measured by a physical sensor
+ photon count
+ [Hounsfield unit](https://en.wikipedia.org/wiki/Hounsfield_scale)
* distances / areas / volumes / times measured in *images* in *physical* units ($\mu m$, $mm$, seconds)
* distances / areas / volumes / times measured in images in physical units ($\mu m$, $mm$, seconds)
+ "the area of segment $A$ is $12 mm^2$"
+ "mitosis begins at time = $3.2 s$"

Non-examples:

* *sample* intensities not derived from sensors
* sample intensities not derived from sensors
+ segmentation id
+ the output of a deep neural network model
* distances / areas / volumes / times described by *sample* / *array* indexes
* distances / areas / volumes / times described by sample / array indexes
+ "the area of segment $B$ is $85$ pixels"
+ "mitosis begins at frame $51$"

### quantization
A process that converts a physical or continuous value to a digital representation with a particular precision. Samples of a quantized image can take one of a finite set of values defined by its [*bit depth*](#bit depth).
A process that converts a physical or continuous value to a digital representation with a particular precision. Samples of a quantized image can take one of a finite set of values defined by its bit depth.

Related terms: [*bit-depth*](#bit-depth)
Related terms: [bit-depth](#bit-depth)

### resampling
A process that generates a new *array* representing an *image* at a new *resolution*.
A process that generates a new array representing an image at a new resolution.

The new *resolution* is often an integer multiple or fraction of the original image *resolution*, but need not be. *Resampling* methods often
consist of *filtering* and *interpolation* steps.
The new resolution is often an integer multiple or fraction of the original image resolution, but need not be. Resampling methods often
consist of filtering and interpolation steps.

Related terms: [*downsampling*](#downsampling), [*interpolation*](#interpolation), [*resolution*](#resolution)
Related terms: [downsampling](#downsampling), [interpolation](#interpolation), [resolution](#resolution)

### resolution

1. The level of detail in an *image*. A high *resolution* *image* will have more *samples* than a low *resolution* *image* for the same *field of view*.
2. The total number of *samples* in each dimension of an *image*. For example, a 2-dimensional *image* with $1500$ *pixels* along the x dimension and $1000$ *pixels* along the y dimension could be said to have a *resolution* of $1500 \times 1000$ (the colloquial convention is to express the dimensions in x, y, z order).
3. The set of *physical* (usually spatial) sampling intervals for an *image*. In other words, the distance between *samples*. Usually expressed separately for each dimension, e.g. millimeters per *pixel* in x. (Note: The sampling *interval* is the reciprocal of the sampling *rate*.)
The smallest difference in signal quantity that can be discriminated by a device or system. In the case of analog to digital signal conversion, resolution is determined by the number of bits used to represent the signal. Thus, resolution is often expressed in bits.

*Resolution* should be considered synonymous with "spatial resolution" unless otherwise specified.
Colloquial uses of the term ‘resolution’ include the total number of samples in each dimension of an image (e.g., 640 by 420), and the set of spatial sampling intervals for an image (e.g. ‘spacing’, ‘pixel spacing’, or ‘pixel resolution’). These are not rigorous technical definitions. To reduce confusion, it is best to avoid using the term ‘resolution’ to describe either the number of samples in an image, or the spacing between samples.

The terms "spacing", "pixel spacing", and "pixel resolution" are commonly used to refer to *resolution*.
Related terms: [bit-depth](#bit-depth), [resampling](#resampling)

0 comments on commit 43cf7f3

Please sign in to comment.