public static class SobelFilter.MagnitudeFilter extends java.lang.Object implements SpatialFilter
SpatialFilter.SpecifierPanel
N_DOTS
Modifier and Type | Method and Description |
---|---|
WritableImage |
filter(ReadableImage image)
Filter a ReadableImage, returning a new image which is a filtered version of the
supplied image.
|
WritableImage |
filter(ReadableImage image,
MonitorWorker worker,
boolean verbose)
Filter a ReadableImage, returning a new image which is a filtered version of the
supplied image.
|
void |
filterInPlace(java.lang.Object pixels,
PixelDataType dataType,
int nCols,
int nRows,
int nSlices)
Filter an array of pixel values "in place".
|
void |
filterInPlace(java.lang.Object pixels,
PixelDataType dataType,
int nCols,
int nRows,
int nSlices,
MonitorWorker worker,
boolean verbose)
Filter an array of pixel values "in place".
|
void |
filterInPlace(WritableImage image)
Filter a WritableImage "in place".
|
void |
filterInPlace(WritableImage image,
MonitorWorker worker,
boolean verbose)
Filter a WritableImage "in place".
|
static SobelFilter.MagnitudeFilter |
new2DInstance(float pixelXSize,
float pixelYSize)
Creates a new 2-D SobelFilter.MagnitudeFilter suitable for filtering
images with the given pixel sizes, to obtain the magnitude of the intensity gradient.
|
static SobelFilter.MagnitudeFilter |
new2DInstance(ReadableImage image)
Creates a new 2-D SobelFilter.MagnitudeFilter suitable for filtering the
supplied image to obtain the magnitude of the intensity gradient.
|
static SobelFilter.MagnitudeFilter |
new3DInstance(float pixelXSize,
float pixelYSize,
float pixelZSize)
Creates a new 3-D SobelFilter.MagnitudeFilter suitable for filtering
images with the given pixel sizes, to obtain the magnitude of the intensity gradient.
|
static SobelFilter.MagnitudeFilter |
new3DInstance(ReadableImage image)
Creates a new 3-D SobelFilter.MagnitudeFilter suitable for filtering the
supplied image to obtain the magnitude of the intensity gradient.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
removeNaNs, removeNaNs
public static SobelFilter.MagnitudeFilter new2DInstance(ReadableImage image) throws InvalidArgumentException, InvalidImageException
image
- the image to which this filter is designed to apply. The image pixel
size is used to determine the kernel weights.InvalidArgumentException
- if the filter cannot be created from the arguments.InvalidImageException
- if the image cannot be used to generate a filter.public static SobelFilter.MagnitudeFilter new2DInstance(float pixelXSize, float pixelYSize) throws InvalidArgumentException
pixelXSize
- the pixel width.pixelYSize
- the pixel height.InvalidArgumentException
- if the filter cannot be created from the arguments.public static SobelFilter.MagnitudeFilter new3DInstance(ReadableImage image) throws InvalidArgumentException, InvalidImageException
image
- the image to which this filter is designed to apply. The image pixel
size is used to determine the kernel weights.InvalidArgumentException
- if the filter cannot be created from the arguments.InvalidImageException
- if the image cannot be used to generate a filter.public static SobelFilter.MagnitudeFilter new3DInstance(float pixelXSize, float pixelYSize, float pixelZSize) throws InvalidArgumentException
pixelXSize
- the pixel width.pixelYSize
- the pixel height.pixelZSize
- the pixel height.InvalidArgumentException
- if the filter cannot be created from the arguments.public WritableImage filter(ReadableImage image) throws InvalidImageException, java.io.IOException
SpatialFilter
filter
in interface SpatialFilter
image
- the image to be filtered.InvalidImageException
- if the supplied image cannot be filtered with this filter.java.io.IOException
- if an I/O error occurs.public WritableImage filter(ReadableImage image, MonitorWorker worker, boolean verbose) throws InvalidImageException, java.io.IOException, CancelledException
SpatialFilter
filter
in interface SpatialFilter
image
- the image to be filtered.worker
- the MonitorWorker that may be used to cancel the filter operation.verbose
- whether verbose reporting to System.out is turned on.InvalidImageException
- if the supplied image cannot be filtered with this filter.java.io.IOException
- if an I/O error occurs.CancelledException
- if the filter operation is cancelled by the user or
programmatically.public void filterInPlace(WritableImage image) throws InvalidImageException, java.io.IOException
SpatialFilter
filterInPlace
in interface SpatialFilter
image
- the image to be filtered.InvalidImageException
- if the supplied image cannot be filtered with this filter.java.io.IOException
- if an I/O error occurs.public void filterInPlace(WritableImage image, MonitorWorker worker, boolean verbose) throws InvalidImageException, java.io.IOException, CancelledException
SpatialFilter
filterInPlace
in interface SpatialFilter
image
- the image to be filtered.worker
- the MonitorWorker that may be used to cancel the filter operation.verbose
- whether verbose reporting to System.out is turned on.InvalidImageException
- if the supplied image cannot be filtered with this filter.java.io.IOException
- if an I/O error occurs.CancelledException
- if the filter operation is cancelled by the user or
programmatically.public void filterInPlace(java.lang.Object pixels, PixelDataType dataType, int nCols, int nRows, int nSlices)
SpatialFilter
filterInPlace
in interface SpatialFilter
pixels
- the array of image pixel values.dataType
- the PixelDataType of the pixels.nCols
- the number of image columns.nRows
- the number of image rows.nSlices
- the number of image slices.public void filterInPlace(java.lang.Object pixels, PixelDataType dataType, int nCols, int nRows, int nSlices, MonitorWorker worker, boolean verbose) throws CancelledException
SpatialFilter
filterInPlace
in interface SpatialFilter
pixels
- the array of image pixel values.dataType
- the PixelDataType of the pixels.nCols
- the number of image columns.nRows
- the number of image rows.nSlices
- the number of image slices.worker
- the MonitorWorker that may be used to cancel the filter operation.verbose
- whether verbose reporting to System.out is turned on.CancelledException
- if the filter operation is cancelled by the user or
programmatically.Copyright 2017 Xinapse Systems Limited. All Rights Reserved.