Skip to content

splat

splat(rgba, gve, u, npx)

Categories: Scattering geometry

Description

draws gvectors into an rgba image. The horror of maintaining plot3d over the years motivated this code. See test/demo/tksplat * set the color and markersize per peak * perhaps also a draw order (back to front, top to bottom) ?

Parameters

Name Description
gve G-vectors (ng, 3).
npx Marker half-size.
rgba Output uint8 RGBA (h, w, 4).
u Projection matrix (9).

Constraints

  • rgba.format == 'B' or rgba.format == 'b'
  • rgba.ndim >= 1
  • gve.format == 'd'
  • gve.ndim >= 1
  • u.format == 'd'
  • u.n == 9
  • gve.slow_axis == 0
  • gve.ndim == 2
  • gve.shape[1] == 3

Overloads

C function Condition
splat always

Built from commit 7ba8255fa8d680e1a1df79e67aee3873247ce69c (v0.4.5)