public class Drawing extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Drawing.DrawType |
static class |
Drawing.ROOTSEGMENT_STATUS |
Constructor and Description |
---|
Drawing() |
Modifier and Type | Method and Description |
---|---|
static MTBImage |
draw(de.unihalle.informatik.MiToBo_xml.MTBXMLRootImageAnnotationType rootImageAnnotationType,
MTBImage image,
Drawing.DrawType drawType,
EnumSet<Drawing.ROOTSEGMENT_STATUS> rootSegmentStatusToDraw_Set) |
static void |
drawFilledCircle(ij.ImagePlus imp,
int x,
int y,
float radius,
int color)
Draws a filled circle at position ('x', 'y') with radius 'radius'.
|
static MTBImage |
drawRootIDs(de.unihalle.informatik.MiToBo_xml.MTBXMLRootType[] roots,
MTBImage image,
Color col) |
static void |
drawSegment(ij.ImagePlus imp,
int x1,
int y1,
int x2,
int y2,
int startRadius,
int endRadius,
int color)
Draws a filled rectangle.
|
private static int[] |
getContourPoints(int x1,
int y1,
int x2,
int y2,
int distance)
Computes both points perpendicular to the vector x1,x2 with distance 'distance'.
|
private static boolean |
matchesRootSegmentStatusToDraw(EnumSet<Drawing.ROOTSEGMENT_STATUS> rootSegmentStatusToDraw_Set,
de.unihalle.informatik.MiToBo_xml.MTBXMLRootSegmentStatusType.Enum status) |
public static MTBImage draw(de.unihalle.informatik.MiToBo_xml.MTBXMLRootImageAnnotationType rootImageAnnotationType, MTBImage image, Drawing.DrawType drawType, EnumSet<Drawing.ROOTSEGMENT_STATUS> rootSegmentStatusToDraw_Set) throws de.unihalle.informatik.Alida.exceptions.ALDOperatorException, de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
rootImageAnnotationType
- image
- drawType
- rootSegmentStatusToDraw_Set
- de.unihalle.informatik.Alida.exceptions.ALDOperatorException
de.unihalle.informatik.Alida.exceptions.ALDProcessingDAGException
private static int[] getContourPoints(int x1, int y1, int x2, int y2, int distance)
x1
- First point, x coordinatey1
- First point, y coordinatex2
- Second point, x coordinatey2
- Second point, y coordinatedistance
- The distance of each point from the vectorpublic static void drawSegment(ij.ImagePlus imp, int x1, int y1, int x2, int y2, int startRadius, int endRadius, int color)
imp
- The image on which is drawnx1
- x-coordinate of the start point of the centerliney1
- y-coordinate of the start point of the centerlinex2
- x-coordinate of the end point of the centerliney2
- y-coordinate of the end point of the centerlinestartRadius
- Root radius of start pointendRadius
- Root radius of end pointpublic static void drawFilledCircle(ij.ImagePlus imp, int x, int y, float radius, int color)
imp
- The image on which to draw.x
- x-coordinate of the circle center.y
- y-coordinate of the circle center.radius
- The radius of the circle.color
- The fill color of the circle.private static boolean matchesRootSegmentStatusToDraw(EnumSet<Drawing.ROOTSEGMENT_STATUS> rootSegmentStatusToDraw_Set, de.unihalle.informatik.MiToBo_xml.MTBXMLRootSegmentStatusType.Enum status)
rootSegmentStatusToDraw_Set
- status
- Copyright © 2010–2020 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.