9dbe3f07cbf9a3d211bad1f7fc48fb7fab4cefcc,plantcv/plantcv/morphology/segment_insertion_angle.py,,segment_insertion_angle,#,21

Before Change



                for tip_tups in tip_tuples:
                    // If a tip is inside the list of contour tuples then it is a leaf end segment
                    if tip_tups in cnt_as_tuples:
                        is_insertion_segment.append(False)
                    else:
                        is_insertion_segment.append(True)

                // If none of the tips are within a segment_end then it"s an insertion segment
                if all(is_insertion_segment):
                    insertion_segments.append(segment_end_obj[j])
                    insertion_hierarchies.append(segment_end_hierarchy[0][j])

After Change



                segment_plot = np.zeros(segmented_img.shape[:2], np.uint8)
                cv2.drawContours(segment_plot, obj, -1, 255, 1, lineType=8)
                overlap_img = logical_and(segment_plot, tips)

                // If none of the tips are within a segment_end then it"s an insertion segment
                if np.sum(overlap_img) == 0:
                    insertion_segments.append(segment_end_obj[j])
                    insertion_hierarchies.append(segment_end_hierarchy[0][j])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: danforthcenter/plantcv
Commit Name: 9dbe3f07cbf9a3d211bad1f7fc48fb7fab4cefcc
Time: 2019-08-22
Author: haleyschuhl@gmail.com
File Name: plantcv/plantcv/morphology/segment_insertion_angle.py
Class Name:
Method Name: segment_insertion_angle


Project Name: logpai/loglizer
Commit Name: 7c960272c5ab4d25a022538f5849addec3e6bfee
Time: 2019-02-25
Author: zhujm.home@gmail.com
File Name: loglizer/preprocessing.py
Class Name: FeatureExtractor
Method Name: transform


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 3638fca792dab94d7f3c39a140b9a7a1c7bcca4e
Time: 2018-05-21
Author: eriklindernoren@gmail.com
File Name: models.py
Class Name:
Method Name: create_modules