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:
mohamad
2026-09-10 01:58:07 +03:30
commit bcaae5ec22
31 changed files with 2831 additions and 0 deletions
+37
View File
@@ -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