mango.data.fill_box

mango.data.fill_box((object)input, (object)centre, (object)shape[, (object)fill=0[, (object)rotation=None[, (str)unit='voxel'[, (str)coordsys='relative']]]]) → None :

Fills a box volume of voxels with a specified fill-value. Fills the input image in-place and does not overwrite masked voxels.

Parameters:
  • input (mango.Dds) – Image to be filled, voxels inside the box are set to the specified fill value.
  • centre (3 sequence of float) – The centre coordinate of the box (cz,cy,cx).
  • shape (3 sequence of float) – The shape/size of the box (sz_z,sz_y,sz_x).
  • fill (numeric) – The value assigned to voxels inside the box.
  • rotation (3x3 rotation matrix or (axis,angle) pair) – The orientation of the box, can be a 3x3 rotation matrix (e.g. numpy.eye(3,3)) or an axis and angle (radians) pair: ((axis_z, axis_y, axis_x), radian_angle).
  • unit (str) – Units for the centre and shape arguments, e.g. 'mm' or 'voxel', etc
  • coordsys (str - 'relative' or 'absolute') – Whether the centre is a 'relative' (to the input.origin) coordinate or an 'absolute' coordinate.
C++ signature :
void fill_box(boost::python::api::object,boost::python::api::object,boost::python::api::object [,boost::python::api::object=0 [,boost::python::api::object=None [,std::string=’voxel’ [,std::string=’relative’]]]])

Previous topic

mango.data.fill_annular_circular_cylinder

Next topic

mango.data.fill_circular_cylinder

This Page