|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.core.datatypes.MTBStructuringElement
@ALDMetaInfo(export=ALLOWED) @ALDParametrizedClass public class MTBStructuringElement
class representing a 2D flat (, i.e. without different gray values) structuring element
for the use with morphological operations
values are stored in a recatangular 2D array (rows: 1st dimension, columns: 2nd dimension)
whereas onValue represents set locations and 0 represents unset locations
Constructor Summary | |
---|---|
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 |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MTBStructuringElement(int[][] mask, int centerX, int centerY)
mask
- centerX
- centerY
- public MTBStructuringElement(int[][] mask)
mask
- public MTBStructuringElement()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |