Code of TutorialP1

34pages on
this wiki
Add New Page
Talk0 Share

< Code

Code of 'TutorialP1' Edit

import FiltersDllPy as FDP

if __name__ == "__main__":
    f = FDP.FiltersDllPy()
    inImg = "C:/DEV/FiltersTutorial/Bin/blob2.tif"
    outImg = "C:/DEV/FiltersTutorial/Bin/testFiltersDllPy_output_sobel.jpg"
    filterName = "filterSobel" 	
    imageLoaded = f.loadImage(inImg)
    imageSobel = f.CreateImageLike(imageLoaded)
    par = (("inImage", imageLoaded),
    ("outImage", imageSobel),
    ("blurIteration", 1),
    ("gain", 5),
    ("thresholdLower", 1),
    ("thresholdUpper", 255),
    f.createFilterRun(filterName, par)
    f.saveImage(imageSobel, outImg)

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.