bunwarpj
Class MainDialog

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Dialog
                  extended by ij.gui.GenericDialog
                      extended by bunwarpj.MainDialog
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.AdjustmentListener, java.awt.event.FocusListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.TextListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class MainDialog
extends ij.gui.GenericDialog

Class to create the dialog for bUnwarpJ. It extends GenericDialog to allow the user interacting with the other windows.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
static int ACCURATE_MODE
          accurate mode constant
private  boolean bIsReverse
          consistency flag (if false, unidirectional registration is done)
private  boolean bMacro
          macro flag
private  boolean clearMask
          Boolean for clearing mask
private  double consistencyWeight
          consistency weight
private  java.awt.TextField consistencyWeightTextField
          consistency weight text field
private  double curlWeight
          curl weight
private  double divWeight
          divergence weight
static int FAST_MODE
          fast mode constant
private  boolean finalActionLaunched
          flag to see if the finalAction was launched
private  ij.ImagePlus[] imageList
          List of available images in ImageJ
private  int imagePyramidDepth
          maximum depth for the image pyramid
private  double imageWeight
          image similarity weight
private  double landmarkWeight
          landmarks weight
private  int max_scale_deformation
          maximum scale deformation
private  int maxImageSubsamplingFactor
          image subsampling factor at highest resolution level
private  java.awt.Choice maxScaleChoice
          maximum scale choice
private  int min_scale_deformation
          minimum scale deformation
private  int min_scale_image
          minimum image scale
private  java.awt.Choice minScaleChoice
          minimum scale choice
private  int mode
          mode ("Accurate" by default)
private  java.awt.Choice modeChoice
          accurate mode choice
static int MONO_MODE
          unidirectional ("mono") mode constant
private  ij.process.ImageProcessor originalSourceIP
          initial source image processor
private  ij.process.ImageProcessor originalTargetIP
          initial target image processor
private  ij.gui.Roi previousSourceRoi
          region of interest of the source image before calling the plugin
private  ij.gui.Roi previousTargetRoi
          region of interest of the target image before calling the plugin
private  java.awt.Scrollbar resamplingSlider
          resampling scroll bar
private  java.awt.TextField resamplingTextField
          resampling text field
private  boolean richOutput
          flag for rich output (verbose option)
private  boolean saveTransformation
          flag for save transformation option
private  BSplineModel source
          Model for source image
private  double[][] sourceAffineMatrix
          Initial affine matrix for the source image
private  java.awt.Choice sourceChoice
          source image choice
private  int sourceChoiceIndex
          index of the source choice
private  ij.gui.ImageCanvas sourceIc
          Canvas of the source image
private  ij.ImagePlus sourceImp
          Image representation for source image
private  Mask sourceMsk
          Mask for source image
private  PointHandler sourcePh
          Point handlers for the landmarks in the source image
private  boolean stopRegistration
          flag to stop the registration
private  double stopThreshold
          stopping threshold
private  BSplineModel target
          Model for target image
private  double[][] targetAffineMatrix
          Initial affine matrix for the target image
private  java.awt.Choice targetChoice
          target image choice
private  int targetChoiceIndex
          index of the target choice
private  ij.gui.ImageCanvas targetIc
          Canvas of the target image
private  ij.ImagePlus targetImp
          Image representation for target image
private  Mask targetMsk
          Mask for target image
private  PointHandler targetPh
          Point handlers for the landmarks in the target image
private  PointToolbar tb
          Toolbar handler
 
Fields inherited from class ij.gui.GenericDialog
checkbox, choice, defaultText, defaultValues, MAX_SLIDERS, numberField, slider, stringField, textArea1, textArea2, theLabel
 
Fields inherited from class java.awt.Dialog
DEFAULT_MODALITY_TYPE
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
MainDialog(java.awt.Frame parentWindow, ij.ImagePlus[] imageList, int mode, int maxImageSubsamplingFactor, int min_scale_deformation, int max_scale_deformation, double divWeight, double curlWeight, double landmarkWeight, double imageWeight, double consistencyWeight, double stopThreshold, boolean richOutput, boolean saveTransformation)
          Create a new instance of MainDialog.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          Actions to be taken during the dialog.
private  void addImageList(java.awt.Choice choice)
          Add the image list to the list of choices.
 void applyRawTransformationToSource(double[][] transformation_x, double[][] transformation_y)
          Apply a raw transformation to the source image.
 void applyTransformationToSource(int intervals, double[][] cx, double[][] cy)
          Apply the transformation defined by the spline coefficients to the source image.
private  void cancelSource()
          Close all the variables related to the source image.
private  void cancelTarget()
          Close all the variables related to the target image.
private  void computeImagePyramidDepth()
          Compute the depth of the image resolution pyramid.
private  void createSourceImage(boolean bIsReverse)
          Create the source image, i.e.
private  void createTargetImage()
          Create target image.
 void freeMemory()
          Free the memory used in the program.
 ij.process.ImageProcessor getOriginalSourceIP()
          Get original source image process.
 ij.process.ImageProcessor getOriginalTargetIP()
          Get original target image process.
 BSplineModel getSource()
          Get source image model.
 double[][] getSourceAffineMatrix()
          Get the source initial affine matrix.
 Mask getSourceMask()
          Get source Mask.
 Mask getSourceMsk()
          Get source point handler.
 PointHandler getSourcePh()
          Get source point handler.
 BSplineModel getTarget()
          Get target image model.
 double[][] getTargetAffineMatrix()
          Get the target initial affine matrix.
 Mask getTargetMask()
          Get target Mask.
 Mask getTargetMsk()
          Get target point handler.
 PointHandler getTargetPh()
          Get target point handler.
 void grayImage(PointHandler ph)
          Method to color the area of the mask.
 boolean isClearMaskSet()
          Get clearMask flag.
 boolean isFinalActionLaunched()
          Get finalActionLaunched flag.
 boolean isMacroCall()
          Get the macro flag
 boolean isSaveTransformationSet()
          Get saveTransformation flag.
 boolean isStopRegistrationSet()
          Get stopRegistration flag.
 void itemStateChanged(java.awt.event.ItemEvent e)
          Action to be taken when choices change.
 void joinThreads()
          Join the threads for the source and target images.
private  void loadPointRoiAsLandmarks()
          Load point rois in the source and target images as landmarks.
private  void permuteImages(boolean bIsReverse)
          Permute the pointer for the target and source images.
private  void removePoints()
          Remove the points from the points handlers of the source and target image.
 void repaintToolbar()
          Repaint toolbar.
private  void restartModelThreads(boolean bIsReverse)
          Re-launch the threads for the image models of the source and target.
 void restoreAll()
          Restore the initial conditions.
 void setClearMask(boolean val)
          Set the clearMask flag.
 void setFinalActionLaunched(boolean b)
          Set final action launched flag.
 void setSaveTransformation(boolean b)
          Set saveTransformation flag.
private  void setSecondaryPointHandlers()
          Set the secondary point handlers.
 void setSourceAffineMatrix(double[][] affineMatrix)
          Set source intial affine matrix.
 void setSourceMask(java.lang.String sFileName)
          Set source Mask.
 void setStopRegistration()
          Set the stopRegistration flag to true.
 void setToolbarAllUp()
          Set toolbar tools all up.
 void showDialog()
          Show main bUnwarpJ dialog
private  void stopSourceThread()
          Stop the thread of the source image.
private  void stopTargetThread()
          Stop the thread of the target image.
 void ungrayImage(PointAction pa)
          Ungray image.
 void windowClosing(java.awt.event.WindowEvent e)
          Actions to be taken when closing the dialog.
 
Methods inherited from class ij.gui.GenericDialog
addCheckbox, addCheckboxGroup, addChoice, addDialogListener, addHelp, addMessage, addNumericField, addNumericField, addPanel, addPanel, addPreviewCheckbox, addPreviewCheckbox, addSlider, addStringField, addStringField, addTextAreas, adjustmentValueChanged, centerDialog, enableYesNoCancel, enableYesNoCancel, focusGained, focusLost, getButtons, getCheckboxes, getChoices, getErrorMessage, getInsets, getMessage, getNextBoolean, getNextChoice, getNextChoiceIndex, getNextNumber, getNextString, getNextText, getNumericFields, getPreviewCheckbox, getSliders, getStringFields, getTextArea1, getTextArea2, getValue, hideCancelButton, invalidNumber, keyPressed, keyReleased, keyTyped, paint, previewRunning, setEchoChar, setInsets, setOKLabel, setup, textValueChanged, wasCanceled, wasOKed, windowActivated, windowClosed, windowDeactivated, windowDeiconified, windowIconified, windowOpened
 
Methods inherited from class java.awt.Dialog
addNotify, getAccessibleContext, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FAST_MODE

public static int FAST_MODE
fast mode constant


ACCURATE_MODE

public static int ACCURATE_MODE
accurate mode constant


MONO_MODE

public static int MONO_MODE
unidirectional ("mono") mode constant


imageList

private ij.ImagePlus[] imageList
List of available images in ImageJ


sourceIc

private ij.gui.ImageCanvas sourceIc
Canvas of the source image


targetIc

private ij.gui.ImageCanvas targetIc
Canvas of the target image


sourceImp

private ij.ImagePlus sourceImp
Image representation for source image


targetImp

private ij.ImagePlus targetImp
Image representation for target image


originalSourceIP

private ij.process.ImageProcessor originalSourceIP
initial source image processor


originalTargetIP

private ij.process.ImageProcessor originalTargetIP
initial target image processor


source

private BSplineModel source
Model for source image


target

private BSplineModel target
Model for target image


sourceMsk

private Mask sourceMsk
Mask for source image


targetMsk

private Mask targetMsk
Mask for target image


sourceAffineMatrix

private double[][] sourceAffineMatrix
Initial affine matrix for the source image


targetAffineMatrix

private double[][] targetAffineMatrix
Initial affine matrix for the target image


sourcePh

private PointHandler sourcePh
Point handlers for the landmarks in the source image


targetPh

private PointHandler targetPh
Point handlers for the landmarks in the target image


clearMask

private boolean clearMask
Boolean for clearing mask


tb

private PointToolbar tb
Toolbar handler


finalActionLaunched

private boolean finalActionLaunched
flag to see if the finalAction was launched


stopRegistration

private boolean stopRegistration
flag to stop the registration


sourceChoiceIndex

private int sourceChoiceIndex
index of the source choice


targetChoiceIndex

private int targetChoiceIndex
index of the target choice


min_scale_deformation

private int min_scale_deformation
minimum scale deformation


max_scale_deformation

private int max_scale_deformation
maximum scale deformation


mode

private int mode
mode ("Accurate" by default)


maxImageSubsamplingFactor

private int maxImageSubsamplingFactor
image subsampling factor at highest resolution level


divWeight

private double divWeight
divergence weight


curlWeight

private double curlWeight
curl weight


landmarkWeight

private double landmarkWeight
landmarks weight


imageWeight

private double imageWeight
image similarity weight


consistencyWeight

private double consistencyWeight
consistency weight


richOutput

private boolean richOutput
flag for rich output (verbose option)


saveTransformation

private boolean saveTransformation
flag for save transformation option


min_scale_image

private int min_scale_image
minimum image scale


imagePyramidDepth

private int imagePyramidDepth
maximum depth for the image pyramid


stopThreshold

private double stopThreshold
stopping threshold


bIsReverse

private boolean bIsReverse
consistency flag (if false, unidirectional registration is done)


bMacro

private boolean bMacro
macro flag


previousSourceRoi

private ij.gui.Roi previousSourceRoi
region of interest of the source image before calling the plugin


previousTargetRoi

private ij.gui.Roi previousTargetRoi
region of interest of the target image before calling the plugin


sourceChoice

private java.awt.Choice sourceChoice
source image choice


targetChoice

private java.awt.Choice targetChoice
target image choice


minScaleChoice

private java.awt.Choice minScaleChoice
minimum scale choice


maxScaleChoice

private java.awt.Choice maxScaleChoice
maximum scale choice


modeChoice

private java.awt.Choice modeChoice
accurate mode choice


resamplingTextField

private java.awt.TextField resamplingTextField
resampling text field


resamplingSlider

private java.awt.Scrollbar resamplingSlider
resampling scroll bar


consistencyWeightTextField

private java.awt.TextField consistencyWeightTextField
consistency weight text field

Constructor Detail

MainDialog

public MainDialog(java.awt.Frame parentWindow,
                  ij.ImagePlus[] imageList,
                  int mode,
                  int maxImageSubsamplingFactor,
                  int min_scale_deformation,
                  int max_scale_deformation,
                  double divWeight,
                  double curlWeight,
                  double landmarkWeight,
                  double imageWeight,
                  double consistencyWeight,
                  double stopThreshold,
                  boolean richOutput,
                  boolean saveTransformation)
Create a new instance of MainDialog.

Parameters:
parentWindow - pointer to the parent window
imageList - list of images from ImageJ
mode - default registration mode (0 = Fast, 1 = Accurate, 2 = Mono)
maxImageSubsamplingFactor - subsampling factor at highest resolution level
min_scale_deformation - default minimum scale deformation value
max_scale_deformation - default maximum scale deformation value
divWeight - default divergence weight
curlWeight - default curl weight
landmarkWeight - default landmarks weight
imageWeight - default image similarity weight
consistencyWeight - default consistency weight
stopThreshold - default stopping threshold
richOutput - default verbose flag
saveTransformation - default save transformations flag
Method Detail

setSourceMask

public void setSourceMask(java.lang.String sFileName)
Set source Mask.

Parameters:
sFileName - source mask file name

setSourceAffineMatrix

public void setSourceAffineMatrix(double[][] affineMatrix)
Set source intial affine matrix.

Parameters:
affineMatrix - initial affine matrix

getSourceMask

public Mask getSourceMask()
Get source Mask.


getTargetMask

public Mask getTargetMask()
Get target Mask.


actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
Actions to be taken during the dialog.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Overrides:
actionPerformed in class ij.gui.GenericDialog

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)
Actions to be taken when closing the dialog.

Specified by:
windowClosing in interface java.awt.event.WindowListener
Overrides:
windowClosing in class ij.gui.GenericDialog

showDialog

public void showDialog()
Show main bUnwarpJ dialog

Overrides:
showDialog in class ij.gui.GenericDialog

itemStateChanged

public void itemStateChanged(java.awt.event.ItemEvent e)
Action to be taken when choices change.

Specified by:
itemStateChanged in interface java.awt.event.ItemListener
Overrides:
itemStateChanged in class ij.gui.GenericDialog
Parameters:
e - item event

applyTransformationToSource

public void applyTransformationToSource(int intervals,
                                        double[][] cx,
                                        double[][] cy)
Apply the transformation defined by the spline coefficients to the source image.

Parameters:
intervals - intervals in the deformation
cx - b-spline X- coefficients
cy - b-spline Y- coefficients

applyRawTransformationToSource

public void applyRawTransformationToSource(double[][] transformation_x,
                                           double[][] transformation_y)
Apply a raw transformation to the source image.

Parameters:
transformation_x - X- mapping
transformation_y - Y- mapping

freeMemory

public void freeMemory()
Free the memory used in the program.


grayImage

public void grayImage(PointHandler ph)
Method to color the area of the mask.

Parameters:
ph - image point handler

isFinalActionLaunched

public boolean isFinalActionLaunched()
Get finalActionLaunched flag.


isClearMaskSet

public boolean isClearMaskSet()
Get clearMask flag.


isSaveTransformationSet

public boolean isSaveTransformationSet()
Get saveTransformation flag.


setSaveTransformation

public void setSaveTransformation(boolean b)
Set saveTransformation flag.


isStopRegistrationSet

public boolean isStopRegistrationSet()
Get stopRegistration flag.


joinThreads

public void joinThreads()
Join the threads for the source and target images.


restoreAll

public void restoreAll()
Restore the initial conditions.


setClearMask

public void setClearMask(boolean val)
Set the clearMask flag.


setStopRegistration

public void setStopRegistration()
Set the stopRegistration flag to true.


getSourceAffineMatrix

public double[][] getSourceAffineMatrix()
Get the source initial affine matrix.


getTargetAffineMatrix

public double[][] getTargetAffineMatrix()
Get the target initial affine matrix.


ungrayImage

public void ungrayImage(PointAction pa)
Ungray image. It restores the original version of the image (without mask).

Parameters:
pa - point action pointer

addImageList

private void addImageList(java.awt.Choice choice)
Add the image list to the list of choices.

Parameters:
choice - list of choices

cancelSource

private void cancelSource()
Close all the variables related to the source image.


cancelTarget

private void cancelTarget()
Close all the variables related to the target image.


computeImagePyramidDepth

private void computeImagePyramidDepth()
Compute the depth of the image resolution pyramid.


createSourceImage

private void createSourceImage(boolean bIsReverse)
Create the source image, i.e. initialize the B-spline model for the source image. The resolution pyramid is not started here, but in startPyramids.

Parameters:
bIsReverse - determines the transformation direction (source-target=TRUE or target-source=FALSE)

createTargetImage

private void createTargetImage()
Create target image.


loadPointRoiAsLandmarks

private void loadPointRoiAsLandmarks()
Load point rois in the source and target images as landmarks.


permuteImages

private void permuteImages(boolean bIsReverse)
Permute the pointer for the target and source images.

Parameters:
bIsReverse - determines the transformation direction (source-target=TRUE or target-source=FALSE)

removePoints

private void removePoints()
Remove the points from the points handlers of the source and target image.


restartModelThreads

private void restartModelThreads(boolean bIsReverse)
Re-launch the threads for the image models of the source and target.

Parameters:
bIsReverse - boolean variable to indicate the use of consistency

setSecondaryPointHandlers

private void setSecondaryPointHandlers()
Set the secondary point handlers.


stopSourceThread

private void stopSourceThread()
Stop the thread of the source image.


stopTargetThread

private void stopTargetThread()
Stop the thread of the target image.


getSourcePh

public PointHandler getSourcePh()
Get source point handler.


getTargetPh

public PointHandler getTargetPh()
Get target point handler.


getSourceMsk

public Mask getSourceMsk()
Get source point handler.


getTargetMsk

public Mask getTargetMsk()
Get target point handler.


setFinalActionLaunched

public void setFinalActionLaunched(boolean b)
Set final action launched flag.


setToolbarAllUp

public void setToolbarAllUp()
Set toolbar tools all up.


repaintToolbar

public void repaintToolbar()
Repaint toolbar.


getTarget

public BSplineModel getTarget()
Get target image model.


getOriginalSourceIP

public ij.process.ImageProcessor getOriginalSourceIP()
Get original source image process.


getOriginalTargetIP

public ij.process.ImageProcessor getOriginalTargetIP()
Get original target image process.


getSource

public BSplineModel getSource()
Get source image model.


isMacroCall

public boolean isMacroCall()
Get the macro flag

Returns:
macro flag