|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.Alida.operator.ALDData
de.unihalle.informatik.MiToBo.core.datatypes.MTBBorder2D
de.unihalle.informatik.MiToBo.core.datatypes.MTBContour2D
@ALDDerivedClass @ALDParametrizedClass public class MTBContour2D
Class to create 2D contour objects with a vector of points, belonging to the contour. Every contour can include a set of inner contours.
Contrary to the super class of 2D borders the points belonging to a contour have a certain ordering.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.unihalle.informatik.MiToBo.core.datatypes.MTBBorder2D |
---|
MTBBorder2D.BorderConnectivity |
Field Summary |
---|
Fields inherited from class de.unihalle.informatik.MiToBo.core.datatypes.MTBBorder2D |
---|
connectivity, inner, pointNum, points |
Constructor Summary | |
---|---|
MTBContour2D()
Standard constructor. |
|
MTBContour2D(Vector<Point2D.Double> _points)
Constructor to create an 2D contour object from a 2D point vector. |
Method Summary | |
---|---|
void |
addInner(MTBBorder2D C)
Add a inner contour to the existing contour object. |
MTBContour2D |
clone()
Override java.lang.Object.clone() to create and return a copy of this object. |
Vector<MTBContour2D> |
getAllInner()
Get all inner contours from the contour object. |
int[] |
getChaincode()
Calculates chaincode from the outer contour. |
MTBContour2D |
getContour()
Get a Contour2D copy of this object. |
double |
getContourLength()
Calculates the length of the outer contour using it's chaincode. |
MTBContour2D |
getInner(int index)
Get a specific inner contour from the contour object. |
int |
getInnerCount()
Get the number of inner contours including in the contour object. |
MTBRegion2D |
getRegion(int imageSizeX,
int imageSizeY)
Method to get the included region in a 2D contour as Region2D object. |
void |
setInner(Vector<MTBBorder2D> C)
Set the inner contours of the contour object. |
Methods inherited from class de.unihalle.informatik.MiToBo.core.datatypes.MTBBorder2D |
---|
addPixel, countInner, getAllInnerBorders, getBoundingBox, getConnectivity, getPointAt, getPointNum, getPoints, hookPointsUpdated, setConnectivity, toMTBImage, toMTBImageByte |
Methods inherited from class de.unihalle.informatik.Alida.operator.ALDData |
---|
cloneProperties, getLocation, getProperty, getPropertyKeys, print, setLocation, setProperty |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MTBContour2D()
public MTBContour2D(Vector<Point2D.Double> _points)
_points
- vector with 2D pointsMethod Detail |
---|
public MTBContour2D clone()
clone
in class MTBBorder2D
public MTBContour2D getContour()
public int[] getChaincode()
public double getContourLength()
public void setInner(Vector<MTBBorder2D> C) throws MTBDatatypeException
Note that an error occurs if the objects are not of type
MTBContour2D
.
setInner
in class MTBBorder2D
C
- Vector with inner contours belonging to the contour object.
MTBDatatypeException
public void addInner(MTBBorder2D C) throws MTBDatatypeException
addInner
in class MTBBorder2D
C
- the new 2D inner contour
MTBDatatypeException
public int getInnerCount()
public MTBContour2D getInner(int index)
getInner
in class MTBBorder2D
index
- specific index of the inner contour to get from the inner contour
vector
public Vector<MTBContour2D> getAllInner()
public MTBRegion2D getRegion(int imageSizeX, int imageSizeY) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
imageSizeX
- width of image that includes the regionimageSizeY
- height of image that includes the region
de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |