Package | Description |
---|---|
org.openimaj.image.processing.resize | |
org.openimaj.image.processing.resize.filters |
Modifier and Type | Field and Description |
---|---|
static ResizeFilterFunction |
FixedResizeProcessor.DEFAULT_FILTER
The default
TriangleFilter (bilinear-interpolation filter) used
by instances of ResizeProcessor , unless otherwise specified. |
static ResizeFilterFunction |
ResizeProcessor.DEFAULT_FILTER
The default
TriangleFilter (bilinear-interpolation filter) used
by instances of ResizeProcessor , unless otherwise specified. |
Modifier and Type | Method and Description |
---|---|
static FImage |
ResizeProcessor.resample(FImage in,
int newX,
int newY,
boolean aspect,
ResizeFilterFunction filterf)
Resamples the given image returning it as a reference.
|
static FImage |
ResizeProcessor.resizeMax(FImage image,
int maxDim,
ResizeFilterFunction filterf)
Resize an image such that its biggest size is at most as big as the given
size.
|
static FImage |
ResizeProcessor.resizeMaxArea(FImage image,
int maxArea,
ResizeFilterFunction filterf)
Resize an image such that its area size is at most as big as the given
area.
|
void |
ResizeProcessor.setFilterFunction(ResizeFilterFunction filterFunction)
Set the filter function used by the filter
|
static FImage |
ResizeProcessor.zoom(FImage in,
FImage dst,
ResizeFilterFunction filterf)
Resizes bitmaps while resampling them.
|
static FImage |
ResizeProcessor.zoom(FImage in,
Rectangle inRect,
FImage dst,
Rectangle dstRect,
ResizeFilterFunction filterf)
Draws one portion of an image into another, resampling as necessary.
|
static FImage |
ResizeProcessor.zoomInplace(FImage in,
int newX,
int newY,
ResizeFilterFunction filterf)
Resizes an image.
|
Constructor and Description |
---|
FixedResizeProcessor(float srcX,
float srcY,
float newX,
float newY,
ResizeFilterFunction ff)
Construct a fixed resize processor that will rescale the image to the given
width and height with the given filter function.
|
ResizeProcessor(float newX,
float newY,
ResizeFilterFunction ff)
Construct a resize processor that will rescale the image to the given
width and height with the given filter function.
|
ResizeProcessor(float amount,
ResizeFilterFunction ff)
Constructor a resize processor that will rescale the image by a given
scale factor using the given filter function.
|
ResizeProcessor(int newX,
int newY,
boolean aspectRatio,
ResizeFilterFunction filterf)
Construct a resize processor that will rescale the image to the given
width and height (optionally maintaining aspect ratio) with the given
filter function.
|
Modifier and Type | Class and Description |
---|---|
class |
BellFilter
Bell (quadratic) filter for the resample function.
|
class |
BlackmanFilter
Blackman window function interpolation filter for the resample function
|
class |
BoxFilter
Box filter for the resampling function
|
class |
BSplineFilter
B-Spline (cubic) filter for the resample function.
|
class |
CatmullRomFilter
Catmull-Rom (Catrom) interpolation filter for the resample function
|
class |
HammingFilter
Hamming window function interpolation filter for the resample function
|
class |
HanningFilter
Hanning window function interpolation filter for the resample function
|
class |
HermiteFilter
Basic filtering for the resampling function
|
class |
Lanczos3Filter
A Lanczos3 filter for the resample function.
|
class |
MitchellFilter
Mitchell filter for the resample function.
|
class |
PointFilter
Point filter for the resampling function
|
class |
TriangleFilter
A triangle filter for the resample function
|
Modifier and Type | Field and Description |
---|---|
static ResizeFilterFunction |
PointFilter.INSTANCE
The singleton instance of the filter
|
static ResizeFilterFunction |
TriangleFilter.INSTANCE
The singleton instance of the filter
|
static ResizeFilterFunction |
HermiteFilter.INSTANCE
The singleton instance of the filter
|
static ResizeFilterFunction |
BSplineFilter.INSTANCE
The singleton instance of the filter
|
static ResizeFilterFunction |
BoxFilter.INSTANCE
The singleton instance of the filter
|
static ResizeFilterFunction |
BellFilter.INSTANCE
The singleton instance of the filter
|
static ResizeFilterFunction |
CatmullRomFilter.INSTANCE
The singleton instance of the filter
|
static ResizeFilterFunction |
MitchellFilter.INSTANCE
The singleton instance of the filter
|
static ResizeFilterFunction |
Lanczos3Filter.INSTANCE
The singleton instance of the filter
|