public class MorphApp extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
MorphApp.TophatType |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_HEIGHT |
static int |
DEFAULT_WIDTH |
static int |
L_TOPHAT_BLACK |
static int |
L_TOPHAT_WHITE |
Constructor and Description |
---|
MorphApp() |
Modifier and Type | Method and Description |
---|---|
static Pix |
pixFastTophat(Pix pixs,
int xsize,
int ysize,
int type)
Performs a tophat-like operation.
|
static Pix |
pixFastTophatBlack(Pix pixs)
Performs a tophat-like operation emphasizing small dark regions using
default values.
|
static Pix |
pixFastTophatWhite(Pix pixs)
Performs a tophat-like operation emphasizing small bright regions using
default values.
|
static Pix |
pixTophat(Pix pixs,
int hsize,
int vsize,
int type)
Performs a tophat transform.
|
public static final int L_TOPHAT_WHITE
public static final int L_TOPHAT_BLACK
public static final int DEFAULT_WIDTH
public static final int DEFAULT_HEIGHT
public static Pix pixTophat(Pix pixs, int hsize, int vsize, int type)
Notes:
pixs
- Source pix (8bpp)hsize
- (of Sel; must be odd; origin implicitly in center)vsize
- (ditto)type
- L_TOPHAT_WHITE: image - opening or L_TOPHAT_BLACK: closing - imagepublic static Pix pixFastTophatBlack(Pix pixs)
pixs
- Source pix (8bpp)pixFastTophat(Pix, int, int, int)
public static Pix pixFastTophatWhite(Pix pixs)
pixs
- Source pix (8bpp)pixFastTophat(Pix, int, int, int)
public static Pix pixFastTophat(Pix pixs, int xsize, int ysize, int type)
Notes:
pixs
- Source pix (8bpp)xsize
- width of max/min op, smoothing; any integer >= 1ysize
- height of max/min op, smoothing; any integer >= 1type
- L_TOPHAT_WHITE: image - min, or L_TOPHAT_BLACK: max - image