This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import math | |
def grayscale(img): | |
"""Applies the Grayscale transform | |
This will return an image with only one color channel | |
but NOTE: to see the returned image as grayscale | |
you should call plt.imshow(gray, cmap='gray')""" |
NewerOlder