public class Mouse_X extends MouseAdapter implements ij.plugin.filter.PlugInFilter
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, NO_UNDO_RESET, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING
Constructor and Description |
---|
Mouse_X() |
Modifier and Type | Method and Description |
---|---|
void |
createCroppedImage(int width,
int height,
double[][] cnet_map)
Creates the rotated image by mapping the values located in
cnet_map to a new rectangular image.
|
void |
createCroppedImageRGB(int width,
int height,
double[][] cnet_map)
RGB version that interpolates each pixel of the int array
separately, this uses bi-linear interpolation...I hope
|
void |
createOvula()
This sizes out the rectangle and then gets the pixel values in the image then plots them onto a new image stack
|
void |
mouseClicked(MouseEvent evt) |
void |
mouseMoved(MouseEvent evt)
During 'state 3' we draw the bounding rectangle
to show the area that will be cropped and rotated.
|
void |
run(ij.process.ImageProcessor ip)
This will create a new image plus to draw on so that you can
click on the canvas to select the four points necessary
|
int |
setup(String arg,
ij.ImagePlus imp) |
mouseDragged, mouseEntered, mouseExited, mousePressed, mouseReleased, mouseWheelMoved
public int setup(String arg, ij.ImagePlus imp)
setup
in interface ij.plugin.filter.PlugInFilter
public void run(ij.process.ImageProcessor ip)
run
in interface ij.plugin.filter.PlugInFilter
public void mouseClicked(MouseEvent evt)
mouseClicked
in interface MouseListener
mouseClicked
in class MouseAdapter
public void mouseMoved(MouseEvent evt)
mouseMoved
in interface MouseMotionListener
mouseMoved
in class MouseAdapter
public void createOvula()
public void createCroppedImage(int width, int height, double[][] cnet_map)
width
- width of new imageheight
- of new imagecnet_map
- coordinate map.public void createCroppedImageRGB(int width, int height, double[][] cnet_map)
width
- width of new imageheight
- of new imagecnet_map
- coordinate map.Copyright © 2013–2022 Francis Crick Institute. All rights reserved.