|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbunwarpj.FinalAction
public class FinalAction
Class to launch the registration in bUnwarpJ. This is the class called from the main plugin class after recollecting the registration parameters from the main dialog.
| Field Summary | |
|---|---|
private int |
accurate_mode
level of accuracy |
private double |
consistencyWeight
weight for the deformations consistency |
private double |
curlWeight
curl weight |
private MainDialog |
dialog
dialog for bUnwarpJ interface |
private double |
divWeight
divergence weight |
private double |
imageWeight
weight for image similarity |
private double |
landmarkWeight
landmark weight |
private int |
max_scale_deformation
maximum scale deformation |
private int |
maxImageSubsamplingFactor
image subsampling factor at highest resolution level |
private int |
min_scale_deformation
minimum scale deformation |
private int |
min_scale_image
minimum image scale |
private int |
outputLevel
flag to specify the level of resolution in the output |
private boolean |
showMarquardtOptim
flag to show the optimizer |
private BSplineModel |
source
source image model |
private double[][] |
sourceAffineMatrix
source initial affine matrix |
private ij.ImagePlus |
sourceImp
image representation for the source |
private Mask |
sourceMsk
source image mask |
private PointHandler |
sourcePh
point handler for the landmarks in the source image |
private double |
stopThreshold
stopping threshold |
private java.lang.Thread |
t
thread to run the registration method |
private BSplineModel |
target
target image model |
private double[][] |
targetAffineMatrix
target initial affine matrix |
private ij.ImagePlus |
targetImp
image representation for the target |
private Mask |
targetMsk
target image mask |
private PointHandler |
targetPh
point handler for the landmarks in the target image |
| Constructor Summary | |
|---|---|
FinalAction(MainDialog dialog)
Start a thread under the control of the main event loop. |
|
| Method Summary | |
|---|---|
java.lang.Thread |
getThread()
Get the thread. |
ij.ImagePlus[] |
initializeOutputIPs()
Initialize output image plus |
void |
run()
Perform the registration |
void |
setup(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
BSplineModel source,
BSplineModel target,
PointHandler sourcePh,
PointHandler targetPh,
Mask sourceMsk,
Mask targetMsk,
double[][] sourceAffineMatrix,
double[][] targetAffineMatrix,
int min_scale_deformation,
int max_scale_deformation,
int min_scale_image,
double divWeight,
double curlWeight,
double landmarkWeight,
double imageWeight,
double consistencyWeight,
double stopThreshold,
int outputLevel,
boolean showMarquardtOptim,
int accurate_mode,
int maxImageSubsamplingFactor)
Pass parameter from MainDialog to
FinalAction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.lang.Thread t
private MainDialog dialog
private ij.ImagePlus sourceImp
private ij.ImagePlus targetImp
private BSplineModel source
private BSplineModel target
private PointHandler sourcePh
private PointHandler targetPh
private Mask sourceMsk
private Mask targetMsk
private double[][] sourceAffineMatrix
private double[][] targetAffineMatrix
private int min_scale_deformation
private int max_scale_deformation
private int min_scale_image
private int outputLevel
private boolean showMarquardtOptim
private double divWeight
private double curlWeight
private double landmarkWeight
private double imageWeight
private double consistencyWeight
private double stopThreshold
private int accurate_mode
private int maxImageSubsamplingFactor
| Constructor Detail |
|---|
public FinalAction(MainDialog dialog)
MainDialog do not because they are
under the control of its own event loop.
| Method Detail |
|---|
public java.lang.Thread getThread()
FinalAction
objectpublic void run()
run in interface java.lang.Runnable
public void setup(ij.ImagePlus sourceImp,
ij.ImagePlus targetImp,
BSplineModel source,
BSplineModel target,
PointHandler sourcePh,
PointHandler targetPh,
Mask sourceMsk,
Mask targetMsk,
double[][] sourceAffineMatrix,
double[][] targetAffineMatrix,
int min_scale_deformation,
int max_scale_deformation,
int min_scale_image,
double divWeight,
double curlWeight,
double landmarkWeight,
double imageWeight,
double consistencyWeight,
double stopThreshold,
int outputLevel,
boolean showMarquardtOptim,
int accurate_mode,
int maxImageSubsamplingFactor)
MainDialog to
FinalAction.
sourceImp - image representation for the sourcetargetImp - image representation for the targetsource - source image modeltarget - target image modelsourcePh - point handler for the landmarks in the source imagetargetPh - point handler for the landmarks in the target imagesourceMsk - source image masktargetMsk - target image masksourceAffineMatrix - source initial affine matrixtargetAffineMatrix - target initial affine matrixmin_scale_deformation - minimum scale deformationmax_scale_deformation - maximum scale deformationmin_scale_image - minimum image scaleoutputLevel - flag to specify the level of resolution in the outputshowMarquardtOptim - flag to show the optimizerdivWeight - divergence weightcurlWeight - curl weightlandmarkWeight - landmark weightimageWeight - weight for image similarityconsistencyWeight - weight for the deformations consistencystopThreshold - stopping thresholdaccurate_mode - level of accuracymaxImageSubsamplingFactor - image subsampling factor at highest resolution levelpublic ij.ImagePlus[] initializeOutputIPs()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||