Class DualMarksAnnotation<T>
Object
DualMarksAnnotation<T>
- Type Parameters:
T- type of rejection-reason
- All Implemented Interfaces:
Annotation,AnnotationWithMarks
An annotation that consists of two sets of marks, accepted and rejected.
It also contains a possible reason for rejecting the entire image.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidassignAccepted(DualMarks dualMark) Assigns marks with an overall accepted state.voidassignPaused(DualMarks dualMark) Assigns marks with an overall paused state.voidassignRejected(DualMarks dualMark, T reason) Assigns marks with an overall rejected state.Marks covering area that should be rejected, can be nullA reason for rejection, if the annotation was rejected by the annotator.Number of seconds since the UNIX epochbooleanWhether the the annotation was marked as accepted by the annotator?booleanmarks()The marks associated with the annotationregion()The region(s) of the marks that specifies the annotation.voidscaleXY(ScaleFactor scaleFactor) Scales the marks in the annotation in X and Y dimensions.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.anchoranalysis.annotation.mark.AnnotationWithMarks
convertToObjects
-
Constructor Details
-
DualMarksAnnotation
public DualMarksAnnotation()
-
-
Method Details
-
assignAccepted
Assigns marks with an overall accepted state.- Parameters:
dualMark- the marks to assign to the annotation.
-
assignPaused
Assigns marks with an overall paused state.- Parameters:
dualMark- the marks to assign to the annotation.
-
assignRejected
Assigns marks with an overall rejected state.The so far accepted/rejected marks are still stored in case there's a later change of mind.
- Parameters:
dualMark- the marks to assign to the annotation.reason- the reason for rejection
-
marks
Description copied from interface:AnnotationWithMarksThe marks associated with the annotation- Specified by:
marksin interfaceAnnotationWithMarks- Returns:
- the marks
-
scaleXY
Scales the marks in the annotation in X and Y dimensions.- Parameters:
scaleFactor- how much to scale by- Throws:
CheckedUnsupportedOperationException- if the type of mark used in the annotation does not supported scaling.
-
region
Description copied from interface:AnnotationWithMarksThe region(s) of the marks that specifies the annotation.As marks have multiple regions, this identifies which regions are included in the annotation.
- Specified by:
regionin interfaceAnnotationWithMarks- Returns:
- the identifier
-
isAccepted
public boolean isAccepted()Whether the the annotation was marked as accepted by the annotator? -
getRejectionReason
A reason for rejection, if the annotation was rejected by the annotator. -
getMarksReject
Marks covering area that should be rejected, can be null -
getTimeAnnotationLastUpdated
Number of seconds since the UNIX epoch -
isFinished
public boolean isFinished()
-