def __init__(self,typeExtractor,band): Filter.__init__(self) self.logger = logging.getLogger('isce.isceobj.ImageFilter.BandExtractor') #get the filter C++ object pointer self._filter = FL.createFilter(typeExtractor,band) self._outCreatedHere = False self._imgOut = None
def __init__(self, typeExtractor, fromWhat): """Initialize the filter passing what is extracted and from what type of complex image""" Filter.__init__(self) self.logger = logging.getLogger( 'isce.isceobj.ImageFilter.ComplexExtractor') #possible inputs #(MagnitudeExctractor,'cartesian') #(MagnitudeExctractor,'polar') #(PhaseExctractor,'cartesian') #(PhaseExctractor,'polar') #(RealExctractor,'cartesian') #(ImagExctractor,'cartesian') #(RealExctractor,'polar') #(ImagExctractor,'polar') #get the filter C++ object pointer calling the Filtermodule.cpp which calls the FilterFactory.cpp self._filter = FL.createFilter(typeExtractor, fromWhat) self._outCreatedHere = False self._imgOut = None