public class TLcdSwipeOp extends ALcdImageOperator
"no data" value
, the
result for the current pixel is also "no data".
// Using the static method:
ALcdBasicImage inputImage = ...;
ALcdBasicImage secondImage = ...;
ALcdBasicImage outputImage = TLcdSwipeOp.swipe(inputImage, secondImage, 350);
// Using a data object:
ALcdBasicImage inputImage = ...;
ALcdBasicImage secondImage = ...;
TLcdSwipeOp op = new TLcdSwipeOp();
ILcdDataObject params = op.getParameterDataType().newInstance();
params.setValue(TLcdSwipeOp.INPUT_IMAGE, inputImage);
params.setValue(TLcdSwipeOp.SECOND_IMAGE, secondImage);
params.setValue(TLcdSwipeOp.SWIPE_DISTANCE, 350);
ALcdBasicImage outputImage = op.apply(params);
![]() |
|
![]() |
ALcdImageOperator.ImageOperatorTypeBuilder
Modifier and Type | Field and Description |
---|---|
static TLcdDataProperty |
INPUT_IMAGE
The input image.
|
static String |
NAME
Name of the operator.
|
static TLcdDataProperty |
SECOND_IMAGE
The image to overlay on top of the input image.
|
static TLcdDataProperty |
SWIPE_DISTANCE
Distance (in pixels) at which to create a swipe line.
|
static TLcdDataType |
SWIPE_FILTER_TYPE
Input data type of the operator.
|
INPUT_IMAGE_NAME
Constructor and Description |
---|
TLcdSwipeOp()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
ALcdImage |
apply(ILcdDataObject aParameters)
Applies this operator to the given input parameters.
|
static ALcdBasicImage |
swipe(ALcdBasicImage aInputImage,
ALcdBasicImage aSecondImage,
int aSwipeDistance)
Creates a swipe 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 SECOND_IMAGE
public static final TLcdDataProperty SWIPE_DISTANCE
public static final TLcdDataType SWIPE_FILTER_TYPE
public ALcdImage apply(ILcdDataObject aParameters)
ALcdImageOperator
apply
in class ALcdImageOperator
aParameters
- the parameters for the operatorpublic static ALcdBasicImage swipe(ALcdBasicImage aInputImage, ALcdBasicImage aSecondImage, int aSwipeDistance)
aInputImage
- the first image to be processedaSecondImage
- the second image to be processedaSwipeDistance
- x coordinate of the swipe line