feat: initialize standalone image-filter
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.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
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
|
||||
Reference in New Issue
Block a user