|
15 | 15 |
|
16 | 16 | - **Structural Features** |
17 | 17 |
|
18 | | - Structural features extend the basic `Feature` class by adding hierarchical |
19 | | - or logical structures, such as chains, branches, or probabilistic choices. |
20 | | - They enable the construction of pipelines with advanced data flow |
21 | | - requirements. |
| 18 | + Structural features extend the basic `StructuralFeature` class by adding |
| 19 | + hierarchical or logical structures, such as chains, branches, or |
| 20 | + probabilistic choices. They enable the construction of pipelines with |
| 21 | + advanced data flow requirements. |
22 | 22 |
|
23 | 23 | - **Feature Properties** |
24 | 24 |
|
25 | | - Features in DeepTrack2 can have dynamically sampled properties, enabling |
26 | | - parameterization of transformations. These properties are defined at |
27 | | - initialization and can be updated during pipeline execution. |
| 25 | + Features can have dynamically sampled properties, enabling parameterization |
| 26 | + of transformations. These properties are defined at initialization and can |
| 27 | + be updated during pipeline execution. |
28 | 28 |
|
29 | 29 | - **Pipeline Composition** |
30 | 30 |
|
|
43 | 43 |
|
44 | 44 | - `Feature`: Base class for all features in DeepTrack2. |
45 | 45 |
|
46 | | - It represents a modular data transformation with properties and methods for |
47 | | - customization. |
| 46 | + In general, a feature represents a modular data transformation with |
| 47 | + properties and methods for customization. |
48 | 48 |
|
49 | | -- `StructuralFeature`: Provide structure without input transformations. |
| 49 | +- `StructuralFeature`: Base class for features providing structure. |
50 | 50 |
|
51 | | - A specialized feature for organizing and managing hierarchical or logical |
52 | | - structures in the pipeline. |
| 51 | + Base class for specialized features for organizing and managing |
| 52 | + hierarchical or logical structures in the pipeline without input |
| 53 | + transformations. |
53 | 54 |
|
54 | 55 | - `ArithmeticOperationFeature`: Apply arithmetic operation element-wise. |
55 | 56 |
|
|
73 | 74 | - `Value`: Store a constant value as a feature. |
74 | 75 | - `Stack`: Stack the input and the value. |
75 | 76 | - `Arguments`: A convenience container for pipeline arguments. |
76 | | -- `Slice`: Dynamically applies array indexing to inputs. |
| 77 | +- `Slice`: Dynamically apply array indexing to inputs. |
77 | 78 | - `Lambda`: Apply a user-defined function to the input. |
78 | 79 | - `Merge`: Apply a custom function to a list of inputs. |
79 | 80 | - `OneOf`: Resolve one feature from a given collection. |
80 | 81 | - `OneOfDict`: Resolve one feature from a dictionary and apply it to an input. |
81 | 82 | - `LoadImage`: Load an image from disk and preprocess it. |
82 | 83 | - `SampleToMasks`: Create a mask from a list of images. |
83 | | -- `AsType`: Convert the data type of images. |
| 84 | +- `AsType`: Convert the data type of the input. |
84 | 85 | - `ChannelFirst2d`: DEPRECATED Convert an image to a channel-first format. |
85 | 86 | - `Upscale`: Simulate a pipeline at a higher resolution. |
86 | 87 | - `NonOverlapping`: Ensure volumes are placed non-overlapping in a 3D space. |
87 | 88 | - `Store`: Store the output of a feature for reuse. |
88 | | -- `Squeeze`: Squeeze the input image to the smallest possible dimension. |
89 | | -- `Unsqueeze`: Unsqueeze the input image to the smallest possible dimension. |
| 89 | +- `Squeeze`: Squeeze the input to the smallest possible dimension. |
| 90 | +- `Unsqueeze`: Unsqueeze the input. |
90 | 91 | - `ExpandDims`: Alias of `Unsqueeze`. |
91 | | -- `MoveAxis`: Moves the axis of the input image. |
92 | | -- `Transpose`: Transpose the input image. |
| 92 | +- `MoveAxis`: Move the axis of the input. |
| 93 | +- `Transpose`: Transpose the input. |
93 | 94 | - `Permute`: Alias of `Transpose`. |
94 | 95 | - `OneHot`: Convert the input to a one-hot encoded array. |
95 | 96 | - `TakeProperties`: Extract all instances of properties from a pipeline. |
|
98 | 99 | - `Add`: Add a value to the input. |
99 | 100 | - `Subtract`: Subtract a value from the input. |
100 | 101 | - `Multiply`: Multiply the input by a value. |
101 | | -- `Divide`: Divide the input with a value. |
102 | | -- `FloorDivide`: Divide the input with a value. |
| 102 | +- `Divide`: Divide the input by a value. |
| 103 | +- `FloorDivide`: Divide the input by a value. |
103 | 104 | - `Power`: Raise the input to a power. |
104 | 105 | - `LessThan`: Determine if input is less than value. |
105 | 106 | - `LessThanOrEquals`: Determine if input is less than or equal to value. |
|
112 | 113 |
|
113 | 114 | Functions: |
114 | 115 |
|
115 | | -- `propagate_data_to_dependencies`: |
| 116 | +- `propagate_data_to_dependencies(feature, **kwargs) -> None` |
116 | 117 |
|
117 | | - def propagate_data_to_dependencies( |
118 | | - feature: Feature, |
119 | | - **kwargs: Any |
120 | | - ) -> None |
121 | | -
|
122 | | - Propagates data to all dependencies of a feature, updating their properties |
| 118 | + Propagate data to all dependencies of a feature, updating their properties |
123 | 119 | with the provided values. |
124 | 120 |
|
125 | 121 | Examples |
|
0 commit comments