insert_cylinder¶
- insert_cylinder(im, xyz0, xyz1, r)[source]¶
Inserts a cylinder of given radius onto an image
- Parameters:
im (array_like) – Original voxelated image
xyz0 (3-by-1 array_like) – Voxel coordinates of the two end points of the cylinder
xyz1 (3-by-1 array_like) – Voxel coordinates of the two end points of the cylinder
r (int) – Radius of the cylinder
- Returns:
im – Original voxelated image overlayed with the cylinder
- Return type:
ndarray
Notes
This function is only implemented for 3D images
Examples
Click here to view online example.