voxel_units

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

voxel_units(field: VoxelFeatureField) → Supervoxelization[source]

Wrap a voxel feature field as single-voxel clustering units.

The one-step and direct-pooling designs cluster voxels directly, with no supervoxel step. Representing each voxel as a one-voxel Supervoxelization keeps the assigner contract uniform instead of giving assigners a second input type to handle. It is also the building block one-step designs outside a SubjectPipeline.

Parameters:

field – Per-voxel features for one subject.

Returns:

A partition in which every ROI voxel is its own unit.

Examples using habit.pipeline.voxel_units

Preprocessing voxel texture before clustering

Preprocessing voxel texture before clustering

Clustering habitats from a derived map

Clustering habitats from a derived map

Clustering habitats from a texture field

Clustering habitats from a texture field

Why habitat ids must be matched

Why habitat ids must be matched

Matching maps of the same voxels by overlap

Matching maps of the same voxels by overlap

Prototype matching step by step

Prototype matching step by step

Naming a new cohort with frozen prototypes

Naming a new cohort with frozen prototypes

What matching changes in a cohort feature table

What matching changes in a cohort feature table

Matching habitat labels across subjects

Matching habitat labels across subjects