Foreground-background polarity specifies which of two image classes is treated as the selected structure and which as its background. It involves a numerical convention as well as the intended interpretation: high-valued pixels can represent foreground in one encoding, while a dark feature may require the opposite threshold direction. A binary image's appearance alone does not establish its polarity.
For a chosen intensity threshold , define complementary normalized masks
The second is the complement of a set within the declared pixel grid. For the stipulated row and , the two binary selection masks are and . Equality belongs to the second selection. OpenCV's THRESH_BINARY and THRESH_BINARY_INV use these respective comparison directions, with the chosen output maximum replacing 1.[ref]
An image lookup table is a separate mapping from stored values to displayed colors. ImageJ's Create Mask command writes 255 inside a selection and 0 outside, but its default inverting lookup table can display the selected 255-valued pixels as black.[ref] Reversing that display mapping does not exchange the stored pixel values.
The distinction has a direct computational consequence. In its binary-image input, the documented Sholl analysis implementation treats zero intensities as background regardless of the lookup table or Black Background option.[ref] A visually inverted display can therefore leave the selected numerical structure unchanged, whereas replacing an 8-bit mask by exchanges its zero and 255 classes.
A reproducible geometric measurement records the threshold comparison, the values assigned to selected and excluded pixels, and any display-only inversion. A region of interest can further restrict the grid over which a complement is intended; reversing a mask over the whole image is different from selecting its complement only inside that region.
Radial sampling interval 2026-11-05
The radial sampling interval is the separation between consecutive radii at which a radial measurement is made. For Sholl analysis, it determines the spacing of concentric Euclidean circles used to sample intersection counts about a fixed center. The documentation distinguishes this step from the starting and ending radii.[ref]
For constant positive spacing, the sampling grid is
where is the chosen upper radius. For , and , the sampled radii are 1, 2, 3 and 4. The upper bound 4.4 is not itself sampled. The software documentation explicitly notes this endpoint issue when the step does not divide the difference between ending and starting radii.[ref]
A purely geometric example shows what coarse spacing can miss. Begin with a straight line segment from to and use the origin as center. Add a short branch from to . Its distance from the center increases continuously from to , since . Counting shared endpoints only once, the added branch contributes one extra distinct intersection exactly for
At radii 1, 2, 3 and 4, the branched and unbranched traces both give . An additional sample at instead gives two intersections for the branched trace. The feature exists in the geometric input but falls between the coarse sample radii.
Figure 1.
A geometric branch missed by coarse radial sampling
. Own synthetic line segments: trunk from(0,0)to(4,0), branch from(2.1,0)to(2.4,0.7). A circle of radius2.25 has two intersections, while samples at radii1,2,3,4 each report one. Distances are chosen geometric units, not specimen measurements or a reconstruction. Details.
Smaller supplies a denser set of probes, while changing shifts their positions. Neither operation restores structure already lost through image segmentation or finite pixel pitch. In particular, closer numerical spacing is distinct from improved physical spatial resolution. Report the center, calibrated distance units, starting radius, interval and sampled endpoint list with a Sholl profile.
The program's zero step setting is a special request for finite image-derived sampling, rather than the literal choice in the grid above. For image input, the documentation describes voxel-scale increments and a calibration-dependent rule for unequal pixel dimensions.[ref]
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]
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] 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.
SNT is an ImageJ framework for tracing, displaying and quantitatively analyzing branching structures in multidimensional images. It provides editing and automated tracing tools as well as a scripting interface. Its computational components also support filamentous structures outside the package's original application domain.[ref]
A trace encodes connected sample points rather than merely an image of a bright line. For an original geometric example, take successive physical coordinates , and in micrometres. The trace's length is the sum of its two line segment lengths,
whereas the endpoint Euclidean distance is . The ratio distinguishes a bent trace from a straight one with the same endpoints. SNT's metrics documentation defines path/branch length through internode distances and branch contraction through this endpoint-distance-to-path-length ratio.[ref]
Those calculations require calibrated coordinates and the intended connectivity. Rescaling image axes changes lengths; connecting the wrong endpoints changes the traced object. The framework's Sholl analysis is a different summary: it produces a Sholl profile of radial intersections. The fact that a Sholl profile does not determine rooted tree topology explains why a profile cannot replace the connected trace when the question concerns its branching structure. This example concerns software data and geometry, not measured anatomy.
Tiago A. Ferreira 2026-11-05
Tiago Ferreira is identified as Tiago A. Ferreira by his ImageJ project profile, which connects him to the ImageJ User Guide by Tiago Ferreira and Wayne Rasband, SNT and Sholl analysis. The guide's 2012 title page names Ferreira and Wayne Rasband as coauthors. His work combines scientific-software documentation with tools for analyzing spatial structure.[ref][ref]
Sholl analysis turns a calibrated tracing or segmented binary image into a Sholl profile. The fact that a Sholl profile does not determine rooted tree topology explains why that summary cannot reconstruct connectivity. Input selection remains a separate issue: the documentation's foreground/background comparison shows that inversion can make the analysis sample the background. Record image segmentation, calibration and sampled radii with the result.[ref]