Print Measurement Results¶
An Outputs class has been added that automatically stores measurements collected by the following functions:
analyze_bound_horizontalanalyze_bound_verticalanalyze_coloranalyze_nir_intensityanalyze_objectanalyze_thermal_valuesfluor_fvfmhyperspectral.analyze_indexhyperspectral.analyze_spectralmorphology.check_cyclesmorphology.segment_anglemorphology.segment_curvaturemorphology.segment_euclidean_lengthmorphology.segment_insertion_anglemorphology.segment_path_lengthmorphology.segment_tangent_anglereport_size_marker_areawatershed
Users can also add measurements to the Outputs class with the pcv.outputs.add_observation method.
The print_results function will take the measurements stored when running any (or all) of these functions, format, and
print an output .json file for data analysis.
plantcv.print_results(filename)
returns none
- Parameters:
- filename- Name of results text file
- Context:
- Print out a result file containing all measurements recorded by functions included in the workflow for each image processed.
- Example use:
from plantcv import plantcv as pcv
# Read in image
img, path, img_filename = pcv.readimage("home/user/images/test-image.png")
######### Workflow steps here
pcv.print_results(filename='test_workflow_results.txt')