ffb294506a707f6af25534b5886f6a5947b7054d,plantcv/x_axis_pseudolandmarks.py,,x_axis_pseudolandmarks,#Any#Any#Any#Any#Any#,13

Before Change


        x = i[0,0]
        y = i[0,1]
        cv2.circle(img2,(int(x),int(y)),10,(0,79,255),-1)
        print_image(img2, (str(device) + "_x_axis_pseudolandmarks.png"))
    return device, top, bottom, center_v

After Change


    center_v = list(zip(x_centroids, y_centroids))
    center_v = np.array(center_v)
    center_v.shape = (20,1,2)
    if debug == "plot":
      img2 = np.copy(img)
      for i in top:
        x = i[0,0]
        y = i[0,1]
        cv2.circle(img2,(int(x),int(y)),10,(255,0,0),-1)
      for i in bottom:
        x = i[0,0]
        y = i[0,1]
        cv2.circle(img2,(int(x),int(y)),10,(255,0,255),-1)
      for i in center_v:
        x = i[0,0]
        y = i[0,1]
        cv2.circle(img2,(int(x),int(y)),10,(0,79,255),-1)
      //print_image(img2, (str(device) + "_x_axis_pseudolandmarks.png"))
      plot_image(img2)
    return device, top, bottom, center_v
    
  if extent < 21:
    // If the width of the object is less than 20 pixels just make the object a 20 pixel rectangle
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: danforthcenter/plantcv
Commit Name: ffb294506a707f6af25534b5886f6a5947b7054d
Time: 2016-09-09
Author: maxjfeldman@gmail.com
File Name: plantcv/x_axis_pseudolandmarks.py
Class Name:
Method Name: x_axis_pseudolandmarks


Project Name: danforthcenter/plantcv
Commit Name: ffb294506a707f6af25534b5886f6a5947b7054d
Time: 2016-09-09
Author: maxjfeldman@gmail.com
File Name: plantcv/y_axis_pseudolandmarks.py
Class Name:
Method Name: y_axis_pseudolandmarks


Project Name: danforthcenter/plantcv
Commit Name: ab36ba9c62f650a2d61363ce29d5393a686d680c
Time: 2016-04-24
Author: noahfahlgren@gmail.com
File Name: lib/plantcv/analyze_NIR_intensity.py
Class Name:
Method Name: analyze_NIR_intensity


Project Name: danforthcenter/plantcv
Commit Name: ffb294506a707f6af25534b5886f6a5947b7054d
Time: 2016-09-09
Author: maxjfeldman@gmail.com
File Name: plantcv/x_axis_pseudolandmarks.py
Class Name:
Method Name: x_axis_pseudolandmarks