scripts/FilterBank.py
def G2_fil_imag(x, y, paras):
    '''
    Custom-built filter response (imaginary part).
    '''
    # Spatial frequency in polar coordinates.
    u = paras["freqs"] * math.cos(paras["dir"])
    v = paras["freqs"] * math.sin(paras["dir"])
    # Computations.
    carrier = G2_carrier_imag(x=x, y=y, freqx=u, freqy=v, phase=paras["phase"])
    envelope = G2_envelope(x=x, y=y, amp=paras["amp"], sdev=paras["sdev"])
    out = carrier * envelope
    return out

    Custom-built filter response (imaginary part).
    
Custom-built filter response (imaginary part).
Custom - built filter response ( imaginary part ) .
def G2_fil_imag(x, y, paras):
    u = paras["freqs"] * math.cos(paras["dir"])
    v = paras["freqs"] * math.sin(paras["dir"])
    carrier = G2_carrier_imag(x=x, y=y, freqx=u, freqy=v, phase=paras["phase"])
    envelope = G2_envelope(x=x, y=y, amp=paras["amp"], sdev=paras["sdev"])
    out = carrier * envelope
    return out
def G2_fil_imag ( x , y , paras ) : u = paras [ "freqs" ] * math . cos ( paras [ "dir" ] ) v = paras [ "freqs" ] * math . sin ( paras [ "dir" ] ) carrier = G2_carrier_imag ( x = x , y = y , freqx = u , freqy = v , phase = paras [ "phase" ] ) envelope = G2_envelope ( x = x , y = y , amp = paras [ "amp" ] , sdev = paras [ "sdev" ] ) out = carrier * envelope return out
Custom-built filter response (imaginary part).
Custom - built filter response ( imaginary part ) .
'''
    Custom-built filter response (imaginary part).
    ''' # Spatial frequency in polar coordinates. # Computations.
x
y
paras