identify_precise_voxel_features
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.
- identify_precise_voxel_features(cohort: Cohort, *, extractor_factory: Callable[[int, float], VoxelFeatureExtractor] | None = None, kernel_radii: Sequence[int] = (1, 3), bin_widths: Sequence[float] = (12, 25), base_kernel_radius: int = 3, base_bin_width: float = 12, perturbation: ImagePerturbation | None = None, lcl_threshold: float = 0.5, include: Sequence[str] = (), exclude: Sequence[str] = (), alpha: float = 0.05, min_voxels: int = 10, seed: int = 0, show_progress: bool = True) PreciseFeatureSet[source]
Identify the voxel features precise enough to define habitats.
Per subject, up to three experiments are run:
repeatability– ICC(3A,1) between the base-setting feature maps of the original and of one perturbed (simulated retest) image;reproducibility_kernel_radius– ICC(3C,1) between the feature maps atkernel_radiiwith the bin width fixed atbase_bin_width(skipped when fewer than two radii are given);reproducibility_bin_width– ICC(3C,1) between the feature maps atbin_widthswith the radius fixed atbase_kernel_radius(skipped when fewer than two widths are given).
Per-feature per-subject ICCs are aggregated by the cohort median (the paper’s aggregation), and a feature is precise when its median LCL reaches
lcl_thresholdin EVERY experiment, subject to theinclude/excludeexpert overrides (the paper usedincludefor NGTDM Coarseness).- Parameters:
cohort – Subjects to screen on; their ROIs define the voxel pools.
extractor_factory –
(kernel_radius, bin_width) -> extractor;Noneselectsvoxel_radiomics_factory()(the bundled CT preset). Custom extractors need a factory mapping the grid point onto their own settings.kernel_radii – Reproducibility grid of neighbourhood radii; the paper contrasts R1 with R3.
bin_widths – Reproducibility grid of bin widths; the paper contrasts B12 with B25.
base_kernel_radius – Radius of the base (repeatability) setting.
base_bin_width – Bin width of the base (repeatability) setting.
perturbation – Simulated-retest perturbation;
Noneselects the paper’s chain (Chang-estimated Gaussian noise, sub-voxel translation, 0.5-degree in-plane rotation, original ROI kept).lcl_threshold – Lower-confidence-limit cutoff;
0.5is the paper’s “at least good” boundary.include – Expert overrides added regardless of the criteria.
exclude – Features removed regardless of the criteria.
alpha – Two-sided significance level of the confidence limits.
min_voxels – Minimum paired-voxel count per subject; below it a subject’s feature is unmeasurable and does not veto the median.
seed – Master seed; each subject’s perturbation draws from its own spawned child sequence, so the screen is fully reproducible.
show_progress – Show a progress bar over the cohort.
- Returns:
The precise feature set with the cohort-level evidence panels.
- Raises:
HABITAPIError – If the cohort is empty.