public class SobelOperation extends ConvolutionOperation
Modifier and Type | Field and Description |
---|---|
protected double[][] |
Gx |
protected double[][] |
Gy |
protected ConvolutionOperation |
horizontal |
protected ConvolutionOperation |
vertical |
kernel
Constructor and Description |
---|
SobelOperation()
Creates a new SobelOperation.
|
Modifier and Type | Method and Description |
---|---|
double[][] |
getGx()
Horizontal gradient kernel
|
double[][] |
getGy()
Vertical gradient kernel
|
ConvolutionOperation |
getHorizontal()
Horizontal ConvolutionOperation - applies the Gx kernel.
|
ConvolutionOperation |
getVertical()
Vertical ConvolutionOperation - applies the Gy kernel.
|
Dataset |
run(Dataset input)
Runs the Sobel operator on the input.
|
getHeight, getKernel, getObjectMap, getSerializationVersion, getVersion, getWidth, initCurrentVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
init, initPreviousVersion, initUnknownVersion, load, read, save, write
protected double[][] Gx
protected double[][] Gy
protected ConvolutionOperation horizontal
protected ConvolutionOperation vertical
public Dataset run(Dataset input)
run
in interface DatasetOperation
run
in class ConvolutionOperation
input
- Dataset to convolvepublic double[][] getGx()
public double[][] getGy()
public ConvolutionOperation getHorizontal()
public ConvolutionOperation getVertical()