T
- the concrete builder typepublic abstract static class ImageTranslator.BaseBuilder<T extends ImageTranslator.BaseBuilder>
extends java.lang.Object
ImageTranslator
.Modifier and Type | Field and Description |
---|---|
protected NDImageUtils.Flag |
flag |
protected Pipeline |
pipeline |
Constructor and Description |
---|
BaseBuilder() |
Modifier and Type | Method and Description |
---|---|
T |
optFlag(NDImageUtils.Flag flag)
Sets the optional
NDImageUtils.Flag (default is NDImageUtils.Flag#COLOR ). |
protected abstract T |
self() |
T |
setPipeline(Pipeline pipeline)
Sets the
Pipeline to use for pre-processing the image. |
protected NDImageUtils.Flag flag
protected Pipeline pipeline
public T optFlag(NDImageUtils.Flag flag)
NDImageUtils.Flag
(default is NDImageUtils.Flag#COLOR
).flag
- the color mode for the imagespublic T setPipeline(Pipeline pipeline)
Pipeline
to use for pre-processing the image.pipeline
- the pre-processing pipelineprotected abstract T self()