FreeDllPy usage are simple: #Start to import and instance the class import FiltersDllPy as FDP f = FDP.FiltersDllPy() inImg = "blob2.tif" outImg = "testFiltersDllPy_output_sobel.jpg" filterName = "filterSobel" #Load the image imageLoaded = f.loadImage(inImg) imageSobel = f.CreateImageLike(imageLoaded) #Create a parameter list with the filters syntax #You can specify the paramters type par = (("inImage",imageLoaded,FDP.P_IMAGE), ("outImage", imageSobel, FDP.P_IMAGE), ("blurIteration", 1, FDP.P_INT), ("gain", 5, FDP.P_INT), ("thresholdLower", 1, FDP.P_INT), ("thresholdUpper", 255, FDP.P_INT), ) #or leave the library to found it! par = (("inImage", imageLoaded), ("outImage", imageSobel), ("blurIteration", 1), ("gain", 5), ("thresholdLower", 1), ("thresholdUpper", 255), ) #Create a filter and run the paremters over f.createFilterRun(filterName, par) #Save the image f.saveImage(imageSobel, outImg) |