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, wait
numDimensions
boundaryType, equals, hashCode, maskType
and, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xor
isAll, knownConstant
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint
public 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 RealInterval
public double realMax(int d)
realMax
in interface RealInterval
public RealLocalizable endpointOne()
endpointOne
in interface Line
public RealLocalizable endpointTwo()
endpointTwo
in interface Line
public Line getRoi()
IJRoiWrapper
Roi
.getRoi
in interface IJRoiWrapper<Line,RealLocalizable>
Roi
public boolean equals(Object obj)
equals
in interface Line
equals
in interface MaskPredicate<RealLocalizable>
equals
in class Object
Copyright © 2014–2022 ImageJ. All rights reserved.