|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectturboRegMask
class turboRegMask
This class is responsible for the mask preprocessing that takes place concurrently with user-interface events. It contains methods to compute the mask pyramids.
| Field Summary | |
|---|---|
private int |
height
|
private float[] |
mask
|
private java.util.Stack<float[]> |
pyramid
|
private int |
pyramidDepth
|
private java.lang.Thread |
t
|
private int |
width
|
| Constructor Summary | |
|---|---|
turboRegMask(ij.ImagePlus imp)
Converts the pixel array of the incoming ImagePlus
object into a local boolean array. |
|
| Method Summary | |
|---|---|
private void |
buildPyramid()
|
void |
clearMask()
Set to true every pixel of the full-size mask. |
private float[] |
getHalfMask2D(float[] fullMask,
int fullWidth,
int fullHeight)
|
float[] |
getMask()
Return the full-size mask array. |
java.util.Stack<float[]> |
getPyramid()
Return the pyramid as a Stack object. |
java.lang.Thread |
getThread()
Return the thread associated with this turboRegMask
object. |
void |
run()
Start the mask precomputations, which are interruptible. |
void |
setPyramidDepth(int pyramidDepth)
Set the depth up to which the pyramids should be computed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final java.util.Stack<float[]> pyramid
private java.lang.Thread t
private float[] mask
private int width
private int height
private int pyramidDepth
| Constructor Detail |
|---|
public turboRegMask(ij.ImagePlus imp)
ImagePlus
object into a local boolean array.
imp - ImagePlus object to preprocess.| Method Detail |
|---|
public void clearMask()
true every pixel of the full-size mask.
public float[] getMask()
public java.util.Stack<float[]> getPyramid()
Stack object. A single pyramid
level consists of
isTarget |
ML* | ML |
|---|---|---|
| true | mask samples | mask samples |
| false | mask samples | mask samples |
turboRegImage.getPyramid()public java.lang.Thread getThread()
turboRegMask
object.
public void run()
run in interface java.lang.Runnablepublic void setPyramidDepth(int pyramidDepth)
getPyramid()private void buildPyramid()
private float[] getHalfMask2D(float[] fullMask,
int fullWidth,
int fullHeight)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||