From: lingutln Date: Tue, 3 Jan 2012 23:02:06 +0000 (+0000) Subject: Layering of Segments.Done by Nikhil. X-Git-Url: http://gitweb.planteome.org/?a=commitdiff_plain;h=788eda927dab3902c3e1488254b8a0a933a013e4;p=old-jaiswallab-svn%2F.git Layering of Segments.Done by Nikhil. svn path=/; revision=249 --- diff --git a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java index 7de28f5..42d6593 100644 --- a/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java +++ b/Annotation/src/ie/dcu/apps/ist/views/SegmentationView.java @@ -218,9 +218,7 @@ public class SegmentationView extends Composite { @Override public void keyReleased(KeyEvent e) { ArrayList listElements = new ArrayList(); - /* - * For the down arrow functionality - */ + //For the down arrow functionality if(e.keyCode == 16777218) { comboLabel.setListVisible(true); diff --git a/Annotation/src/ie/dcu/segment/SegmentationMask.java b/Annotation/src/ie/dcu/segment/SegmentationMask.java index 6546cc5..c1d8cd9 100644 --- a/Annotation/src/ie/dcu/segment/SegmentationMask.java +++ b/Annotation/src/ie/dcu/segment/SegmentationMask.java @@ -17,7 +17,7 @@ import org.eclipse.swt.graphics.*; * * @author Kevin McGuinness */ -public final class SegmentationMask extends ByteMatrix { +public class SegmentationMask extends ByteMatrix { /** * Serialization UID diff --git a/Annotation/src/ie/dcu/segment/SegmentationObject.java b/Annotation/src/ie/dcu/segment/SegmentationObject.java new file mode 100644 index 0000000..e18ba3f --- /dev/null +++ b/Annotation/src/ie/dcu/segment/SegmentationObject.java @@ -0,0 +1,26 @@ +package ie.dcu.segment; + + +/** + * Class that represents a independent segmentation mask. + * + * A segmentation mask is a two dimensional matrix of byte values. It is used + * to represents which pixels in an image that are part of the foreground, and + * which are part of the background. + * + * @author Nikhil + */ + +public final class SegmentationObject extends SegmentationMask{ + + /** + * + */ + private static final long serialVersionUID = 8321845179859248904L; + + public SegmentationObject(int width, int height) { + super(width, height); + // TODO Auto-generated constructor stub + } + +}