public class Create3DTrainingDataFromMeshes extends Object
Constructor and Description |
---|
Create3DTrainingDataFromMeshes(List<Track> tracks,
ij.ImagePlus plus) |
Modifier and Type | Method and Description |
---|---|
ij.ImageStack |
createDistanceMapImage(ij.ImageStack mosaic) |
ij.ImageStack |
createMaskImage(ij.ImageStack mosaic)
Creates a binary stack (ByteProcessor#threshold(int)) from the provided labelled image.
|
ij.ImageStack |
createMembraneImage(ij.ImageStack mosaic)
Creates a "binary" image, 255 or 0, of the membrane by checking neighboring neighboring pixels for either being
background or another blob.
|
void |
fillHoles(ij.process.ImageProcessor p)
Fills holes, by inverting the processor (1-> 0 and 0->1) then labels the connected components.
|
ij.ImageStack |
getLabeledStack() |
ij.ImagePlus |
getOriginalFrame(Integer tp) |
static void |
main(String[] args)
Creates Cerberus training data.
|
void |
run(int meshFrameNumber) |
void |
showCurrent() |
boolean |
touchesEdge(List<int[]> pixels,
int width,
int height)
checks if *any* of the provided pixels touch the edge of the box bound by x ∈ [0, width) and y ∈ [0, height)
|
public void showCurrent()
public void run(int meshFrameNumber)
public ij.ImageStack createMaskImage(ij.ImageStack mosaic)
mosaic
- labelled image, where non-zero values represent a different cell/meshpublic void fillHoles(ij.process.ImageProcessor p)
p
- binary in put processor.public boolean touchesEdge(List<int[]> pixels, int width, int height)
pixels
- x,y pairs of points.width
- upper bounds for x. x=0 or x=width-1 touches.height
- upper bounds for y. y=0 or y=height-1 touches.public ij.ImageStack createMembraneImage(ij.ImageStack mosaic)
mosaic
- stack of Labelled images. Each label corresponds to a separate cell/meshpublic ij.ImageStack createDistanceMapImage(ij.ImageStack mosaic)
public static void main(String[] args) throws IOException
args
- IOException
public ij.ImagePlus getOriginalFrame(Integer tp)
public ij.ImageStack getLabeledStack()
Copyright © 2013–2022 Francis Crick Institute. All rights reserved.