mpicbg.ij
Class InteractiveMapping

java.lang.Object
  extended by mpicbg.ij.InteractiveMapping
Type Parameters:
M - the transformation model to be used
All Implemented Interfaces:
ImageListener, PlugIn, KeyListener, MouseListener, MouseMotionListener, EventListener
Direct Known Subclasses:
Transform_MovingLeastSquaresMesh

public abstract class InteractiveMapping
extends Object
implements PlugIn, MouseListener, MouseMotionListener, KeyListener, ImageListener

An interactive parent class for point based image deformation.

Version:
0.2b
Author:
Stephan Saalfeld

Field Summary
protected  PointRoi handles
           
protected  ArrayList<Point> hooks
           
protected  ImagePlus imp
           
protected static boolean interpolate
           
protected  ArrayList<PointMatch> m
           
protected  Mapping<?> mapping
           
protected  Point[] p
           
protected  MappingThread painter
           
protected  AtomicBoolean pleaseRepaint
           
protected  Point[] q
           
protected static boolean showIllustration
           
protected static boolean showPreview
           
protected  ImageProcessor source
           
protected  ImageProcessor target
           
protected  int targetIndex
           
 
Constructor Summary
InteractiveMapping()
           
 
Method Summary
protected abstract  void addHandle(int x, int y)
           
protected abstract  void createMapping()
           
 void imageClosed(ImagePlus impl)
           
 void imageOpened(ImagePlus impl)
           
 void imageUpdated(ImagePlus impl)
           
 void init()
           
 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)
           
 void run(String arg)
           
protected abstract  void updateHandles(int x, int y)
           
protected abstract  void updateIllustration()
           
protected abstract  void updateMapping()
           
protected  void updateRoi()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imp

protected ImagePlus imp

target

protected ImageProcessor target

source

protected ImageProcessor source

p

protected Point[] p

q

protected Point[] q

m

protected final ArrayList<PointMatch> m

handles

protected PointRoi handles

hooks

protected final ArrayList<Point> hooks

mapping

protected Mapping<?> mapping

painter

protected MappingThread painter

pleaseRepaint

protected final AtomicBoolean pleaseRepaint

showIllustration

protected static boolean showIllustration

showPreview

protected static boolean showPreview

targetIndex

protected int targetIndex

interpolate

protected static boolean interpolate
Constructor Detail

InteractiveMapping

public InteractiveMapping()
Method Detail

updateHandles

protected abstract void updateHandles(int x,
                                      int y)

init

public void init()

createMapping

protected abstract void createMapping()

updateMapping

protected abstract void updateMapping()
                               throws NotEnoughDataPointsException,
                                      IllDefinedDataPointsException
Throws:
NotEnoughDataPointsException
IllDefinedDataPointsException

addHandle

protected abstract void addHandle(int x,
                                  int y)

updateIllustration

protected abstract void updateIllustration()

run

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

updateRoi

protected final void updateRoi()

imageClosed

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

imageOpened

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

imageUpdated

public void imageUpdated(ImagePlus impl)
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.