mango.data.fill_circular_cylinder

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

Fills an cylindrical volume of voxels with a specified fill-value. By default the axis of the cylinder is parallel to the image z-axis. Fills the input image in-place and does not overwrite masked voxels.

Parameters:
  • input (mango.Dds) – Image to be filled, voxels inside the cylinder are set to the specified fill value.
  • centre (3 sequence of float) – The centre coordinate of the cylinder (cz,cy,cx).
  • radius (float) – The radius of the cylinder.
  • axislen (float) – The length of the cylinder axis.
  • fill (numeric) – The value assigned to voxels inside the cylinder.
  • rotation (3x3 rotation matrix or (axis,angle) pair) – By default the axis of the cylinder is parallel to the image z-axis. The orientation of the cylinder, 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, radius and axislen 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_circular_cylinder(boost::python::api::object,boost::python::api::object,double,double [,boost::python::api::object=0 [,boost::python::api::object=None [,std::string=’voxel’ [,std::string=’relative’]]]])

Previous topic

mango.data.fill_box

Next topic

mango.data.fill_ellipsoid

This Page