Package inra.ijpb.morphology.directional
Class OrientedLineStrelFactory
java.lang.Object
inra.ijpb.morphology.directional.OrientedLineStrelFactory
- All Implemented Interfaces:
OrientedStrelFactory
public class OrientedLineStrelFactory extends java.lang.Object implements OrientedStrelFactory
Factory for oriented linear structuring elements.
- Author:
- David Legland
-
Constructor Summary
Constructors Constructor Description OrientedLineStrelFactory(double length)
Constructs a new oriented line factory, that will generate lines with approximately the given length. -
Method Summary
Modifier and Type Method Description OrientedLineStrel
createStrel(double theta)
Creates a new instance of OrientedLineStrel with the length stored internally and the orientation given as argument.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
OrientedLineStrelFactory
public OrientedLineStrelFactory(double length)Constructs a new oriented line factory, that will generate lines with approximately the given length.- Parameters:
length
- the length of the lines to be generated
-
-
Method Details
-
createStrel
Creates a new instance of OrientedLineStrel with the length stored internally and the orientation given as argument.- Specified by:
createStrel
in interfaceOrientedStrelFactory
- Parameters:
theta
- the orientation of the resulting structuring element, in degrees- Returns:
- a new oriented structuring element
- See Also:
OrientedStrelFactory.createStrel(double)
-