public class FSobelMagnitude extends Object implements SinglebandKernelProcessor<Float,FImage>
SinglebandKernelProcessor.Processable<T,S extends Image<T,S>,I extends Image<?,I>>| Modifier and Type | Field and Description |
|---|---|
static FImage |
KERNEL_X
The 3x3 derivative of a gaussian of sigma 1 in the x direction
|
static FImage |
KERNEL_Y
The 3x3 derivative of a gaussian of sigma 1 in the x direction
|
| Constructor and Description |
|---|
FSobelMagnitude() |
| Modifier and Type | Method and Description |
|---|---|
int |
getKernelHeight()
Get the height of the kernel required by this processor.
|
int |
getKernelWidth()
Get the width of the kernel required by this processor.
|
Float |
processKernel(FImage patch)
Process the patch with this kernel processor and return a value
that will be used to build the convolved image.
|
public static final FImage KERNEL_X
public FSobelMagnitude()
public int getKernelHeight()
KernelProcessorgetKernelHeight in interface KernelProcessor<Float,FImage>public int getKernelWidth()
KernelProcessorgetKernelWidth in interface KernelProcessor<Float,FImage>public Float processKernel(FImage patch)
KernelProcessorprocessKernel in interface KernelProcessor<Float,FImage>patch - The patch of pixels from the image to process