dpr.register ============ .. py:module:: dpr.register Functions --------- .. autoapisummary:: dpr.register.align_bundles dpr.register.resample_bundles_to_same dpr.register.apply_shift dpr.register.flip_fibers dpr.register.truncate dpr.register.filter_pairs dpr.register.get_shift_from_fft dpr.register.get_ffts dpr.register.crosscorr dpr.register.extrapolate Module Contents --------------- .. py:function:: align_bundles(bundles, percent=15, padding=0.0, order=1, eps=1e-05, mode='full_template', remove_outliers=True, remove_baseline=True, whiten=True, normalize=False, return_shifts_matrix=False, rematch_outliers=True) .. py:function:: resample_bundles_to_same(bundles, num_points=None) .. py:function:: apply_shift(bundles, shifts, order=1, padding=np.nan) .. py:function:: flip_fibers(bundles, coordinates, padding=np.nan, template=None) bundle - 2D array of M bundles with each metrics of size N as a column coordinates - list of points of size whatever x 3 template - Use this streamline to set the coordinate system. If not set, we use the first one from coordinates. .. py:function:: truncate(bundles, mode='shortest', trimval=np.nan, axis=0) .. py:function:: filter_pairs(allpairs, mode) .. py:function:: get_shift_from_fft(x, y, normalize=False) .. py:function:: get_ffts(bundles, whiten=True, remove_baseline=True) .. py:function:: crosscorr(ffta, fftb, normalize=False) .. py:function:: extrapolate(x, y, return_value=False)