public class Segment3DSpots
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
bigLabel |
static int |
LOCAL_CONSTANT |
static int |
LOCAL_DIFF |
static int |
LOCAL_GAUSS |
static int |
LOCAL_MEAN |
boolean |
multithread |
static int |
SEG_BLOCK |
static int |
SEG_CLASSICAL |
static int |
SEG_MAX |
boolean |
show |
Constructor and Description |
---|
Segment3DSpots(ImageHandler image,
ImageHandler seeds) |
Modifier and Type | Method and Description |
---|---|
double[] |
gaussianFit(int x,
int y,
int z,
boolean plotb) |
ImageHandler |
getInternalLabelImage() |
ImageHandler |
getLabelImage() |
Voxel3D |
getLocalMaximum(int x,
int y,
int z,
float radx,
float rady,
float radz) |
int |
getLocalThreshold() |
java.util.ArrayList<Object3D> |
getObjects() |
ImageHandler |
getRawImage() |
ImageHandler |
getSeeds() |
int |
getSeedsThreshold() |
int |
getVolumeMax() |
int |
getVolumeMin() |
double |
localMean(int xc,
int yc,
int zc)
Local mean for segmentation
|
void |
segmentAll() |
java.util.LinkedList<Voxel3D> |
segmentOneSpot(int x,
int y,
int z,
int o) |
java.util.LinkedList<Voxel3D> |
segmentSpotBlock(int xdep,
int ydep,
int zdep,
int lcThreshold,
int val) |
java.util.LinkedList<Voxel3D> |
segmentSpotClassical(int xdep,
int ydep,
int zdep,
int lcThreshold,
int val)
Segment an object from a seed
|
java.util.LinkedList<Voxel3D> |
segmentSpotMax(int xdep,
int ydep,
int zdep,
int lcThreshold,
int val)
Segment an object from a seed, keep only max local
|
void |
setGaussMaxr(int gm) |
void |
setGaussPc(double pc) |
void |
setLabelImage(ImageHandler image) |
void |
setLocalDiff(int d) |
void |
setLocalThreshold(int localThreshold) |
void |
setMethodLocal(int method) |
void |
setMethodSeg(int method) |
void |
setNoiseWatershed(int noiseWatershed)
Deprecated.
|
void |
setRadiusLocalMean(float r0,
float r1,
float r2) |
void |
setRadiusLocalMean(float r0,
float r1,
float r2,
double we) |
void |
setRawImage(ImageHandler image) |
void |
setSeeds(ImageInt seeds) |
void |
setSeedsThreshold(int globalThreshold) |
void |
setVolumeMax(int volMax) |
void |
setVolumeMin(int volMin) |
void |
setWatershed(boolean wa) |
static java.util.ArrayList<Voxel3D>[] |
splitSpotProjection(IntImage3D ori,
int val,
Object3D f,
int new1,
int new2,
double dist,
float rad,
int dim)
NOT USED, see splitSpotWatershed
|
static Object3DVoxels[] |
splitSpotWatershed(Object3D obj,
float rad,
float dist) |
public static final int SEG_CLASSICAL
public static final int SEG_MAX
public static final int SEG_BLOCK
public static final int LOCAL_CONSTANT
public static final int LOCAL_MEAN
public static final int LOCAL_GAUSS
public static final int LOCAL_DIFF
public boolean show
public boolean multithread
public boolean bigLabel
public Segment3DSpots(ImageHandler image, ImageHandler seeds)
image
- raw imageseeds
- seeds imagepublic static Object3DVoxels[] splitSpotWatershed(Object3D obj, float rad, float dist)
public static java.util.ArrayList<Voxel3D>[] splitSpotProjection(IntImage3D ori, int val, Object3D f, int new1, int new2, double dist, float rad, int dim)
ori
- val
- f
- new1
- new2
- dist
- rad
- dim
- public int getLocalThreshold()
public void setLocalThreshold(int localThreshold)
localThreshold
- public int getSeedsThreshold()
public void setSeedsThreshold(int globalThreshold)
globalThreshold
- public ImageHandler getRawImage()
public void setRawImage(ImageHandler image)
image
- public ImageHandler getSeeds()
public void setSeeds(ImageInt seeds)
seeds
- imagepublic java.util.ArrayList<Object3D> getObjects()
public ImageHandler getInternalLabelImage()
public ImageHandler getLabelImage()
public void setLabelImage(ImageHandler image)
public void setMethodSeg(int method)
method
- public void setMethodLocal(int method)
method
- public void setWatershed(boolean wa)
wa
- @Deprecated public void setNoiseWatershed(int noiseWatershed)
noiseWatershed
- public void setRadiusLocalMean(float r0, float r1, float r2)
r0
- r1
- r2
- public void setLocalDiff(int d)
public void setRadiusLocalMean(float r0, float r1, float r2, double we)
r0
- r1
- r2
- we
- public void setGaussPc(double pc)
pc
- public void setGaussMaxr(int gm)
gm
- public int getVolumeMax()
public void setVolumeMax(int volMax)
volMax
- public int getVolumeMin()
public void setVolumeMin(int volMin)
volMin
- public double localMean(int xc, int yc, int zc)
xc
- x coordinate of pixelyc
- y coordinate of pixelzc
- z coordinate of pixelpublic double[] gaussianFit(int x, int y, int z, boolean plotb)
x
- y
- z
- plotb
- public void segmentAll()
public java.util.LinkedList<Voxel3D> segmentOneSpot(int x, int y, int z, int o)
public java.util.LinkedList<Voxel3D> segmentSpotBlock(int xdep, int ydep, int zdep, int lcThreshold, int val)
xdep
- ydep
- zdep
- lcThreshold
- val
- public java.util.LinkedList<Voxel3D> segmentSpotClassical(int xdep, int ydep, int zdep, int lcThreshold, int val)
lcThreshold
- Threshold to connect pixelsval
- value of the objectxdep
- x coordinate of the seedydep
- y coordinate of the seedzdep
- z coordinate of the seedpublic java.util.LinkedList<Voxel3D> segmentSpotMax(int xdep, int ydep, int zdep, int lcThreshold, int val)
lcThreshold
- Threshold to connect pixelsval
- value of the objectxdep
- x coordinate of the seedydep
- y coordinate of the seedzdep
- z coordinate of the seedpublic Voxel3D getLocalMaximum(int x, int y, int z, float radx, float rady, float radz)