125 def register(self, order: float, kind: PluginType) -> Callable:
126 """Register a plugin which is to be run when producing a
132 This determines in what order plugins will be run. For
133 example, if plugin A specifies order 2, and plugin B
134 specifies order 1, and both are the same ``kind`` of
135 plugin type, plugin B will be run before plugin A.
137 This specifies what data the registered plugin expects
138 to run on, a channel, a partial image, or a full mosaic.
143 Decorator function for registering the plugin.
147 func: Callable[[NDArray, NDArray, Mapping[str, int], PipelineTaskConfig], NDArray],
148 ) -> Callable[[NDArray, NDArray, Mapping[str, int], PipelineTaskConfig], NDArray]:
149 """Wrapper decorator for registering plugin functions.
154 Plugin function being registered.
159 The same plugin function, now registered in the registry.
162 case PluginType.PARTIAL:
164 case PluginType.FULL:
166 case PluginType.CHANNEL: