@HelpPath(path="plugins/thresholdsegmentation.html") public class ThresholdSegmentation extends SlideSetPlugin
Modifier and Type | Field and Description |
---|---|
private boolean |
and |
private net.imagej.Dataset |
ds |
private net.imagej.ImageJ |
ij |
private int |
maxSize |
private int |
minSize |
private net.imagej.overlay.AbstractOverlay[] |
segs |
private String |
ts |
private ArrayList<net.imagej.overlay.PolygonOverlay> |
v |
private ArrayList<net.imagej.overlay.PolygonOverlay> |
vTemp |
Constructor and Description |
---|
ThresholdSegmentation() |
Modifier and Type | Method and Description |
---|---|
private ArrayList<long[]> |
getNeighbors(long[] pos,
int xAxis,
int yAxis)
Get the 4-connected neighborhood in the x-y plane
|
private long[] |
getNextPoint(long[] p,
ArrayList<long[][]> set)
Find the edge in
set with one point matching p . |
private boolean |
inBounds(long[] point,
long[] dims) |
private void |
offsetBottomRightEdges(net.imglib2.roi.PolygonRegionOfInterest roi,
int xAxis,
int yAxis)
Offset the bottom and right edges of an ROI
outlining pixels as a workaround for issues
with the
contains() method. |
void |
run() |
private boolean |
vectorEquals(long[] a,
long[] b) |
private net.imagej.ImageJ ij
private net.imagej.Dataset ds
private String ts
private int minSize
private int maxSize
private boolean and
private net.imagej.overlay.AbstractOverlay[] segs
private final ArrayList<net.imagej.overlay.PolygonOverlay> v
private final ArrayList<net.imagej.overlay.PolygonOverlay> vTemp
public void run()
private long[] getNextPoint(long[] p, ArrayList<long[][]> set)
set
with one point matching p
.
Return that edge's other point, and remove it from the set.set
- [point][axis]private ArrayList<long[]> getNeighbors(long[] pos, int xAxis, int yAxis)
private boolean vectorEquals(long[] a, long[] b)
private boolean inBounds(long[] point, long[] dims)
private void offsetBottomRightEdges(net.imglib2.roi.PolygonRegionOfInterest roi, int xAxis, int yAxis)
contains()
method. This
should ensure that polygon ROIs actually
contain only the pixels which they appear
to outline.Copyright © 2023. All rights reserved.