public class ImgRegistration
extends java.lang.Object
implements ij.plugin.PlugIn
Modifier and Type | Field and Description |
---|---|
boolean |
autoSaveParams |
ArrayDisplay |
resultAD |
Constructor and Description |
---|
ImgRegistration() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doreg(ij.ImagePlus firstset,
ij.ImagePlus secondset) |
void |
doreg(ij.ImagePlus firstset,
short[][][] firstimg,
ij.ImagePlus secondset,
short[][][] secimg) |
void |
doreg(ij.ImagePlus firstset,
short[][][] firstimg,
Rectangle3D firstCroppedRect,
ij.ImagePlus secondset,
short[][][] secimg,
Rectangle3D secondCroppedRect) |
float |
getDrot() |
float |
getDscale() |
float |
getHrot() |
float |
getHscale() |
float[] |
getInvTransformedPtCoords_px(float d,
float w,
float h) |
float[] |
getInvTransformedPtCoords_px(int d,
int w,
int h)
inverse-transform the voxel dwh into the deformed coord system and return the sub-voxel coords dwh.
|
float[] |
getTransformedPtCoords_mm(float d,
float w,
float h) |
float[] |
getTransformedPtCoords_mm(int d,
int w,
int h)
transform the voxel dwh into the deformed coord system and return the mm coords in xyz order.
|
float[] |
getTransformedPtCoords_px(float d,
float w,
float h) |
float[] |
getTransformedPtCoords_px(int d,
int w,
int h)
transform the voxel dwh into the deformed coord system and return the sub-voxel coords dwh.
|
float |
getWrot() |
float |
getWscale() |
float |
getXshift() |
float |
getYshift() |
float |
getZshift() |
void |
run(java.lang.String arg)
This method is called when the plugin is loaded.
|
void |
showAbout() |
public ArrayDisplay resultAD
public boolean autoSaveParams
public void showAbout()
public void doreg(ij.ImagePlus firstset, ij.ImagePlus secondset)
public void doreg(ij.ImagePlus firstset, short[][][] firstimg, ij.ImagePlus secondset, short[][][] secimg)
public void doreg(ij.ImagePlus firstset, short[][][] firstimg, Rectangle3D firstCroppedRect, ij.ImagePlus secondset, short[][][] secimg, Rectangle3D secondCroppedRect)
public void run(java.lang.String arg)
ij.plugin.PlugIn
run
in interface ij.plugin.PlugIn
public float getXshift()
public float getYshift()
public float getZshift()
public float getWrot()
public float getHrot()
public float getDrot()
public float getDscale()
public float getWscale()
public float getHscale()
public float[] getTransformedPtCoords_px(int d, int w, int h)
d,w,h
- voxel coords to be transformed according to already computed registration parameterspublic float[] getTransformedPtCoords_px(float d, float w, float h)
public float[] getTransformedPtCoords_mm(int d, int w, int h)
d,w,h
- voxel coords to be transformed according to already computed registration parameterspublic float[] getTransformedPtCoords_mm(float d, float w, float h)
public float[] getInvTransformedPtCoords_px(int d, int w, int h)
d,w,h
- voxel coords to be transformed according to already computed registration parameterspublic float[] getInvTransformedPtCoords_px(float d, float w, float h)
public void destroy()