Description Usage Arguments Value Examples
Sometimes, a slight shift exists between two images of the same sample. This function allows them to be superimposed. The shift can be determined with a vector by entering its coordinates; or interactively by clicking on a specific point on a first image, and its corresponding point on the second image)
1 | translation(dtt,dtc=NULL,x,y,interact="none",dtt.lim=NULL,dtc.lim=NULL,n.around=c(5,5))
|
dtt |
image matrix (for 512*512 image, the dimensions of this matrix are 512*512) to translate |
dtc |
potential image matrix (for 512*512 image, the dimensions of this matrix are 512*512) on which the dtt is superimposed |
x |
If interactive is FALSE, abscisse of vector of translation |
y |
If interactive is FALSE, ordinate of vector of translation |
interact |
if TRUE, dtt is displayed as an image, and the user has to select one point on it. Then, dtc is displayed as an image and the user has to select the related same point on it. |
dtt.lim |
limits of the scale of dtt (to change when the image is not contrasted enough to detect specific points) |
dtc.lim |
limits of the scale of dtc (to change when the image is not contrasted enough to detect specific points) |
n.around |
Tests every translation in a neighborhood of n.around[1] in x and n.around[2] of y (clicked by the user), and select the translation that maximizes the number of not TRUE common to dtc and dtt. It requires that both dtc and dtt are boolean matrices. |
The function returns a list containing the translated data ("data") and the vector of translation ("translation")
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.