mobius_data_augmentation/mobius_transformation.py
def shift_func(self, coords,a,b,c,d):
        """ Define the moebius transformation, though backwards """
        #turn the first two coordinates into an imaginary number
        z = coords[0] + 1j*coords[1]
        w = (d*z-b)/(-c*z+a) #the inverse mobius transform
        #take the color along for the ride
        return np.real(w),np.imag(w),coords[2]
 Define the moebius transformation, though backwards 
Define the moebius transformation, though backwards
Define the moebius transformation though backwards
def shift_func(self, coords,a,b,c,d):
        z = coords[0] + 1j*coords[1]
        w = (d*z-b)/(-c*z+a) 
        return np.real(w),np.imag(w),coords[2]
def shift_func ( self , coords , a , b , c , d ) : z = coords [ 0 ] + 1j * coords [ 1 ] w = ( d * z - b ) / ( - c * z + a ) return np . real ( w ) , np . imag ( w ) , coords [ 2 ]
Define the moebius transformation, though backwards
Define the moebius transformation though backwards
""" Define the moebius transformation, though backwards """ #turn the first two coordinates into an imaginary number #the inverse mobius transform #take the color along for the ride
self
coords
a
b
c
d