MeshExtractorFromSegmentedImage#
- class polpo.preprocessing.mri.MeshExtractorFromSegmentedImage(struct_id=-1, marching_cubes=None, return_colors=True, encoding=None)[source]#
Bases:
PreprocessingStep
Mesh extractor from images.
- Parameters:
struct_id (int or str) – Structure to select. Depends on segmentation tool. If -1 considers full structure. If integer, ignores encoding.
marching_cubes (callable) – Marching cubes algorithm.
return_colors (bool) – Whether to output colors. Ignored if marching_cubes is not None or no encoding. For the former, output len sets value.
encoding (str or StructEncoding) – Encoding or used segmentation tool. One of the following: ‘ashs*’, ‘fast*’, ‘free*’, ‘fsl*’. If None, tries to figure it out.