public abstract class ImageAccessor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ImageAccessor.Byte |
static class |
ImageAccessor.Float |
static class |
ImageAccessor.Rgb |
static class |
ImageAccessor.Scalar |
static class |
ImageAccessor.Short |
Modifier and Type | Field and Description |
---|---|
protected int |
height |
protected PixelIndexer |
indexer |
protected InterpolationMethod |
interpolationMethod |
protected OutOfBoundsStrategy |
outOfBoundsStrategy |
protected int |
width |
Modifier and Type | Method and Description |
---|---|
static ImageAccessor |
create(ij.process.ImageProcessor ip)
Creates a new
ImageAccessor instance for the given image,
using the default out-of-bounds strategy and interpolation method. |
static ImageAccessor |
create(ij.process.ImageProcessor ip,
OutOfBoundsStrategy obs,
InterpolationMethod ipm)
Creates a new
ImageAccessor instance for the given image,
using the specified out-of-bounds strategy and interpolation method. |
InterpolationMethod |
getInterpolationMethod() |
OutOfBoundsStrategy |
getOutOfBoundsStrategy() |
abstract float[] |
getPix(double x,
double y) |
abstract float[] |
getPix(int u,
int v) |
abstract ij.process.ImageProcessor |
getProcessor() |
abstract void |
setPix(int u,
int v,
float[] val) |
protected final int width
protected final int height
protected final PixelIndexer indexer
protected final OutOfBoundsStrategy outOfBoundsStrategy
protected final InterpolationMethod interpolationMethod
public static ImageAccessor create(ij.process.ImageProcessor ip)
ImageAccessor
instance for the given image,
using the default out-of-bounds strategy and interpolation method.ip
- the source imageImageAccessor
instancepublic static ImageAccessor create(ij.process.ImageProcessor ip, OutOfBoundsStrategy obs, InterpolationMethod ipm)
ImageAccessor
instance for the given image,
using the specified out-of-bounds strategy and interpolation method.ip
- the source imageobs
- the out-of-bounds strategy (use null
for default settings)ipm
- the interpolation method (use null
for default settings)ImageAccessor
instancepublic abstract ij.process.ImageProcessor getProcessor()
public OutOfBoundsStrategy getOutOfBoundsStrategy()
public InterpolationMethod getInterpolationMethod()
public abstract float[] getPix(int u, int v)
public abstract float[] getPix(double x, double y)
public abstract void setPix(int u, int v, float[] val)
Copyright © 2006–2017, Wilhelm Burger, Mark J. Burge (BSD 2-Clause Simplified License)