mpicbg.ij
Class InteractiveInvertibleCoordinateTransform<M extends Model<M> & InvertibleCoordinateTransform>

java.lang.Object
  extended by mpicbg.ij.InteractiveInvertibleCoordinateTransform<M>
Type Parameters:
M - the transformation model to be used
All Implemented Interfaces:
ImageListener, PlugIn, KeyListener, MouseListener, MouseMotionListener, EventListener
Direct Known Subclasses:
Transform_Affine, Transform_Perspective, Transform_RegularizedAffine, Transform_Rigid, Transform_Similarity

public abstract class InteractiveInvertibleCoordinateTransform<M extends Model<M> & InvertibleCoordinateTransform>
extends Object
implements PlugIn, MouseListener, MouseMotionListener, KeyListener, ImageListener

An interactive parent class for point based image deformation.

Version:
0.2b
Author:
Stephan Saalfeld

Nested Class Summary
static class InteractiveInvertibleCoordinateTransform.Tuple
           
 
Field Summary
protected  PointRoi handles
           
protected  ImagePlus imp
           
protected  ArrayList<PointMatch> m
           
protected  InverseTransformMapping<M> mapping
           
protected  Point[] p
           
protected  Point[] q
           
protected  int targetIndex
           
protected  ArrayList<InteractiveInvertibleCoordinateTransform.Tuple> tuples
           
 
Constructor Summary
InteractiveInvertibleCoordinateTransform()
           
 
Method Summary
 void imageClosed(ImagePlus imp2)
           
 void imageOpened(ImagePlus imp2)
           
 void imageUpdated(ImagePlus imp2)
           
 void keyPressed(KeyEvent e)
           
 void keyReleased(KeyEvent e)
           
 void keyTyped(KeyEvent e)
           
static String modifiers(int flags)
           
 void mouseClicked(MouseEvent e)
           
 void mouseDragged(MouseEvent e)
           
 void mouseEntered(MouseEvent e)
           
 void mouseExited(MouseEvent e)
           
 void mouseMoved(MouseEvent e)
           
 void mousePressed(MouseEvent e)
           
 void mouseReleased(MouseEvent e)
           
protected abstract  M myModel()
           
protected  void onReturn()
           
 void run(String arg)
           
protected abstract  void setHandles()
           
protected abstract  void updateHandles(int x, int y)
           
protected static void useRoi(float[] x, float[] y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapping

protected InverseTransformMapping<M extends Model<M> & InvertibleCoordinateTransform> mapping

imp

protected ImagePlus imp

tuples

protected final ArrayList<InteractiveInvertibleCoordinateTransform.Tuple> tuples

p

protected Point[] p

q

protected Point[] q

m

protected final ArrayList<PointMatch> m

handles

protected PointRoi handles

targetIndex

protected int targetIndex
Constructor Detail

InteractiveInvertibleCoordinateTransform

public InteractiveInvertibleCoordinateTransform()
Method Detail

useRoi

protected static final void useRoi(float[] x,
                                   float[] y)

myModel

protected abstract M myModel()

setHandles

protected abstract void setHandles()

updateHandles

protected abstract void updateHandles(int x,
                                      int y)

onReturn

protected void onReturn()

run

public void run(String arg)
Specified by:
run in interface PlugIn

imageClosed

public void imageClosed(ImagePlus imp2)
Specified by:
imageClosed in interface ImageListener

imageOpened

public void imageOpened(ImagePlus imp2)
Specified by:
imageOpened in interface ImageListener

imageUpdated

public void imageUpdated(ImagePlus imp2)
Specified by:
imageUpdated in interface ImageListener

keyPressed

public void keyPressed(KeyEvent e)
Specified by:
keyPressed in interface KeyListener

keyReleased

public void keyReleased(KeyEvent e)
Specified by:
keyReleased in interface KeyListener

keyTyped

public void keyTyped(KeyEvent e)
Specified by:
keyTyped in interface KeyListener

mousePressed

public void mousePressed(MouseEvent e)
Specified by:
mousePressed in interface MouseListener

mouseReleased

public void mouseReleased(MouseEvent e)
Specified by:
mouseReleased in interface MouseListener

mouseExited

public void mouseExited(MouseEvent e)
Specified by:
mouseExited in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent e)
Specified by:
mouseClicked in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent e)
Specified by:
mouseEntered in interface MouseListener

mouseDragged

public void mouseDragged(MouseEvent e)
Specified by:
mouseDragged in interface MouseMotionListener

mouseMoved

public void mouseMoved(MouseEvent e)
Specified by:
mouseMoved in interface MouseMotionListener

modifiers

public static String modifiers(int flags)


Copyright © 2007-2016 Fiji. All Rights Reserved.