Report Size Marker

Get and record the size of a size marker or set an area as a size marker.

plantcv.report_size_marker(img, roi_contour, roi_hierarchy, marker='define', objcolor='dark', thresh_channel=None, thresh=None, filename=False)

returns marker_header, marker_data, analysis_images

Output Data Units: - Marker-Area - area of marker, pixels (units) - Marker Bounding Ellipse Major Axis - length of major axis of bounding ellipse, pixels (units)
- Marker Bounding Ellipse Minor Axis - length of minor axis of bounding ellipse, pixels (units)
- Marker Bounding Ellipse Eccentricity - ratio, 'roundness' of object (a perfect circle is 0, ellipse is greater than 0 but less than 1)

Object (green) that is identified as partially inside ROI

Screenshot

from plantcv import plantcv as pcv

# Set global debug behavior to None (default), "print" (to file), or "plot" (Jupyter Notebooks or X11)
pcv.params.debug = "print"

# Define an ROI for the marker
roi_contour, roi_hierarchy = pcv.roi.rectangle(3550, 850, 500, 500, img1)

# Detect and Measure Size Marker
marker_header,marker_data,images = pcv.report_size_marker_area(img1, roi_contour, roi_hierarchy, marker='detect', objcolor='light', thresh_channel='s', thresh=120, filename=False)

Area selected to detect size markers

Screenshot

Object (green) that is identified as size marker

Screenshot