Exemplo n.º 1
0
ex8a = MorphoGray(image1Path="../../Resources/Gray/Zegarek.tiff")
ex8a.erozion(True, True)
ex8a.dilation(True, True)
ex8a.opening(True, True)
ex8a.closing(True, True)

ex8b = MorphoGray("2", image1Path="../../Resources/Gray/Statek.tiff")
ex8b.erozion(True, True)
ex8b.dilation(True, True)
ex8b.opening(True, True)
ex8b.closing(True, True)

##
ex9 = Filter(zad9 + "gentelman_gray.tiff")
ex9.averageGray(show=True)
ex9.gaussGray(show=True)
ex9.robertsGray(show=True)
ex9.prewittGray(show=True)
ex9.sobolGray(show=True)
ex9.compassGray(show=True)
ex9.reliefGray(show=True)
ex9.VDGGray(show=True)
ex9.medianGray(show=True)
ex9.maxGray(show=True)
ex9.minGray(show=True)
ex9.load(zad9 + "pirate_gray.tiff")
ex9.averageGray(show=True)
ex9.gaussGray(show=True)
ex9.robertsGray(show=True)
ex9.prewittGray(show=True)