T - the concrete builder typepublic abstract static class BaseImageTranslator.BaseBuilder<T extends BaseImageTranslator.BaseBuilder>
extends java.lang.Object
BaseImageTranslator.| Modifier and Type | Field and Description |
|---|---|
protected Batchifier |
batchifier |
protected Image.Flag |
flag |
protected int |
height |
protected Pipeline |
pipeline |
protected int |
width |
| Constructor and Description |
|---|
BaseBuilder() |
| Modifier and Type | Method and Description |
|---|---|
T |
addTransform(Transform transform)
|
protected void |
configPostProcess(java.util.Map<java.lang.String,?> arguments) |
protected void |
configPreProcess(java.util.Map<java.lang.String,?> arguments) |
T |
optBatchifier(Batchifier batchifier)
Sets the
Batchifier for the Translator. |
T |
optFlag(Image.Flag flag)
Sets the optional
Image.Flag (default is Image.Flag#COLOR). |
protected abstract T |
self() |
T |
setPipeline(Pipeline pipeline)
Sets the
Pipeline to use for pre-processing the image. |
protected void |
validate() |
protected int width
protected int height
protected Image.Flag flag
protected Pipeline pipeline
protected Batchifier batchifier
public T optFlag(Image.Flag flag)
Image.Flag (default is Image.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 pipelinepublic T addTransform(Transform transform)
transform - the Transform to be addedpublic T optBatchifier(Batchifier batchifier)
Batchifier for the Translator.batchifier - the Batchifier to be setprotected abstract T self()
protected void validate()
protected void configPreProcess(java.util.Map<java.lang.String,?> arguments)
protected void configPostProcess(java.util.Map<java.lang.String,?> arguments)