00001 ##@package new_smoothgradient_slimpy 00002 # This is a very straight forward linear operator which computes the derivatives of the input function with a special 00003 # 3x3 filter which is more resistant to noise than the usual Sobel filter. smoothgradientX is a subclass of LinearOperatorStruct. 00004 # 00005 # @code 00006 # from slimpy_base.Core.User.linop.rclinOp import linearop_r as LinearOperatorStruct 00007 # import os, sys, re, string, glob, shutil 00008 # 00009 # #=============================================================================== 00010 # # Linear operator class itself 00011 # #=============================================================================== 00012 # class smoothgradientX( LinearOperatorStruct ): 00013 # \""" 00014 # Calculates a relatively robust gradient operator on its input 00015 # Note how smoothgradientX inherits all of its linear operator functionality 00016 # from LinearOperatorStruct. after the initialization is done of 00017 # smoothgradientX SLIMpy will do the rest of the work. 00018 # \""" 00019 # name = "smoothgradientX" 00020 # 00021 # def __init__( self, domain ): 00022 # 00023 # kparams = dict( adj=False ) 00024 # 00025 # LinearOperatorStruct.__init__( self, domain, **kparams ) 00026 # @endcode 00027 00028 from slimpy_base.Core.User.linop.rclinOp import linearop_r as LinearOperatorStruct 00029 import os, sys, re, string, glob, shutil 00030 00031 #=============================================================================== 00032 # Linear operator class itself 00033 #=============================================================================== 00034 class smoothgradientX( LinearOperatorStruct ): 00035 """ 00036 Calculates a relatively robust gradient operator on its input 00037 Note how smoothgradientX inherits all of its linear operator functionality 00038 from LinearOperatorStruct. after the initialization is done of 00039 smoothgradientX SLIMpy will do the rest of the work. 00040 """ 00041 name = "smoothgradientX" 00042 00043 def __init__( self, domain ): 00044 00045 kparams = dict( adj=False ) 00046 00047 LinearOperatorStruct.__init__( self, domain, **kparams )