@ALDParametrizedClass public class MTBStructuringElement extends Object
Modifier and Type | Field and Description |
---|---|
private int |
centerX |
private int |
centerY |
private int[][] |
mask |
private static int |
onValue |
Constructor and Description |
---|
MTBStructuringElement()
create quadratic 3x3 structuring element
|
MTBStructuringElement(int[][] mask)
creates structuring element from given 2D-array, center is assumed to be at the center of
the array
|
MTBStructuringElement(int[][] mask,
int centerX,
int centerY)
creates structuring element from given 2D-array
|
Modifier and Type | Method and Description |
---|---|
static MTBStructuringElement |
createCircularElement(int size) |
static MTBStructuringElement |
createHorizontalLineElement(int length) |
static MTBStructuringElement |
createQuadraticElement(int size) |
static MTBStructuringElement |
createRectangularElement(int sizeX,
int sizeY) |
static MTBStructuringElement |
createVerticalLineElement(int length) |
int |
getCenterX() |
int |
getCenterY() |
int |
getSizeX() |
int |
getSizeY() |
int |
getValue(int x,
int y) |
MTBStructuringElement |
invert()
inverts the values of the structuring element
|
MTBStructuringElement |
reflect()
reflects the structuring element around its center
|
@ALDClassParameter(label="mask") private int[][] mask
@ALDClassParameter(label="centerX") private int centerX
@ALDClassParameter(label="centerY") private int centerY
private static final int onValue
public MTBStructuringElement(int[][] mask, int centerX, int centerY)
mask
- centerX
- centerY
- public MTBStructuringElement(int[][] mask)
mask
- public MTBStructuringElement()
public int getValue(int x, int y)
x
- y
- public int getSizeX()
public int getSizeY()
public int getCenterX()
public int getCenterY()
public static MTBStructuringElement createQuadraticElement(int size)
size
- public static MTBStructuringElement createRectangularElement(int sizeX, int sizeY)
sizeX
- sizeY
- public static MTBStructuringElement createCircularElement(int size)
size
- public static MTBStructuringElement createHorizontalLineElement(int length)
length
- value
- public static MTBStructuringElement createVerticalLineElement(int length)
length
- public MTBStructuringElement invert()
public MTBStructuringElement reflect()
Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.