Binary selection mask 2026-11-05
A binary selection mask records which pixels belong to a chosen subset of an image. On a finite pixel grid , it is the indicator functionIt can represent an area region of interest, the result of image thresholding or a combination of selection rules. The mask describes membership; its entries need not equal the underlying image intensities.
For a selected pixel count , the count and selected arithmetic mean areConsider the original arraysThe selected values are 0, 20 and 40, so and . The selected zero-valued pixel still contributes to the denominator. Replacing excluded pixels by zeros and averaging all six entries would instead give : that asks a different question. An empty mask has , so this selected-mean formula is undefined.
For rectangular pixels with calibrated dimensions and , the complete-pixel area from a calibrated pixel count is . These are stipulated array values and cell dimensions, not a measurement of an object.
A stored mask can use another two-value encoding. ImageJ's Create Mask command stores 255 inside an area selection and 0 outside, corresponding to in this model.[ref]
ImageJ User Guide by Tiago Ferreira and Wayne Rasband. IJ1.46r, section27.12.10, Create Mask
Summing gives 765 in the example, rather than the selected count 3. Convert the encoding or count selected entries before interpreting a sum as an area.Two normalized masks and combine by set intersection through . Their complement within the specified grid is . Record the foreground-background polarity, coordinate alignment and grid extent when transferring a mask between images.
Image lookup table 2026-11-05
An image lookup table maps a stored pixel value or index to a displayed color. For an 8-bit grayscale image with stored values , a table can be writtenusing an RGB color model triple. Changing changes the appearance without necessarily changing . ImageJ explicitly distinguishes Invert LUT, which changes the display, from inversion of the pixel values.[ref]
ImageJ User Guide by Tiago Ferreira and Wayne Rasband. IJ1.46r, section28.15.1, Invert LUT; section27.11, Invert
For an original example, store the rowThe identity grayscale table is ; an inverted table is . The same four stored values appear in opposite brightness order under these tables, but their arithmetic mean remains . An image thresholding rule selecting stored values above 100 still gives the binary selection mask .
Numerically replacing the pixels by instead produces . Its arithmetic mean is , and the same strict threshold gives . Thus an inverted-looking image does not by itself establish that its numerical values or selected subset were inverted.
The distinction is especially visible with binary selection masks: the documented Create Mask command stores 255 inside the selection and 0 outside, while an inverting lookup table can display the selected class as black.[ref]
ImageJ User Guide by Tiago Ferreira and Wayne Rasband. Section27.12.10, Create Mask
Record the foreground-background polarity from the stored encoding and algorithm, rather than inferring it from screen brightness.A program can also apply a lookup mapping to the data. ImageJ's Apply LUT command changes gray values and restores the identity table so that the displayed appearance is retained.[ref]
ImageJ User Guide by Tiago Ferreira and Wayne Rasband. Section28.15.2, Apply LUT
Distinguish that operation from assigning a display table. A table mapping several input values to the same color can conceal numerical distinctions in the display even while those distinctions remain in the original stored image. Sholl analysis 2026-11-05
Sholl analysis summarizes the radial arrangement of a traced structure by counting its intersections with concentric Euclidean circles around a chosen center. The resulting Sholl profile reports how the count changes with radius. A computational workflow must specify the center, spatial calibration, sampled radii and the convention used to identify distinct intersections. The software documentation distinguishes analysis of segmented images from analysis of reconstructed tracings.[ref]
Sholl Analysis in the SNT documentation. Analysis of images and traced reconstructions; Parameters, Shells
For an original center-choice example, take the straight segment . With center , a circle of radius meets the segment once for . With center , it meets the same segment twice for and not at all for . At , therefore, the two center choices give counts 1 and 2, although the traced object has not changed. The center is part of the measurement definition.
For binary images, the foreground also needs an explicit meaning. The SNT documentation treats zero-valued pixels as background independently of the displayed lookup table and illustrates how an inverted segmentation can make the program sample background instead of structure.[ref]
Sholl Analysis in the SNT documentation. Cf. Segmentation, foreground/background comparison and zero-intensity convention
Record the foreground-background polarity and radial sampling interval with the result.The radial summary is useful for comparing where intersections occur, but a Sholl profile does not determine rooted tree topology. A fitted curve, sampled count sequence and complete ideal Sholl profile are different data objects; none should be silently substituted for another.