1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
//! # 3D Volumetric Image Processing (`scirs2-ndimage::volume`)
//!
//! This module provides a comprehensive, production-quality API for processing
//! and analysing 3-D volumetric images. It is organised into four
//! sub-modules:
//!
//! | Sub-module | Contents |
//! |------------|---------|
//! | [`filters3d`] | Gaussian, median, Sobel, LoG, bilateral, anisotropic diffusion |
//! | [`morphology3d`] | Erosion, dilation, opening, closing, binary variants, CC labeling, skeleton |
//! | [`measurements3d`] | Label, region properties, moment-of-inertia tensor |
//! | [`surface`] | Marching cubes, surface-normal estimation, isosurface extraction |
//!
//! ## Quick Example
//!
//! ```rust,no_run
//! use scirs2_ndimage::volume::{
//! gaussian_filter_3d, median_filter_3d, sobel_3d,
//! binary_erosion_3d, connected_components_3d, StructElem3D,
//! label_3d, region_props_3d,
//! marching_cubes, isosurface_extraction,
//! };
//! use scirs2_core::ndarray::Array3;
//!
//! // Build a small test volume
//! let vol = Array3::<f64>::from_elem((16, 16, 16), 1.0);
//!
//! // 3-D Gaussian smoothing
//! let smoothed = gaussian_filter_3d(vol.view(), 1.5).unwrap();
//!
//! // 3-D median filter
//! let med = median_filter_3d(vol.view(), 3).unwrap();
//!
//! // Binary mask operations
//! let mask = Array3::<bool>::from_elem((8, 8, 8), true);
//! let se = StructElem3D::Cross26;
//! let eroded = binary_erosion_3d(mask.view(), &se).unwrap();
//!
//! // Connected-component labeling
//! let (labels, n) = connected_components_3d(mask.view()).unwrap();
//! ```
// ── Filters ──────────────────────────────────────────────────────────────────
pub use ;
// ── Morphology ───────────────────────────────────────────────────────────────
pub use ;
// ── Measurements ─────────────────────────────────────────────────────────────
pub use ;
// ── Surface extraction ───────────────────────────────────────────────────────
pub use ;