public class DifferenceOfGaussiansOperation extends java.lang.Object implements DatasetOperation
Modifier and Type | Field and Description |
---|---|
(package private) BlurOperation |
firstBlur
First blur operation
|
(package private) BlurOperation |
secondBlur
Second blur operation
|
Constructor and Description |
---|
DifferenceOfGaussiansOperation()
Creates a new DOGOperation with blur radii of 1 and 2.
|
DifferenceOfGaussiansOperation(BlurOperation first,
BlurOperation second)
Creates a new DOGOperation with the specified blur operations.
|
DifferenceOfGaussiansOperation(int firstRadius,
int secondRadius)
Creates a new DOGOperation with two GaussianBlurOperations.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getObjectMap()
Creates a map of the important fields for the instance, suitable for serialization.
|
long |
getSerializationVersion()
Returns the current version of the serialization format.
|
int |
getVersion()
Returns the current class version.
|
void |
initCurrentVersion(java.util.Map<java.lang.String,java.lang.Object> objectMap)
Initializes an instance with a current-version object graph.
|
Dataset |
run(Dataset input)
Performs both blur operations on an input, and returns a new Dataset consisting of the difference between the
two.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, initPreviousVersion, initUnknownVersion, load, read, save, write
BlurOperation firstBlur
BlurOperation secondBlur
public DifferenceOfGaussiansOperation(BlurOperation first, BlurOperation second)
first
- first blur operation.second
- second blur operation.public DifferenceOfGaussiansOperation(int firstRadius, int secondRadius)
firstRadius
- radius of first GaussianOperationsecondRadius
- radius of second GaussianOperationpublic DifferenceOfGaussiansOperation()
public Dataset run(Dataset input)
run
in interface DatasetOperation
input
- Dataset on which to operatepublic long getSerializationVersion()
ObjectMap
getSerializationVersion
in interface ObjectMap
public int getVersion()
ObjectMap
getVersion
in interface ObjectMap
public java.util.Map<java.lang.String,java.lang.Object> getObjectMap()
ObjectMap
getObjectMap
in interface ObjectMap
public void initCurrentVersion(java.util.Map<java.lang.String,java.lang.Object> objectMap)
ObjectMap
initCurrentVersion
in interface ObjectMap
objectMap
- object graph for initialization