polyTEM.crystal_peaks.flow_fields.seed_lines¶
- polyTEM.crystal_peaks.flow_fields.seed_lines(peak_matrix, step_size, seed_density=1, verbose=False)¶
Uses the peak matrix to produce a 3xn matrix of x, y, angle values to act as the start of lines that will be drawn. Lines are seeded in every grid square with a peak. The number of line seeds per peak is equal to seed_density**2. Line seeds are distributed evenly in the grid square. If grid density is one, the line seed is in the center of the grid square. Line seeds point in both directions, so angles are on a domain of 360 degrees.
- Inputs:
peak_matrix: binary matrix showing the positions of peaks step_size: spacing between matrix nodes seed_density: larger grid density means more line seeds. The line seeds will be distributed evenly about
the grid square.
- Outputs:
3xn array of (x, y, angle) values. Angles are on a domain of 360 degrees.