plantcv
plantcv copied to clipboard
Using PlantCV pcv.segment_image_series and pcv.create_labels to do image analysis
Hello! I am working with PlantCV to do image analysis of lettuce plants. I want to use the output from pcv.segment_image_series to analyze the shape and color of each of my lettuce plants. They overlap, which is why I am using pcv.segment_image_series in the first place. Here are the functions I am trying to use to do my analysis:
shape_img = pcv.analyze.size(img=img, **labeled_mask=labeled_mask**, n_labels=18)
shape_img = pcv.analyze.color(rgb_img=img, labeled_mask=labeled_mask, n_labels=18, colorspaces="RGB")
I know I need to use some sort of labeled_mask, num_plants = pcv.create_labels(mask=th_fill, rois=rois, roi_type="partial") for the labeled mask. However, I want to use the output from the pcv.segment_image_series function because it takes care of the overlap, while pcv.create_labels does not. And I can't use my output from the pcv.segment_image_series as input for pcv.create_labels or shape_img because the output isn't the right type. Sorry for not being very clear, I have very limited experience with PlantCV. I am not using the most recent version of PlantCV because I do not know how to update it as well. What do you all recommend?