public class IJLineWrapper extends Object implements IJRealRoiWrapper<Line>, Line
Line as an ImgLib2 Line.
This implementation does not support lines with widths.
| Constructor and Description |
|---|
IJLineWrapper(double x1,
double y1,
double x2,
double y2)
|
IJLineWrapper(int x1,
int y1,
int x2,
int y2)
|
IJLineWrapper(Line line)
|
| Modifier and Type | Method and Description |
|---|---|
RealLocalizable |
endpointOne() |
RealLocalizable |
endpointTwo() |
boolean |
equals(Object obj) |
Line |
getRoi()
Returns the backing ImageJ 1.x
Roi. |
int |
hashCode() |
double |
realMax(int d) |
double |
realMin(int d) |
boolean |
test(RealLocalizable t) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitnumDimensionsboundaryType, equals, hashCode, maskTypeand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorisAll, knownConstantmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPointpublic IJLineWrapper(int x1,
int y1,
int x2,
int y2)
Line with endpoints at the
specified integer coordinates, and then wraps this as an ImgLib2
Line.x1 - x coordinate of the first endpoint.y1 - y coordinate of the first endpoint.x2 - x coordinate of the second endpoint.y2 - y coordinate of the second endpoint.public IJLineWrapper(double x1,
double y1,
double x2,
double y2)
Line with endpoints at the
specified real coordinates, and then wraps this as an ImgLib2 Line.x1 - x coordinate of the first endpoint.y1 - y coordinate of the first endpoint.x2 - x coordinate of the second endpoint.y2 - y coordinate of the second endpoint.public IJLineWrapper(Line line)
line - imageJ 1.x line to be wrappedpublic boolean test(RealLocalizable t)
test in interface Predicate<RealLocalizable>public double realMin(int d)
realMin in interface RealIntervalpublic double realMax(int d)
realMax in interface RealIntervalpublic RealLocalizable endpointOne()
endpointOne in interface Linepublic RealLocalizable endpointTwo()
endpointTwo in interface Linepublic Line getRoi()
IJRoiWrapperRoi.getRoi in interface IJRoiWrapper<Line,RealLocalizable>Roipublic boolean equals(Object obj)
equals in interface Lineequals in interface MaskPredicate<RealLocalizable>equals in class ObjectCopyright © 2014–2022 ImageJ. All rights reserved.