mango.data.createCheckerDds

mango.data.createCheckerDds(shape, checkShape, checkOrigin=(0, 0, 0), black=0, white=1, dtype='uint8', mtype=None, halo=(0, 0, 0), mpidims=(0, 0, 0), origin=(0, 0, 0))

Creates a 3D checker-board image.

Parameters:
  • shape (3-sequence) – The global shape (zSz,ySz,xSz) of the returned mango.Dds image.
  • checkShape (3-sequence) – The shape of the checks.
  • checkOrigin (3-sequence) – The origin (relative to the origin parameter) of where the checks begin to be stacked.
  • black (value) – The value for the black checks.
  • white (value) – The value for the white checks.
  • dtype (numpy.dtype) – The element type of the returned array.
  • mtype (mango.mtype) – The mango data type for the checker-board image.
  • halo (3-sequence) – The halo size for the returned mango.Dds object.
  • mpidims (3-sequence) – Cartesian MPI domain decomposition.
  • origin (3-sequence) – The global origin index for the returned mango.Dds object.
Return type:

mango.Dds

Returns:

Checker-board mango.Dds

Previous topic

mango.data.fill_ellipsoid

Next topic

mango.data.chi_squared_noise

This Page