|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectij3d.align.Align2D
public class Align2D
Description of the Class
Field Summary | |
---|---|
static int |
FILL_AVG
Description of the Field |
static int |
FILL_NOISE
Description of the Field |
static int |
FILL_NONE
Description of the Field |
protected ij.gui.Roi |
selection
Description of the Field |
protected ij3d.align.Align2DData[] |
serie
Description of the Field |
protected boolean |
show
Description of the Field |
protected int |
sizex
Description of the Field |
protected int |
sizey
Description of the Field |
protected int |
sizez
Description of the Field |
Constructor Summary | |
---|---|
Align2D(Align2D original)
Constructor for the Align2D object |
|
Align2D(ij.ImageStack stack)
Constructor for the Align2D object |
Method Summary | |
---|---|
void |
addRotation(int img,
double angleDeg)
Adds a feature to the Rotation attribute of the Align2D object |
void |
addTranslation(int img,
int tx,
int ty)
Adds a feature to the Translation attribute of the Align2D object |
void |
align2D(ij.process.ImageProcessor img1,
int index2,
double rangeangle,
double incrementangle)
Description of the Method |
ij.process.ImageProcessor |
average(boolean[] using)
average images using a selection |
double |
average(int nbimg)
Description of the Method |
TabUtil[] |
basicTranslation(TabUtil[] points)
Description of the Method |
TabUtil[] |
centerFeatures(TabUtil[] points)
Description of the Method |
void |
changeImage(int img,
ij.process.ImageProcessor ip)
Description of the Method |
void |
changeStack(ij.ImageStack pile)
changes the ImageStack on which alignment is performed |
void |
computeRotation(boolean polar,
double range,
double angleprecision)
compute the rotation for the images. the rotations will be computed between 2 consecutive images |
void |
computeRotation(double range,
double angleprecision)
compute the rotation for the images. the rotations will be computed between 2 consecutive images in Fourier Space |
static double |
computeRotation2Images(ij.process.ImageProcessor img1,
ij.process.ImageProcessor img2,
double range,
double angleprecision)
compute the rotation between 2 images in space domain the second image is rotated in the allowed range and the rotation obtaining the best correlation coefficient is returned |
static double |
computeRotation2ImagesFHT(ij.process.ImageProcessor image1,
ij.process.ImageProcessor image2,
double range,
double angleprecision)
compute the rotation between 2 images using the Fourier Transform. |
void |
computeRotationOld(double range,
double angleprecision)
Description of the Method |
static double |
correlation(ij.process.ImageProcessor img1,
ij.process.ImageProcessor img2,
double rayonmaxx,
double rayonmaxy)
compute the correlation between 2 images |
static Pixel3D |
crossCorrelation(ij.process.ImageProcessor img1,
ij.process.ImageProcessor img2)
computes the crosscorrelation between 2 images using FFT |
static Pixel3D |
crossCorrelation(ij.process.ImageProcessor img1,
ij.process.ImageProcessor img2,
int maxX,
int maxY)
compute the crosscorrelation between 2 images with a maximum translation of (maxX,maxY) |
void |
deleteImage(int image)
Description of the Method |
ij.process.ImageProcessor |
doRFA(double rangeangle,
double incrementangle)
align all images using RFA procedure (Penczek 1992) |
ij.process.ImageProcessor |
getImage(int img)
Gets the image attribute of the Align2D object |
ij.process.ImageProcessor |
getImage(int img,
boolean applytransform)
Gets the image attribute of the Align2D object |
ij.process.ImageProcessor |
getImage(int img,
boolean applytransform,
int fill)
Gets the image attribute of the Align2D object |
ij.ImageStack |
getInStack(ij.ImageStack stack,
boolean applytransform,
int fill)
gets the images on which the alignment is performed in the given stack the images could be with or without alignement beware there is always a duplication of the images (even if not applying alignment) |
Align2D |
getPart(int indexstart,
int increment,
int nbimages)
Gets the part attribute of the Align2D object |
float |
getPixelValue(int img,
int x,
int y)
Gets the pixelValue attribute of the Align2D object |
ij.gui.Roi |
getRoi()
Gets the roi attribute of the Align2D object |
double |
getRotation(int img)
Gets the rotation attribute of the Align2D object |
ij.ImageStack |
getStack(boolean applytransform,
int fill)
gets the images on which the alignment is performed the images could be with or without alignement beware there is always a duplication of the images (even if not applying alignment) |
int |
getTx(int img)
Gets the translation on X Axis for an image |
int |
getTy(int img)
Gets the translation on Y Axis for an image |
ij.process.ImageProcessor |
insert2(ij.process.ImageProcessor G,
int rayon,
boolean up)
Description of the Method |
TabUtil[] |
meanSquare(TabUtil[] points)
Description of the Method |
void |
reset()
Description of the Method |
void |
setRoi(ij.gui.Roi sel)
Sets the roi attribute of the Align2D object |
void |
setRotation(int img,
double angleDeg)
Sets the rotation attribute of the Align2D object |
void |
setStack(ij.ImageStack pile)
Sets the images to work with |
void |
setTranslation(int img,
int tx,
int ty)
Sets the translation attribute of the Align2D object |
void |
setTx(int img,
int value)
Gets the translation on X Axis for an image |
void |
setTy(int img,
int value)
Gets the translation on Y Axis for an image |
void |
showInIJ(boolean value)
shows progress of computing in the status bar of ImageJ |
double |
sigma(int img,
double avg)
Description of the Method |
static ij.process.ImageProcessor |
toPolar(ij.process.ImageProcessor img,
double range,
double angleprecision)
convert image to the polar coordinate system all angles are not taken, only those between +/- range |
void |
XCorr()
crosscorrelation of all images |
TabUtil[] |
XCorr(TabUtil[] points)
Description of the Method |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ij3d.align.Align2DData[] serie
protected boolean show
protected int sizex
protected int sizey
protected int sizez
protected ij.gui.Roi selection
public static int FILL_NONE
public static int FILL_AVG
public static int FILL_NOISE
Constructor Detail |
---|
public Align2D(ij.ImageStack stack)
stack
- the stack to registerpublic Align2D(Align2D original)
original
- the object to copy beware the images are the same for the 2
objects there is no duplicationMethod Detail |
---|
public void showInIJ(boolean value)
value
- true for showing (by default in constructor) false otherwisepublic void setStack(ij.ImageStack pile)
pile
- The new ImageStack on which perform alignmentpublic void changeStack(ij.ImageStack pile)
pile
- the new ImageStack on which the alignment is computed beware
the previous alignment is not deletedpublic ij.ImageStack getStack(boolean applytransform, int fill)
applytransform
- true for registered versionfill
- Description of the Parameter
public ij.ImageStack getInStack(ij.ImageStack stack, boolean applytransform, int fill)
stack
- stack in which inserting the aligned imagesapplytransform
- true for registered versionfill
- Description of the Parameter
public ij.process.ImageProcessor getImage(int img, boolean applytransform)
img
- Description of the Parameterapplytransform
- Description of the Parameter
public ij.process.ImageProcessor getImage(int img, boolean applytransform, int fill)
img
- Description of the Parameterapplytransform
- Description of the Parameterfill
- Description of the Parameter
public ij.process.ImageProcessor getImage(int img)
img
- Description of the Parameter
public void changeImage(int img, ij.process.ImageProcessor ip)
img
- Description of the Parameterip
- Description of the Parameterpublic float getPixelValue(int img, int x, int y)
img
- Description of the Parameterx
- Description of the Parametery
- Description of the Parameter
public Align2D getPart(int indexstart, int increment, int nbimages)
indexstart
- Description of the Parameternbimages
- Description of the Parameterincrement
- Description of the Parameter
public void setRoi(ij.gui.Roi sel)
sel
- The new roi valuepublic ij.gui.Roi getRoi()
public void reset()
public void deleteImage(int image)
image
- Description of the Parameterpublic int getTx(int img)
img
- image number in the serie ... be careful start at 0 not 1
public int getTy(int img)
img
- image number in the serie ... be careful start at 0 not 1
public double getRotation(int img)
img
- Description of the Parameter
public void setTx(int img, int value)
img
- image number in the serie ... be careful start at 0 not 1value
- The new tx valuepublic void setTy(int img, int value)
img
- image number in the serie ... be careful start at 0 not 1value
- The new ty valuepublic void setTranslation(int img, int tx, int ty)
img
- The new translation valuetx
- The new translation valuety
- The new translation valuepublic void addTranslation(int img, int tx, int ty)
img
- The feature to be added to the Translation attributetx
- The feature to be added to the Translation attributety
- The feature to be added to the Translation attributepublic void setRotation(int img, double angleDeg)
img
- The new rotation valueangleDeg
- The new rotation valuepublic void addRotation(int img, double angleDeg)
img
- The feature to be added to the Rotation attributeangleDeg
- The feature to be added to the Rotation attributepublic TabUtil[] XCorr(TabUtil[] points)
points
- Description of the Parameter
public void XCorr()
public ij.process.ImageProcessor insert2(ij.process.ImageProcessor G, int rayon, boolean up)
G
- Description of the Parameterrayon
- Description of the Parameterup
- Description of the Parameter
public TabUtil[] meanSquare(TabUtil[] points)
points
- Description of the Parameter
public TabUtil[] basicTranslation(TabUtil[] points)
points
- Description of the Parameter
public TabUtil[] centerFeatures(TabUtil[] points)
points
- Description of the Parameter
public double average(int nbimg)
nbimg
- Description of the Parameter
public double sigma(int img, double avg)
avg
- Description of the Parameterimg
- Description of the Parameter
public static Pixel3D crossCorrelation(ij.process.ImageProcessor img1, ij.process.ImageProcessor img2)
img1
- first image (reference)img2
- second image
public static Pixel3D crossCorrelation(ij.process.ImageProcessor img1, ij.process.ImageProcessor img2, int maxX, int maxY)
img1
- reference imageimg2
- image to translatemaxX
- maximum translation on X axismaxY
- maximum translation on Y axis
public static double computeRotation2ImagesFHT(ij.process.ImageProcessor image1, ij.process.ImageProcessor image2, double range, double angleprecision)
image1
- reference imageimage2
- image to rotaterange
- the rotation computed will be between [-range,+range[angleprecision
- the precision wanted (1 for degrees precision, 0.1
for decidegrees precision)
public static ij.process.ImageProcessor toPolar(ij.process.ImageProcessor img, double range, double angleprecision)
img
- image to convert (not modified)range
- the rotation taken for new image will be between
[-range,+range[angleprecision
- the precision wanted (1 for degrees precision, 0.1
for decidegrees precision)
public static double computeRotation2Images(ij.process.ImageProcessor img1, ij.process.ImageProcessor img2, double range, double angleprecision)
img1
- Description of the Parameterimg2
- Description of the Parameterrange
- the rotation computed will be between [-range,+range[angleprecision
- the precision wanted (1 for degrees precision, 0.1
for decidegrees precision)
public void computeRotation(double range, double angleprecision)
range
- the rotations computed will be between
[-range,+range[angleprecision
- the precision wanted (1 for degrees precision, 0.1
for decidegrees precision)public void computeRotation(boolean polar, double range, double angleprecision)
polar
- true if computation in fourier space false for
computation in real spacerange
- the rotations computed will be between
[-range,+range[angleprecision
- the precision wanted (1 for degrees precision, 0.1
for decidegrees precision)public void computeRotationOld(double range, double angleprecision)
range
- Description of the Parameterangleprecision
- Description of the Parameterpublic static double correlation(ij.process.ImageProcessor img1, ij.process.ImageProcessor img2, double rayonmaxx, double rayonmaxy)
img1
- first imageimg2
- second imagerayonmaxx
- maximum radius on X axis to take pixels into accountrayonmaxy
- maximum radius on Y axis to take pixels into account
public ij.process.ImageProcessor average(boolean[] using)
using
- array containing true for all images that are added to the
average
public ij.process.ImageProcessor doRFA(double rangeangle, double incrementangle)
rangeangle
- Description of the Parameterincrementangle
- Description of the Parameter
public void align2D(ij.process.ImageProcessor img1, int index2, double rangeangle, double incrementangle)
img1
- Description of the Parameterindex2
- Description of the Parameterrangeangle
- Description of the Parameterincrementangle
- Description of the Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |