Skip to content

Commit

Permalink
Update feat_const.py with new cell feat calculated from the raw cnt (#…
Browse files Browse the repository at this point in the history
…241)

- enh: register new features area_um_raw, deform_raw, eccentr_prnc,
   per_ratio, per_um_raw, sym_x, sym_y
---------

Co-authored-by: Paul Müller <dev@craban.de>
  • Loading branch information
SaraKaliman and paulmueller committed Nov 8, 2023
1 parent 990ff7f commit c2391c3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
0.55.5
- enh: register new features area_um_raw, deform_raw, eccentr_prnc,
per_ratio, per_um_raw, sym_x, sym_y
0.55.4
- enh: improve timeout and availability check for fmt_http
0.55.3
Expand Down
13 changes: 12 additions & 1 deletion dclab/definitions/feat_const.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
# area_msd is the contour moment M00
["area_msd", "Measured area [px]"],
["area_ratio", "Porosity (convex to measured area ratio)"],
# area_um is the convex area per definition
# area_um is computed from the convex contour
["area_um", "Area [µm²]"],
["area_um_raw", "Area [µm²] of raw contour"],
["aspect", "Aspect ratio of bounding box"],
# The background brightness of the frame (not of the mask)
["bg_med", "Median frame background brightness [a.u.]"],
Expand All @@ -22,6 +23,8 @@
["circ", "Circularity"],
# deform is computed from the convex contour
["deform", "Deformation"],
["deform_raw", "Deformation of raw contour"],
["eccentr_prnc", "Eccentricity of raw contour"],
["emodulus", "Young's modulus [kPa]"],
# fl*_area, fl*_pos, and fl*_width values correspond to the
# object for which the contour was found. For high concentrations,
Expand Down Expand Up @@ -69,6 +72,11 @@
["nevents", "Number of events in the same image"],
["pc1", "Principal component 1"],
["pc2", "Principal component 2"],
# Convexity is defined by the ratio of convex contour length
# versus raw contour length. We use inverse convexity as it is
# more convenient to work with numbers >1.
["per_ratio", "Inverse Convexity (raw to convex perimeter ratio)"],
["per_um_raw", "Perimeter [µm] of raw contour"],
# pos_x and pos_y are computed from the contour moments
# "m10"/"m00" and "m01"/"m00" of the convex hull of "contour"
["pos_x", "Position along channel axis [µm]"],
Expand All @@ -86,6 +94,9 @@
# Size features
["size_x", "Bounding box size x [µm]"],
["size_y", "Bounding box size y [µm]"],
# Ratio between two halves of a mask
["sym_x", "Symmetry ratio left-right"],
["sym_y", "Symmetry ratio top-bottom"],
["temp", "Chip temperature [°C]"],
["temp_amb", "Ambient temperature [°C]"],
# Haralick texture features can be computed using the mahotas package
Expand Down

0 comments on commit c2391c3

Please sign in to comment.