Class TwoByteCropFunction<T,R>
- java.lang.Object
-
- science.aist.imaging.core.imageprocessing.transformation.TwoByteCropFunction<T,R>
-
- All Implemented Interfaces:
Function<ImageWrapper<T>,ImageWrapper<R>>
,ImageFunction<T,R>
public class TwoByteCropFunction<T,R> extends Object implements ImageFunction<T,R>
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Constructor Summary
Constructors Constructor Description TwoByteCropFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageWrapper<R>
apply(ImageWrapper<T> imageWrapper)
void
setFrom(double x, double y)
void
setTo(double x, double y)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.imaging.api.ImageFunction
andThen, andThenCloseInput, andThenConsumeInput
-
-
-
-
Method Detail
-
setFrom
public void setFrom(double x, double y)
- Parameters:
x
- coordinate of start point for croppingy
- coordinate of start point for cropping
-
setTo
public void setTo(double x, double y)
- Parameters:
x
- coordinate of end point for croppingy
- coordinate of end point for cropping
-
apply
public ImageWrapper<R> apply(ImageWrapper<T> imageWrapper)
-
-