public static class TLspImageProcessingStyle.Builder<B extends TLspImageProcessingStyle.Builder<B>> extends ALspStyle.Builder<B>
ALcdImageOperatorChain chain = ALcdImageOperatorChain.newBuilder() .operator(new TLcdConvolveOp()) .parameter(TLcdConvolveOp.KERNEL_HEIGHT,3) .parameter(TLcdConvolveOp.KERNEL_WIDTH,3) .parameter(TLcdConvolveOp.KERNEL,new float[]{-1f,-1f,-1f,-1f,9f,-1f,-1f,-1f,-1f}) .build(); TLspImageProcessingStyle style = TLspImageProcessingStyle.newBuilder().operatorChain(chain).build();
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aStyle)
Sets all parameters on the builder based on the given style.
|
TLspImageProcessingStyle |
build()
Builds the style with the set parameters.
|
B |
operatorChain(ALcdImageOperatorChain aChain)
Sets the image operator chain.
|
equals, hashCode
public B operatorChain(ALcdImageOperatorChain aChain)
aChain
- the operator chainpublic B all(ALspStyle aStyle)
ALspStyle.Builder
all
in class ALspStyle.Builder<B extends TLspImageProcessingStyle.Builder<B>>
aStyle
- the style to copythis
public TLspImageProcessingStyle build()
ALspStyle.Builder
build
in class ALspStyle.Builder<B extends TLspImageProcessingStyle.Builder<B>>