Ejemplo n.º 1
0
 def doSuccessExecAccumulator(self, _edPlugin=None):
     self.DEBUG(
         "EDPluginControlMedianFilterImagev1_0.doSuccessExecAccumulator")
     self.retrieveSuccessMessages(
         _edPlugin,
         "EDPluginControlMedianFilterImagev1_0.doSuccessExecAccumulator")
     xdOut = _edPlugin.getDataOutput()
     if (xdOut is not None) and (xdOut.getQuery() != []):
         query = xdOut.getQuery()[0]
         self.xsdMedian = XSDataInputMedianFilter()
         self.xsdMedian.setInputImages(
             [XSDataImage(i) for i in query.getItem()])
         if self.outputImage is not None:
             self.xsdMedian.setOutputImage(
                 XSDataImage(XSDataString(self.outputImage)))
Ejemplo n.º 2
0
 def testCheckParameters(self):
     xsDataInput = XSDataInputMedianFilter()
     xsDataInput.setInputImages([XSDataFile()])
     edPluginExecMedianFilter = self.createPlugin()
     edPluginExecMedianFilter.setDataInput(xsDataInput)
     edPluginExecMedianFilter.checkParameters()