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, initCurrentVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, initPreviousVersion, initUnknownVersion, load, read, save, writeprotected double[][] Gx
protected double[][] Gy
protected ConvolutionOperation horizontal
protected ConvolutionOperation vertical
public Dataset run(Dataset input)
run in interface DatasetOperationrun in class ConvolutionOperationinput - Dataset to convolvepublic double[][] getGx()
public double[][] getGy()
public ConvolutionOperation getHorizontal()
public ConvolutionOperation getVertical()