mango.data.fill_annular_circular_cylinder

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

Fills an annular cylinder 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 annulus are set to the specified fill value.
  • centre (3 sequence of float) – The centre coordinate of the annular cylinder (cz,cy,cx).
  • inner_radius (float) – The radius of the inner cylinder of the annulus.
  • annular_width (float) – The width of the annulus: inner_radius + annular_width = outer_radius.
  • axislen (float) – The length of the cylinder axis.
  • fill (numeric) – The value assigned to voxels inside the annular 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 annular 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, inner_radius, annular_width 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_annular_circular_cylinder(boost::python::api::object,boost::python::api::object,double,double,double [,boost::python::api::object=0 [,boost::python::api::object=None [,std::string=’voxel’ [,std::string=’relative’]]]])

Previous topic

mango.data.gaussian_noise_like

Next topic

mango.data.fill_box

This Page