Ejemplo n.º 1
0
 def test_6_highPass(self):
     '''highPassFilter Normalization: ...................................'''
     ilog = None
     if 'ilog' in list(globals().keys()):
         ilog = globals()['ilog']
         
     norm = pv.highPassFilter(self.tile,10.0)
     
     if ilog != None:
         ilog.log(norm,label="highPass_Normalization")
         
     mat = norm.asMatrix2D()
     self.assertAlmostEqual(mat.mean(),0.0,delta=0.001)
     self.assertAlmostEqual(mat.std(),22.936873341661158,delta=0.01)
Ejemplo n.º 2
0
    def test_6_highPass(self):
        '''highPassFilter Normalization: ...................................'''
        ilog = None
        if 'ilog' in list(globals().keys()):
            ilog = globals()['ilog']

        norm = pv.highPassFilter(self.tile, 10.0)

        if ilog != None:
            ilog.log(norm, label="highPass_Normalization")

        mat = norm.asMatrix2D()
        self.assertAlmostEqual(mat.mean(), 0.0, delta=0.001)
        self.assertAlmostEqual(mat.std(), 22.936873341661158, delta=0.01)
Ejemplo n.º 3
0
 def test_6_highPass(self):
     '''highPassFilter Normalization: ...................................'''
     ilog = None
     if 'ilog' in globals().keys():
         ilog = globals()['ilog']
         
     norm = pv.highPassFilter(self.tile,10.0)
     
     if ilog != None:
         ilog.log(norm,label="highPass_Normalization")
         
     mat = norm.asMatrix2D()
     self.assertAlmostEqual(mat.mean(),0.0,places=4)
     self.assertAlmostEqual(mat.std(),22.935605337280723,places=3)
Ejemplo n.º 4
0
 def test_7_veryHighPass(self):
     '''highPassFilter Normalization: sigma = 1.5........................'''
     ilog = None
     if 'ilog' in list(globals().keys()):
         ilog = globals()['ilog']
         
     # This setting corsponds to the default gaussian in selfQuotient
     norm = pv.highPassFilter(self.tile,1.5)
     
     if ilog != None:
         ilog.log(norm,label="veryHighPass_Normalization")
         
     mat = norm.asMatrix2D()
     self.assertAlmostEqual(mat.mean(),0.0,delta=4)
     self.assertAlmostEqual(mat.std(),8.0027218003238687,delta=0.01)
Ejemplo n.º 5
0
    def test_7_veryHighPass(self):
        '''highPassFilter Normalization: sigma = 1.5........................'''
        ilog = None
        if 'ilog' in list(globals().keys()):
            ilog = globals()['ilog']

        # This setting corsponds to the default gaussian in selfQuotient
        norm = pv.highPassFilter(self.tile, 1.5)

        if ilog != None:
            ilog.log(norm, label="veryHighPass_Normalization")

        mat = norm.asMatrix2D()
        self.assertAlmostEqual(mat.mean(), 0.0, delta=4)
        self.assertAlmostEqual(mat.std(), 8.0027218003238687, delta=0.01)