ab36ba9c62f650a2d61363ce29d5393a686d680c,lib/plantcv/crop_position_mask.py,,crop_position_mask,#Any#Any#Any#Any#Any#Any#Any#Any#,10
Before Change
print_image(maskv, (str(device) + "_push-right.png"))
newmask = np.array(maskv)
if debug:
print_image(newmask, (str(device) + "_newmask.png"))
objects, hierarchy = cv2.findContours(newmask, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
for i, cnt in enumerate(objects):
cv2.drawContours(ori_img, objects, i, (255, 102, 255), -1, lineType=8, hierarchy=hierarchy)
print_image(ori_img, (str(device) + "_mask_overlay.png"))
return device, newmask
After Change
plot_image(maskv)
newmask = np.array(maskv)
if debug is not None:
if debug is "print":
print_image(newmask, (str(device) + "_newmask.png"))
elif debug is "plot":
plot_image(newmask, cmap="gray")
objects, hierarchy = cv2.findContours(newmask, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
for i, cnt in enumerate(objects):
cv2.drawContours(ori_img, objects, i, (255, 102, 255), -1, lineType=8, hierarchy=hierarchy)
if debug is "print":
print_image(ori_img, (str(device) + "_mask_overlay.png"))
elif debug is "plot":
plot_image(ori_img)
return device, newmask
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: danforthcenter/plantcv
Commit Name: ab36ba9c62f650a2d61363ce29d5393a686d680c
Time: 2016-04-24
Author: noahfahlgren@gmail.com
File Name: lib/plantcv/crop_position_mask.py
Class Name:
Method Name: crop_position_mask
Project Name: danforthcenter/plantcv
Commit Name: ab36ba9c62f650a2d61363ce29d5393a686d680c
Time: 2016-04-24
Author: noahfahlgren@gmail.com
File Name: lib/plantcv/analyze_bound.py
Class Name:
Method Name: analyze_bound
Project Name: danforthcenter/plantcv
Commit Name: ab36ba9c62f650a2d61363ce29d5393a686d680c
Time: 2016-04-24
Author: noahfahlgren@gmail.com
File Name: lib/plantcv/crop_position_mask.py
Class Name:
Method Name: crop_position_mask
Project Name: danforthcenter/plantcv
Commit Name: ab36ba9c62f650a2d61363ce29d5393a686d680c
Time: 2016-04-24
Author: noahfahlgren@gmail.com
File Name: lib/plantcv/object_composition.py
Class Name:
Method Name: object_composition