Direkt zum InhaltDirekt zur SucheDirekt zur Navigation
▼ Zielgruppen ▼

Humboldt-Universität zu Berlin - Faculty of Mathematics and Natural Sciences - Strukturforschung / Elektronenmikroskopie

readImage.txt

image img
number dx,dy,highVoltage,t,cFlag
string filename, comment



T_setverbose(0)

if (OpenDialog(filename)) {


if (right(fileName,3) == "dm3") {
img := openImage(fileName);
showimage(img);
}
if (right(fileName,3) == "ima") {
img := T_readIma(filename,dx,dy,highVoltage);
img.setScale(dx,dy);
img.setUnitString("nm");
img.SetNumberNote("Microscope Info:Voltage",highVoltage);
img.setname(fileName);
showimage(img);
}
if (right(fileName,3) == "img") {
compleximage imgc := T_readImg(filename,t,dx,dy,cFlag,comment);
if (cFlag) {
imgc.setscale(0.1*dx,0.1*dy);
imgc.setunitstring("nm");
imgc.setname(fileName);
showimage(imgc);
}
else {
img = real(imgc);
img.setscale(0.1*dx,0.1*dy);
img.setunitstring("nm");
img.setname(fileName);
showimage(img);
}
}

}