yt.utilities.lib.image_utilities module¶
Utilities for images
- yt.utilities.lib.image_utilities.add_cells_to_image_offaxis(*, Xp, dXp, qty, weight, rotation, buffer, buffer_weight, Nx, Ny, Npix_min=4)¶
- yt.utilities.lib.image_utilities.add_points_to_greyscale_image(buffer, buffer_mask, px, py, pv)¶
- yt.utilities.lib.image_utilities.add_points_to_image(buffer, px, py, pv)¶
- yt.utilities.lib.image_utilities.add_rgba_points_to_image(buffer, px, py, rgba)¶
Splat rgba points onto an image
Given an image buffer, add colors to pixels defined by fractional positions px and py, with colors rgba. px and py are one dimensional arrays, and rgba is a an array of rgba values.