lucem_hist::export
Exporting measurements: one row per object (TSV or CSV), a summary per region (counts per class, positive %, H-score, densities, area), and objects as GeoJSON.
pub struct TableA table: its header and rows (text cells).
Fields
header: Vec<String>rows: Vec<Vec<String>>
Methods
pub fn to_delimited(&self, sep: char) -> StringThe table as text, cells separated by sep ('\t', ','); a cell holding the separator,
a quote or a line break is quoted.
Implements Clone, Debug, Default, PartialEq.
Functions
Section titled “Functions”measurements_table
Section titled “measurements_table”pub fn measurements_table(objects: &[HistObject], image: &str, pixel_um: f64) -> TableOne row per object: image, id, kind, class, centroid (µm), then every measurement any of them has (sorted by name; empty where one lacks it).
region_summary
Section titled “region_summary”pub fn region_summary(region: &Polygon, objects: &[HistObject], pixel_um: f64) -> MeasurementsWhat a region reports about the objects whose centroid is in it: their number, per class, the intensity summary (when they have intensity classes), the region’s area and the densities per mm².
geojson
Section titled “geojson”pub fn geojson(objects: &[HistObject]) -> ValueThe objects as a GeoJSON FeatureCollection (level-0 pixels): the outline as the geometry,
a cell’s nucleus as nucleusGeometry, the class and measurements as properties.