a78d7b2c104a91547a41d3cd7da10e2893ab0ac4,plantcv/define_roi.py,,define_roi,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,11

Before Change


        roi_size = (ix - 5), (iy - 5)
        roi = np.zeros(roi_size, dtype=np.uint8)
        roi1 = roi + 1
        roi_contour, roi_heirarchy = cv2.findContours(roi1, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
        cv2.drawContours(roi_background, roi_contour[0], -1, (255, 0, 0), 5)
        if adjust == True:
            if (x_adj > 0 and w_adj > 0) or (y_adj > 0 and h_adj > 0) or (x_adj < 0 or y_adj < 0):
                fatal_error("Adjusted ROI position is out of frame, this will cause problems in detecting objects")

After Change


        roi_size = (ix - 5), (iy - 5)
        roi = np.zeros(roi_size, dtype=np.uint8)
        roi1 = roi + 1
        roi_contour, roi_heirarchy = cv2.findContours(roi1, cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)[-2:]
        cv2.drawContours(roi_background, roi_contour[0], -1, (255, 0, 0), 5)
        if adjust == True:
            if (x_adj > 0 and w_adj > 0) or (y_adj > 0 and h_adj > 0) or (x_adj < 0 or y_adj < 0):
                fatal_error("Adjusted ROI position is out of frame, this will cause problems in detecting objects")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 3

Instances


Project Name: danforthcenter/plantcv
Commit Name: a78d7b2c104a91547a41d3cd7da10e2893ab0ac4
Time: 2017-09-27
Author: fabian.dubois@gmail.com
File Name: plantcv/define_roi.py
Class Name:
Method Name: define_roi


Project Name: danforthcenter/plantcv
Commit Name: a78d7b2c104a91547a41d3cd7da10e2893ab0ac4
Time: 2017-09-27
Author: fabian.dubois@gmail.com
File Name: plantcv/rectangle_mask.py
Class Name:
Method Name: rectangle_mask


Project Name: danforthcenter/plantcv
Commit Name: a78d7b2c104a91547a41d3cd7da10e2893ab0ac4
Time: 2017-09-27
Author: fabian.dubois@gmail.com
File Name: plantcv/analyze_bound.py
Class Name:
Method Name: analyze_bound


Project Name: danforthcenter/plantcv
Commit Name: a78d7b2c104a91547a41d3cd7da10e2893ab0ac4
Time: 2017-09-27
Author: fabian.dubois@gmail.com
File Name: plantcv/fill.py
Class Name:
Method Name: fill


Project Name: danforthcenter/plantcv
Commit Name: a78d7b2c104a91547a41d3cd7da10e2893ab0ac4
Time: 2017-09-27
Author: fabian.dubois@gmail.com
File Name: plantcv/report_size_marker_area.py
Class Name:
Method Name: report_size_marker_area


Project Name: danforthcenter/plantcv
Commit Name: a78d7b2c104a91547a41d3cd7da10e2893ab0ac4
Time: 2017-09-27
Author: fabian.dubois@gmail.com
File Name: plantcv/roi_objects.py
Class Name:
Method Name: roi_objects


Project Name: danforthcenter/plantcv
Commit Name: a78d7b2c104a91547a41d3cd7da10e2893ab0ac4
Time: 2017-09-27
Author: fabian.dubois@gmail.com
File Name: plantcv/find_objects.py
Class Name:
Method Name: find_objects


Project Name: danforthcenter/plantcv
Commit Name: a78d7b2c104a91547a41d3cd7da10e2893ab0ac4
Time: 2017-09-27
Author: fabian.dubois@gmail.com
File Name: plantcv/crop_position_mask.py
Class Name:
Method Name: crop_position_mask