Previous Up Next

28.1.7  Modifying images

Setting pixel data explicitly.

Existing image objects can be modified by using the set_channel_data command.

Inverting pixel data.

To produce a negative of an image, i.e. to apply the function p↦ 255−p to all channel data entries, use the unary operator - or the command inv.


Previous Up Next