<s> import itk <EOL> import core . modules <EOL> from core . modules . vistrails_module import Module , ModuleError <EOL> from ITK import * <EOL> from Image import Image <EOL> class CurvatureAnisotropicDiffusionFilter ( Module ) : <EOL> my_namespace = "<STR_LIT>" <EOL> def compute ( self ) : <EOL> im = self . get_input ( "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> inPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> inPixelType = im . getPixelType ( ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> dim = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> dim = im . getDim ( ) <EOL> inImgType = itk . Image [ inPixelType . _type , dim ] <EOL> try : <EOL> self . filter_ = itk . CurvatureAnisotropicDiffusionImageFilter [ inImgType , inImgType ] . New ( im . getImg ( ) ) <EOL> except : <EOL> raise ModuleError ( self , "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> iterations = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> iterations = <NUM_LIT:5> <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> timestep = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> if dim == <NUM_LIT:2> : <EOL> timestep = <NUM_LIT> <EOL> else : <EOL> timestep = <NUM_LIT> <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> conductance = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> conductance = <NUM_LIT> <EOL> self . filter_ . SetNumberOfIterations ( iterations ) <EOL> self . filter_ . SetTimeStep ( timestep ) <EOL> self . filter_ . SetConductanceParameter ( conductance ) <EOL> self . filter_ . Update ( ) <EOL> outIm = Image ( ) <EOL> outIm . setImg ( self . filter_ . GetOutput ( ) ) <EOL> outIm . setPixelType ( inPixelType ) <EOL> outIm . setDim ( dim ) <EOL> self . set_output ( "<STR_LIT>" , outIm ) <EOL> self . set_output ( "<STR_LIT>" , self ) <EOL> @ classmethod <EOL> def register ( cls , reg , basic ) : <EOL> reg . add_module ( cls , name = "<STR_LIT>" , namespace = cls . my_namespace ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) , True ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Filter , '<STR_LIT>' ) , True ) <EOL> class RecursiveGaussianImageFilter ( Module ) : <EOL> my_namespace = "<STR_LIT>" <EOL> def compute ( self ) : <EOL> im = self . get_input ( "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> inPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> inPixelType = im . getPixelType ( ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> outPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> outPixelType = inPixelType <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> dim = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> dim = im . getDim ( ) <EOL> outdim = dim <EOL> inImgType = itk . Image [ inPixelType . _type , dim ] <EOL> outImgType = itk . Image [ outPixelType . _type , dim ] <EOL> self . filter_ = itk . RecursiveGaussianImageFilter [ inImgType , outImgType ] . New ( im . getImg ( ) ) <EOL> sigma = self . get_input ( "<STR_LIT>" ) <EOL> self . filter_ . SetSigma ( sigma ) <EOL> self . filter_ . Update ( ) <EOL> outIm = Image ( ) <EOL> outIm . setImg ( self . filter_ . GetOutput ( ) ) <EOL> outIm . setPixelType ( outPixelType ) <EOL> outIm . setDim ( dim ) <EOL> self . set_output ( "<STR_LIT>" , outIm ) <EOL> self . set_output ( "<STR_LIT>" , outPixelType ) <EOL> self . set_output ( "<STR_LIT>" , outdim ) <EOL> @ classmethod <EOL> def register ( cls , reg , basic ) : <EOL> reg . add_module ( cls , name = "<STR_LIT>" , namespace = cls . my_namespace ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> class CurvatureFlowImageFilter ( Module ) : <EOL> my_namespace = "<STR_LIT>" <EOL> def compute ( self ) : <EOL> im = self . get_input ( "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> inPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> inPixelType = im . getPixelType ( ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> dim = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> dim = im . getDim ( ) <EOL> inImgType = itk . Image [ inPixelType . _type , dim ] <EOL> try : <EOL> self . filter_ = itk . CurvatureFlowImageFilter [ inImgType , inImgType ] . New ( im . getImg ( ) ) <EOL> except : <EOL> raise ModuleError ( self , "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> self . ts = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> self . ts = <NUM_LIT> <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> self . iterations = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> self . iterations = <NUM_LIT:5> <EOL> self . filter_ . SetTimeStep ( self . ts ) <EOL> self . filter_ . SetNumberOfIterations ( self . iterations ) <EOL> self . filter_ . Update ( ) <EOL> outIm = Image ( ) <EOL> outIm . setImg ( self . filter_ . GetOutput ( ) ) <EOL> outIm . setPixelType ( inPixelType ) <EOL> outIm . setDim ( dim ) <EOL> self . set_output ( "<STR_LIT>" , outIm ) <EOL> @ classmethod <EOL> def register ( cls , reg , basic ) : <EOL> reg . add_module ( cls , name = "<STR_LIT>" , namespace = cls . my_namespace ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> class DiscreteGaussianImageFilter ( Module ) : <EOL> my_namespace = '<STR_LIT>' <EOL> def compute ( self ) : <EOL> im = self . get_input ( "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> inPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> inPixelType = im . getPixelType ( ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> outPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> outPixelType = inPixelType <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> dim = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> dim = im . getDim ( ) <EOL> inImgType = itk . Image [ inPixelType . _type , dim ] <EOL> outImgType = itk . Image [ outPixelType . _type , dim ] <EOL> gaussian_variance = self . get_input ( "<STR_LIT>" ) <EOL> max_kernel_width = self . get_input ( "<STR_LIT>" ) <EOL> try : <EOL> self . filter_ = itk . DiscreteGaussianImageFilter [ inImgType , outImgType ] . New ( im . getImg ( ) ) <EOL> except : <EOL> raise ModuleError ( self , "<STR_LIT>" ) <EOL> self . filter_ . SetVariance ( gaussian_variance ) <EOL> self . filter_ . SetMaximumKernelWidth ( max_kernel_width ) <EOL> self . filter_ . Update ( ) <EOL> outIm = Image ( ) <EOL> outIm . setImg ( self . filter_ . GetOutput ( ) ) <EOL> outIm . setPixelType ( outPixelType ) <EOL> outIm . setDim ( dim ) <EOL> self . set_output ( "<STR_LIT>" , outIm ) <EOL> self . set_output ( "<STR_LIT>" , self ) <EOL> self . set_output ( "<STR_LIT>" , outPixelType ) <EOL> @ classmethod <EOL> def register ( cls , reg , basic ) : <EOL> reg . add_module ( cls , name = "<STR_LIT>" , namespace = cls . my_namespace ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Filter , '<STR_LIT>' ) , True ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> class BinomialBlurImageFilter ( Module ) : <EOL> my_namespace = '<STR_LIT>' <EOL> def compute ( self ) : <EOL> im = self . get_input ( "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> inPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> inPixelType = im . getPixelType ( ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> outPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> outPixelType = inPixelType <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> dim = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> dim = im . getDim ( ) <EOL> inImgType = itk . Image [ inPixelType . _type , dim ] <EOL> outImgType = itk . Image [ outPixelType . _type , dim ] <EOL> repetitions = self . get_input ( "<STR_LIT>" ) <EOL> self . filter_ = itk . BinomialBlurImageFilter [ inImgType , outImgType ] . New ( im . getImg ( ) ) <EOL> self . filter_ . SetRepetitions ( repetitions ) <EOL> self . filter_ . Update ( ) <EOL> outIm = Image ( ) <EOL> outIm . setImg ( self . filter_ . GetOutput ( ) ) <EOL> outIm . setPixelType ( outPixelType ) <EOL> outIm . setDim ( dim ) <EOL> self . set_output ( "<STR_LIT>" , outIm ) <EOL> self . set_output ( "<STR_LIT>" , self ) <EOL> self . set_output ( "<STR_LIT>" , outPixelType ) <EOL> @ classmethod <EOL> def register ( cls , reg , basic ) : <EOL> reg . add_module ( cls , name = "<STR_LIT>" , namespace = cls . my_namespace ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Filter , '<STR_LIT>' ) , True ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> class GradientAnisotropicDiffusionImageFilter ( Module ) : <EOL> my_namespace = '<STR_LIT>' <EOL> def compute ( self ) : <EOL> im = self . get_input ( "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> inPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> inPixelType = im . getPixelType ( ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> outPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> outPixelType = inPixelType <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> dim = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> dim = im . getDim ( ) <EOL> inImgType = itk . Image [ inPixelType . _type , dim ] <EOL> outImgType = itk . Image [ outPixelType . _type , dim ] <EOL> timestep = self . get_input ( "<STR_LIT>" ) <EOL> conductance = self . get_input ( "<STR_LIT>" ) <EOL> iterations = self . get_input ( "<STR_LIT>" ) <EOL> try : <EOL> self . filter_ = itk . GradientAnisotropicDiffusionImageFilter [ inImgType , outImgType ] . New ( im . getImg ( ) ) <EOL> except : <EOL> raise ModuleError ( self , "<STR_LIT>" ) <EOL> self . filter_ . SetTimeStep ( timestep ) <EOL> self . filter_ . SetConductanceParameter ( conductance ) <EOL> self . filter_ . SetNumberOfIterations ( iterations ) <EOL> self . filter_ . Update ( ) <EOL> outIm = Image ( ) <EOL> outIm . setImg ( self . filter_ . GetOutput ( ) ) <EOL> outIm . setPixelType ( outPixelType ) <EOL> outIm . setDim ( dim ) <EOL> self . set_output ( "<STR_LIT>" , outIm ) <EOL> self . set_output ( "<STR_LIT>" , self ) <EOL> self . set_output ( "<STR_LIT>" , outPixelType ) <EOL> @ classmethod <EOL> def register ( cls , reg , basic ) : <EOL> reg . add_module ( cls , name = "<STR_LIT>" , namespace = cls . my_namespace ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Filter , '<STR_LIT>' ) , True ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> class MinMaxCurvatureFlowImageFilter ( Module ) : <EOL> my_namespace = '<STR_LIT>' <EOL> def compute ( self ) : <EOL> im = self . get_input ( "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> inPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> inPixelType = im . getPixelType ( ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> outPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> outPixelType = inPixelType <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> dim = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> dim = im . getDim ( ) <EOL> inImgType = itk . Image [ inPixelType . _type , dim ] <EOL> outImgType = itk . Image [ outPixelType . _type , dim ] <EOL> timestep = self . get_input ( "<STR_LIT>" ) <EOL> radius = self . get_input ( "<STR_LIT>" ) <EOL> iterations = self . get_input ( "<STR_LIT>" ) <EOL> self . filter_ = itk . MinMaxCurvatureFlowImageFilter [ inImgType , outImgType ] . New ( im . getImg ( ) ) <EOL> self . filter_ . SetTimeStep ( timestep ) <EOL> self . filter_ . SetStencilRadius ( radius ) <EOL> self . filter_ . SetNumberOfIterations ( iterations ) <EOL> self . filter_ . Update ( ) <EOL> outIm = Image ( ) <EOL> outIm . setImg ( self . filter_ . GetOutput ( ) ) <EOL> outIm . setPixelType ( outPixelType ) <EOL> outIm . setDim ( dim ) <EOL> self . set_output ( "<STR_LIT>" , outIm ) <EOL> self . set_output ( "<STR_LIT>" , self ) <EOL> self . set_output ( "<STR_LIT>" , outPixelType ) <EOL> @ classmethod <EOL> def register ( cls , reg , basic ) : <EOL> reg . add_module ( cls , name = "<STR_LIT>" , namespace = cls . my_namespace ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Filter , '<STR_LIT>' ) , True ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> class BilateralImageFilter ( Module ) : <EOL> my_namespace = '<STR_LIT>' <EOL> def compute ( self ) : <EOL> im = self . get_input ( "<STR_LIT>" ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> inPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> inPixelType = im . getPixelType ( ) <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> outPixelType = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> outPixelType = inPixelType <EOL> if self . has_input ( "<STR_LIT>" ) : <EOL> dim = self . get_input ( "<STR_LIT>" ) <EOL> else : <EOL> dim = im . getDim ( ) <EOL> inImgType = itk . Image [ inPixelType . _type , dim ] <EOL> outImgType = itk . Image [ outPixelType . _type , dim ] <EOL> range_sigma = self . get_input ( "<STR_LIT>" ) <EOL> domain_sigma = self . get_input ( "<STR_LIT>" ) <EOL> self . filter_ = itk . BilateralImageFilter [ inImgType , outImgType ] . New ( im . getImg ( ) ) <EOL> self . filter_ . SetRangeSigma ( range_sigma ) <EOL> self . filter_ . SetDomainSigma ( domain_sigma ) <EOL> self . filter_ . Update ( ) <EOL> outIm = Image ( ) <EOL> outIm . setImg ( self . filter_ . GetOutput ( ) ) <EOL> outIm . setPixelType ( outPixelType ) <EOL> outIm . setDim ( dim ) <EOL> self . set_output ( "<STR_LIT>" , outIm ) <EOL> self . set_output ( "<STR_LIT>" , self ) <EOL> self . set_output ( "<STR_LIT>" , outPixelType ) <EOL> @ classmethod <EOL> def register ( cls , reg , basic ) : <EOL> reg . add_module ( cls , name = "<STR_LIT>" , namespace = cls . my_namespace ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Integer , '<STR_LIT>' ) , True ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) ) <EOL> reg . add_input_port ( cls , "<STR_LIT>" , ( basic . Float , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Image , '<STR_LIT>' ) ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( Filter , '<STR_LIT>' ) , True ) <EOL> reg . add_output_port ( cls , "<STR_LIT>" , ( PixelType , '<STR_LIT>' ) , True ) </s>
