recolo.slope_integration
Modules
Calculate displacement fields by integrating slope fields using sparse matrix integration. The slopes can be filtered by a gaussian low-pass filter, downsampled and extrapolated before integration. Parameters ---------- slopes_x : np.ndarray Slope field with shape (n_frames,n_pix_x,n_pix_y) slopes_y : np.ndarray Slope field with shape (n_frames,n_pix_x,n_pix_y) pixel_size : float The size of a pixel in slopes_x and slopes_y zero_at : string The position where a zero displacement boundary condition is enforced. Note that the boundary condition is not enforced exactly. Keywords: "top", "top_corners", "left", "right", "bottom", "bottom_corners" zero_at_size : int If zero_at is set to a corner, a rectangluar window with side lengths of zero_at_size are used. extrapolate_edge : int Extrapolate edge by n-pixels by padding with the boundary values filter_sigma : float The standard deviation of the gaussian low pass filter downsample : int Downsample the field before integration by n-pixels. |