PlantCV v3.2.0
PlantCV v3.2.0 adds new functionality and fixes several bugs and usability issues.
Summary of changes:
- Added functionality to the
plantcv.print_results
function. It now allows users to print the data returned, naming the .txt file whatever they would like. - Added complete scripts at the bottom of each PlantCV tutorial in the documentation.
- Added new function
plantcv.roi.multi
, allowing users to specify parameters for a grid of regions of interest (ROIs) or supply a list of centers for ROIs if they are not in a grid arrangement.
Restructure the wayplantcv.analyze_*
functions return outputs. Each function now returns the images so the user can save them. - Enhancements to the
plantcv.pseudocolor
function including the addition of an “image” background option, adding the option to turn off titles/axes and colorbar, and an auto-crop option.
Changed Matplotlib import (now imported globally inplantcv.__init__.py
), fixing the non-fatal warning from setting the matplotlib backend multiple times. - Added debug mode to
plantcv.analyze_color
function.
plantcv.analyze_bound_horizontal
was previously determining line position differently than the rest of the functions in PlantCV. Instead ofline_position=0
signifying the bottom of the image, it will now signify the top of the image. - Add a
line_thickness
graphics options to theparams
class so users can change the line thickness for the functions plotting lines onto images (analyze_object, all ROI functions, analyze_bound_horizontal, analyze_bound_vertical, acute_vertex, x_axis_pseudolandmark, y_axis_pseudolandmark, scale_features, roi_objects, object_composition). - Add a link in the table of contents to the PlantCV Hyperspectral subproject documentation.
- Add an “image” background option to the
plantcv.auto_crop
function. - Improved code testing coverage to 100%.
- Allow string arguments to be case insensitive.
- Added a new option to
roi_type
inplantcv.roi_objects
which allows only the largest contour to to be kept. - Standardize argument order and naming across functions.
- Updated functionality of the
plantcv.plot_hist
function, including adding an optional mask argument and allowing users to save histograms.