public static class ALcdImageOperatorChain.Builder extends Object
ALcdImageOperatorChain
for a code snippet
illustrating the use of this builder.public ALcdImageOperatorChain.Builder operator(ALcdImageOperator aOperator, ILcdDataObject aParameters)
aOperator
- the operator to be appendedaParameters
- the parameters of the operatorpublic ALcdImageOperatorChain.Builder bandMerge(ALcdBasicImage aSecondImage)
aSecondImage
- the image to be band-merged with the operator chain's inputpublic ALcdImageOperatorChain.Builder bandSelect(int[] aBands)
aBands
- band indices to be selected from the operator chain's inputpublic ALcdImageOperatorChain.Builder binaryOp(ALcdBasicImage aImage2, TLcdBinaryOp.Operation aOperation)
aImage2
- the image to be combined with the operator chain's inputaOperation
- the operation to be used for combining the imagespublic ALcdImageOperatorChain.Builder add(ALcdBasicImage aImage2)
aImage2
- the image to be combined with the operator chain's inputpublic ALcdImageOperatorChain.Builder subtract(ALcdBasicImage aImage2)
aImage2
- the image to be combined with the operator chain's inputpublic ALcdImageOperatorChain.Builder multiply(ALcdBasicImage aImage2)
aImage2
- the image to be combined with the operator chain's inputpublic ALcdImageOperatorChain.Builder divide(ALcdBasicImage aImage2)
aImage2
- the image to be combined with the operator chain's inputpublic ALcdImageOperatorChain.Builder min(ALcdBasicImage aImage2)
aImage2
- the image to be combined with the operator chain's inputpublic ALcdImageOperatorChain.Builder max(ALcdBasicImage aImage2)
aImage2
- the image to be combined with the operator chain's inputpublic ALcdImageOperatorChain.Builder colorConvert(ColorModel aColorModel)
aColorModel
- color model to which to convert the operator chain's inputpublic ALcdImageOperatorChain.Builder colorLookup(ALcdColorLookupTable aTable)
aTable
- the color lookup table to be applied to the operator chain's inputpublic ALcdImageOperatorChain.Builder composite(ALcdBasicImage aSecondImage)
aSecondImage
- the image to be composited with the operator chain's inputpublic ALcdImageOperatorChain.Builder convolve(double[] aKernel, int aKernelWidth, int aKernelHeight)
aKernel
- the convolution kernel, in row-major orderaKernelWidth
- the width of the kernelaKernelHeight
- the height of the kernelpublic ALcdImageOperatorChain.Builder median(int aWidth, int aHeight)
aWidth
- the width of the median filteraHeight
- the height of the median filterpublic ALcdImageOperatorChain.Builder crop(int aCropX, int aCropY, int aCropWidth, int aCropHeight)
aCropX
- x coordinate of the cropped regionaCropY
- y coordinate of the cropped regionaCropWidth
- width of the cropped regionaCropHeight
- height of the cropped regionpublic ALcdImageOperatorChain.Builder curves(ILcdPoint[][] aCurves, TLcdCurvesOp.CurveType aCurveType)
aCurves
- the control points for each defined curveaCurveType
- the type of curve used to interpolate between the control pointspublic ALcdImageOperatorChain.Builder expand(int aExpandX, int aExpandY, int aExpandWidth, int aExpandHeight)
aExpandX
- x coordinate of the expanded regionaExpandY
- y coordinate of the expanded regionaExpandWidth
- width of the expanded regionaExpandHeight
- height of the expanded regionpublic ALcdImageOperatorChain.Builder histogram(int aBinCount)
aBinCount
- the number of bins of the resulting histogrampublic ALcdImageOperatorChain.Builder indexLookup(TLcdLookupTable aLUT)
aLUT
- the lookup table to be applied to the operator chain's inputpublic ALcdImageOperatorChain.Builder indexLookup(TLcdLookupTable aLUT, double[] aNaNColor)
aLUT
- the lookup table to be applied to the operator chain's inputaNaNColor
- the color to be used for input pixels which contain the "no data" valuepublic ALcdImageOperatorChain.Builder pixelRescale(double[] aScales, double[] aOffsets)
aScales
- the scales to applied to each of the image's color bandsaOffsets
- the offsets to be applied to each of the image's color bandspublic ALcdImageOperatorChain.Builder pixelTransform(double[] aMatrix, double[] aOffsets)
aMatrix
- the matrix to be applied to each of the images pixelsaOffsets
- the offsets to be addedpublic ALcdImageOperatorChain.Builder resize(double aScaleX, double aScaleY)
aScaleX
- the scale factor in the x directionaScaleY
- the scale factor in the y directionpublic ALcdImageOperatorChain.Builder semantics(ALcdBandSemantics[] aBandSemantics)
aBandSemantics
- semantics to be assigned to the operator chain's inputpublic ALcdImageOperatorChain.Builder semantics(ALcdBandSemantics[] aBandSemantics, double[] aScales, double[] aOffsets)
aBandSemantics
- semantics to be assigned to the operator chain's inputaScales
- scale factors to be applied to each of the input image's bandsaOffsets
- offsets to be applied to each of the input image's bandspublic ALcdImageOperatorChain.Builder semantics(List<ALcdBandSemantics> aBandSemantics)
aBandSemantics
- semantics to be assigned to the operator chain's inputpublic ALcdImageOperatorChain.Builder semantics(List<ALcdBandSemantics> aBandSemantics, double[] aScales, double[] aOffsets)
aBandSemantics
- semantics to be assigned to the operator chain's inputaScales
- scale factors to be applied to each of the input image's bandsaOffsets
- offsets to be applied to each of the input image's bandspublic ALcdImageOperatorChain.Builder swipe(ALcdBasicImage aSecondImage, int aSwipeX)
aSecondImage
- the second image to be processedaSwipeX
- x coordinate of the swipe linepublic ALcdImageOperatorChain build()