Microstructural studies using X-ray diffraction http://merkel.texture.rocks/>RDX/ |
|
Texture
In works Memo |
Memo /
Id 06 MosaicThis tutorial is part of the ID06 memo Measure sample length from multiple radiographsIn Fit2d
Macro for reconstructing the full imageThe following file can be saved in a macro, save it as Parameters to change absolutely:
How to calculate the translation between images
Parameters you can change, if you want
%!*\ Moving into image processing
EXIT
%!*\
%!*\ CAMERA XFOUR = 0.9375 micron pixels
%!*\ Nope, it is 1.0399 micron/pixel
%!*\ Go into keyboard interface to create variables
%!*\ You should change those parameters
%!*\ take_photo 2 -2 13 0.1
%!*\ works with version 17.002
KEYBOARD INTERFACE
VARIABLE
#FIRST
STRING VALUE
%!*\ CHANGE THIS: Path and name of first image
Y:\photo\MGO_01\MGO_01_0532.edf
VARIABLE
#LAST
STRING VALUE
%!*\ CHANGE THIS: Path and name of last image
Y:\photo\MGO_01\MGO_01_0545.edf
VARIABLE
#SAVE
STRING VALUE
%!*\ CHANGE THIS: Path and name where to save composite image
Y:\photo\MGO_01\MGO_01_0532_0545.tif
VARIABLE
#TOPPIX
FLOATING POINT (REAL) VALUE
%!*\ CHANGE THIS: Bottom pixel for cropping, was 214, was 314, was 258 was 635
650.
VARIABLE
#LEFTPIX
FLOATING POINT (REAL) VALUE
%!*\ CHANGE THIS: Left pixel for cropping, was 414
400.
VARIABLE
#RIGHTPIX
FLOATING POINT (REAL) VALUE
%!*\ CHANGE THIS: Right pixel for cropping, was 1160
1100.
VARIABLE
#TRANSLATION
FLOATING POINT (REAL) VALUE
%!*\ CHANGE THIS: Vertical translation between images, in pixels, was 473.6 9 int, was -298.205
%!*\ Number of pixels betwen each pixel: (total size in mm / nb intervals) / 1.0399
-295.9
%!*\
%!*\
%!*\ You should have nothing to touch below
%!*\
%!*\ Calculating top pixel
%!*\
CALCULATOR
#TOPPIX
#TRANSLATION
+
VARIABLE
#BOTTOMPIX
EXIT
%!*\
%!*\ Exit keyboard, enter file series and calculate composite
%!*\
%!*\
%!*\
%!*\
%!*\
EXIT
FILE SERIES
COMPOSITE
#FIRST
YES
#LAST
1
SUBTRACT
NO
ROI
YES
NO. PER ROW
1
RE-BIN NO.
1
O.K.
ZOOM IN
2
#LEFTPIX
#BOTTOMPIX
#RIGHTPIX
#TOPPIX
EXIT
EXIT
IMAGE PROCESSING (GENERAL)
GEOMETRIC
FLIP
NO
YES
EXIT
OUTPUT
TIFF 8 BIT
NO
#SAVE
0.0
3239
%!*\
%!*\ The composite image should be on the screen
%!*\
|