Пример #1
0
def main():
    for image in Images:
        img = cv2.imread('images/' + image, 0)
        optimg = us.makeOptimalSize(img)

        ts.task1a(optimg)
        ts.task1b(optimg)
        ts.task2a(img)
        ts.task2b(img)

    img1 = cv2.imread('images/bush.tiff', 0)
    img2 = cv2.imread('images/clinton.tiff', 0)
    ts.task1c(img1, img2)
Пример #2
0
def main():
    for image, seeds in Segmentation:
        img = cv2.imread('images/' + image, 0)

        ts.task1a(img)
        ts.task1b(img, seeds)

    for image in Morph_Imgs:
        img = cv2.imread('images/' + image, 0)

        ts.task2a(img)
        ts.task2b(img)
        ts.task2c(img)