bcaae5ec22
Rename the distribution to image-filter and imports to image_filter. Keep medical fixtures local and document their setup for fresh clones. Include composite pipelines, consistent examples, and class diagrams.
38 lines
788 B
Plaintext
38 lines
788 B
Plaintext
classDiagram
|
|
direction LR
|
|
class ImageItem {
|
|
+ndarray image
|
|
+Mapping metadata
|
|
}
|
|
class FilterResult {
|
|
+ndarray image
|
|
+Mapping metadata
|
|
}
|
|
class SpatialLayout {
|
|
+int dimension
|
|
+tuple spatial_axes
|
|
+tuple singleton_axes
|
|
+int channel_axis
|
|
}
|
|
class Capabilities {
|
|
+frozenset spatial_dimensions
|
|
+str accepted_dtypes
|
|
+str input_range
|
|
+str output_dtype
|
|
+bool preserves_shape
|
|
+bool supports_channels
|
|
}
|
|
class ImageFilter {
|
|
<<abstract>>
|
|
+apply(image, metadata) FilterResult
|
|
+apply_batch(items) list~FilterResult~
|
|
}
|
|
class NumericFilter {
|
|
<<abstract>>
|
|
}
|
|
ImageFilter <|-- NumericFilter
|
|
ImageFilter ..> ImageItem : consumes in batches
|
|
ImageFilter ..> FilterResult : returns
|
|
ImageFilter ..> Capabilities : declares
|
|
NumericFilter ..> SpatialLayout : validates and computes
|