dfecea486703d727905657b2dce890664dd1ba72,plantcv/rgb2gray_hsv.py,,rgb2gray_hsv,#Any#Any#Any#Any#,9

Before Change


            print_image(h, (str(device) + "_hsv_hue.png"))
        elif debug == "plot":
            plot_image(h, cmap="gray")
        return device, h
    elif channel == "s":
        if debug == "print":
            print_image(s, (str(device) + "_hsv_saturation.png"))

After Change


    // Split HSV channels
    h, s, v = cv2.split(hsv)
    // Create a channel dictionaries for lookups by a channel name index
    channels = {"h": h, "s": s, "v": v}

    if debug == "print":
        print_image(channels[channel], str(device) + "_hsv_" + names[channel] + ".png")
    elif debug == "plot":
        plot_image(channels[channel], cmap="gray")

    return device, channels[channel]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: danforthcenter/plantcv
Commit Name: dfecea486703d727905657b2dce890664dd1ba72
Time: 2017-04-18
Author: noahfahlgren@gmail.com
File Name: plantcv/rgb2gray_hsv.py
Class Name:
Method Name: rgb2gray_hsv


Project Name: danforthcenter/plantcv
Commit Name: b913ac03f287d77bbc6dc511b9e82e7af32de4fe
Time: 2014-03-17
Author: noahfahlgren@gmail.com
File Name: plantcv.py
Class Name:
Method Name: object_composition


Project Name: danforthcenter/plantcv
Commit Name: 4da4eb2efc5aebbdd83fae53fb56c720fffa6127
Time: 2015-08-19
Author: maliadong@gmail.com
File Name: lib/plantcv/analyze_color.py
Class Name:
Method Name: _pseudocolored_image