diff options
Diffstat (limited to 'src/bjc/imgchain/pipeline/Pipeline.java')
| -rw-r--r-- | src/bjc/imgchain/pipeline/Pipeline.java | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/bjc/imgchain/pipeline/Pipeline.java b/src/bjc/imgchain/pipeline/Pipeline.java new file mode 100644 index 0000000..faba6d5 --- /dev/null +++ b/src/bjc/imgchain/pipeline/Pipeline.java @@ -0,0 +1,37 @@ +package bjc.imgchain.pipeline;
+
+import java.awt.Image;
+import java.util.List;
+
+/**
+ * Represents a pipeline for processing images.
+ *
+ * @author acm
+ *
+ */
+public interface Pipeline {
+ /**
+ * Process an image using the stages.
+ *
+ * @param input
+ * The input image, or null if no image is input.
+ * @return The output image, or null if no image is output.
+ */
+ Image process(Image input);
+
+ /**
+ * Get the stages of the pipeline.
+ *
+ * @return The stages of the pipeline.
+ */
+ List<PipelineStage> stages();
+
+ /**
+ * Get the name of the pipeline.
+ *
+ * @return The name of the pipeline.
+ */
+ default String name() {
+ return "Unnamed Pipeline";
+ }
+}
|
