public class FilterSupport extends Object
Modifier and Type | Field and Description |
---|---|
static Set<Pixel> |
BLOCK_3x3
Offsets for using a 3x3 blocked shaped mask to select pixels for
computing median.
|
static Set<Pixel> |
CROSS_3x3
Offsets for using a 3x3 cross shaped mask to select pixels for computing
median.
|
Constructor and Description |
---|
FilterSupport() |
Modifier and Type | Method and Description |
---|---|
static Set<Pixel> |
createBlockSupport(int width,
int height)
Create a a rectangular support.
|
static int |
getSupportHeight(Set<Pixel> support)
Get the height of the support region
|
static int |
getSupportWidth(Set<Pixel> support)
Get the width of the support region
|
static boolean |
isBlockSupport(Set<Pixel> support)
Test whether the given support is a centred block
|
public static final Set<Pixel> CROSS_3x3
public FilterSupport()
public static final Set<Pixel> createBlockSupport(int width, int height)
width
- the width of the supportheight
- the height of the supportpublic static final boolean isBlockSupport(Set<Pixel> support)
support
- the supportpublic static final int getSupportWidth(Set<Pixel> support)
support
- the regionpublic static final int getSupportHeight(Set<Pixel> support)
support
- the region