Flat area¶
Flat area is a column in the Object List. It measures the area of a surface, such as a synapse, from the traces of one object. The unit is the square of the series unit (µm² for a series in micrometers).
The formula¶
PyReconstruct adds one term for each trace of the object, on every section:
Flat area = Σsections [ Σopen traces length × T + Σclosed traces area ]
- Open trace (a line). Its length is the sum of the straight steps between its points, Σ √(Δx² + Δy²). PyReconstruct multiplies the length by T, the thickness of the section the trace is on.
- Closed trace (a loop). Its area comes from the shoelace formula, ½ |Σ (xi·yi+1 − xi+1·yi)|. PyReconstruct adds the area with no thickness. A negative closed trace subtracts its area.
Each trace is open or closed, and that alone sets its term. Flat area does not detect the orientation of a synapse, and it makes no correction for tilt. An open trace on a tilted surface adds its length × T, which is less than the area of the tilted strip.
Three synapse orientations¶
The figures show how the traces can fall for three orientations. Each side view is a stack of sections, 50 nm thick. The thick line is the synapse seen edge-on. The green marks are the traces on each section. The trace choices on each section are examples, not a tracing rule. All traces are positive. The values are chosen so that each case totals 0.066 µm², with lengths in µm and areas in µm².
= (0.30+0.38+0.36+0.28) × 0.05
= 1.32 × 0.05
= 0.066 µm²
= (0.32+0.28) × 0.05
+ (0.019+0.017)
= 0.030 + 0.036
= 0.066 µm²
= 0.066 µm²
In each case, an open trace adds a strip one section thick, and a closed trace adds the area it encloses. The same synapse traced at a different orientation can give a different flat area.
Flat area and volume¶
Volume uses closed traces only: Σ closed-trace area × T, where a negative closed trace subtracts. Open traces add nothing to volume. Flat area uses both kinds of trace, as above.
In the code¶
SeriesData.getFlatAreainPyReconstruct/modules/datatypes/series_data.pyadds the terms.traceGeometryinPyReconstruct/modules/calc/quantification.pymeasures the length and area of each trace.