public class TLcdExpandOp extends ALcdImageOperator
// Using the static method:
ALcdBasicImage inputImage = ...;
ALcdImage outputImage = TLcdExpandOp.expand(inputImage, 0, 0, 1350, 675);
// Using a data object:
ALcdBasicImage inputImage = ...;
TLcdExpandOp op = new TLcdExpandOp();
ILcdDataObject params = op.getParameterDataType().newInstance();
params.setValue(TLcdExpandOp.INPUT_IMAGE, inputImage);
params.setValue(TLcdExpandOp.EXPAND_X, 0);
params.setValue(TLcdExpandOp.EXPAND_Y, 0);
params.setValue(TLcdExpandOp.EXPAND_WIDTH, 1350);
params.setValue(TLcdExpandOp.EXPAND_HEIGHT, 675);
ALcdImage outputImage = op.apply(params);
ALcdImageOperator.ImageOperatorTypeBuilder
Modifier and Type | Field and Description |
---|---|
static TLcdDataType |
EXPAND_FILTER_TYPE
Input data type of the operator.
|
static TLcdDataProperty |
EXPAND_HEIGHT
Height of the expanded region.
|
static TLcdDataProperty |
EXPAND_WIDTH
Width of the expanded region.
|
static TLcdDataProperty |
EXPAND_X
X coordinate of the expanded region.
|
static TLcdDataProperty |
EXPAND_Y
Y coordinate of the expanded region.
|
static TLcdDataProperty |
INPUT_IMAGE
The input image.
|
static String |
NAME
Name of the operator.
|
INPUT_IMAGE_NAME
Constructor and Description |
---|
TLcdExpandOp()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ALcdImage |
apply(ILcdDataObject aParameters)
Applies this operator to the given input parameters.
|
static ALcdImage |
expand(ALcdImage aInputImage,
int aExpandX,
int aExpandY,
int aExpandWidth,
int aExpandHeight)
Creates a expand operator for a given input image
|
createTypeBuilder, createTypeBuilder, equals, getParameterDataType, hashCode, toString
public static final String NAME
public static final TLcdDataProperty INPUT_IMAGE
public static final TLcdDataProperty EXPAND_X
public static final TLcdDataProperty EXPAND_Y
public static final TLcdDataProperty EXPAND_WIDTH
public static final TLcdDataProperty EXPAND_HEIGHT
public static final TLcdDataType EXPAND_FILTER_TYPE
public ALcdImage apply(ILcdDataObject aParameters)
ALcdImageOperator
apply
in class ALcdImageOperator
aParameters
- the parameters for the operatorpublic static ALcdImage expand(ALcdImage aInputImage, int aExpandX, int aExpandY, int aExpandWidth, int aExpandHeight)
aInputImage
- the image to be expandedaExpandX
- x coordinate of the expanded regionaExpandY
- y coordinate of the expanded regionaExpandWidth
- width of the expanded regionaExpandHeight
- height of the expanded region