-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
157 lines (143 loc) · 4.85 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
Install the Radial Profile plugin before running these macros. This plugin is available at:
https://imagej.nih.gov/ij/plugins/radial-profile.html
If you have trouble running any of these macros, first try updating ImageJ/Fiji.
Some of the functions used in the macros are only available in newer versions.
If you have questions or suggestions for improvements, please email:
Benjamin Bammes, PhD
Director of Research & Development
Direct Electron
To have ImageJ/Fiji load these macros into the Plugins/Macros menu automatically at startup,
copy all macros into the Fiji.app\macros folder and then paste the following code in the
Fiji.app\macros\StartupMacros.fiji.ijm file:
// Start: Direct Electron section
// Add this section before the "About Startup Macros..." line
// in StartupMacros.fiji.ijm
macro "About Direct Electron Macros..." {
title = "About Direct Electron Macros";
text1 = "Direct Electron (directelectron.com) is the technology leader\n"
+ "in direct detection cameras for electron microscopy and other\n"
+ "high-performance scientific cameras.";
text2 = "These macros are provided to assist with common image\n"
+ "processing, camera characterization, and calibration tasks in\n"
+ "ImageJ. These macros are freely available for anyone interested\n"
+ "(regardless of whether they use Direct Electron's cameras).";
text3 = "If you have suggestions or make any changes to these macros,\n"
+ "we kindly ask that you share them with us for the benefit of\n"
+ "the broader scientific community.";
text4 = "Updates to these macros are available on Direct Electron's\n"
+ "GitHub page (https://github.com/directelectron/imagej-macros).";
Dialog.createNonBlocking(title);
Dialog.addMessage(text1);
Dialog.addMessage(text2);
Dialog.addMessage(text3);
Dialog.addMessage(text4);
Dialog.show();
}
macro "Coincidence Loss Calculator..." {
if (File.exists("DE_CoincLoss.ijm")) {
runMacro("DE_CoincLoss.ijm");
}
else {
title = "Macro Not Found";
text1 = "DE_CoincLoss.ijm was not found in the macro folder.";
text2 = "Download the macro from Direct Electron's GitHub page\n"
+ "(https://github.com/directelectron/imagej-macros).";
Dialog.create(title);
Dialog.addMessage(text1);
Dialog.addMessage(text2);
Dialog.show();
}
}
macro "DQE Curve Calculator..." {
if (File.exists("DE_DQECurve.ijm")) {
runMacro("DE_DQECurve.ijm");
}
else {
title = "Macro Not Found";
text1 = "DE_DQECurve.ijm was not found in the macro folder.";
text2 = "Download the macro from Direct Electron's GitHub page\n"
+ "(https://github.com/directelectron/imagej-macros).";
Dialog.create(title);
Dialog.addMessage(text1);
Dialog.addMessage(text2);
Dialog.show();
}
}
macro "DQE0 Calculator..." {
if (File.exists("DE_DQE0.ijm")) {
runMacro("DE_DQE0.ijm");
}
else {
title = "Macro Not Found";
text1 = "DE_DQE0.ijm was not found in the macro folder.";
text2 = "Download the macro from Direct Electron's GitHub page\n"
+ "(https://github.com/directelectron/imagej-macros).";
Dialog.create(title);
Dialog.addMessage(text1);
Dialog.addMessage(text2);
Dialog.show();
}
}
macro "False Positives Calculator..." {
if (File.exists("DE_FalsePos.ijm")) {
runMacro("DE_FalsePos.ijm");
}
else {
title = "Macro Not Found";
text1 = "DE_FalsePos.ijm was not found in the macro folder.";
text2 = "Download the macro from Direct Electron's GitHub page\n"
+ "(https://github.com/directelectron/imagej-macros).";
Dialog.create(title);
Dialog.addMessage(text1);
Dialog.addMessage(text2);
Dialog.show();
}
}
macro "Magnification Calibration..." {
if (File.exists("DE_MagCal.ijm")) {
runMacro("DE_MagCal.ijm");
}
else {
title = "Macro Not Found";
text1 = "DE_MagCal.ijm was not found in the macro folder.";
text2 = "Download the macro from Direct Electron's GitHub page\n"
+ "(https://github.com/directelectron/imagej-macros).";
Dialog.create(title);
Dialog.addMessage(text1);
Dialog.addMessage(text2);
Dialog.show();
}
}
macro "MTF Calculator (from ASI)..." {
if (File.exists("ASI_MTF.ijm")) {
runMacro("ASI_MTF.ijm");
}
else {
title = "Macro Not Found";
text1 = "ASI_MTF.ijm was not found in the macro folder.";
text2 = "Download the macro from Erik Maddox's GitHub page\n"
+ "(https://github.com/emx77/ASI_MTF).";
Dialog.create(title);
Dialog.addMessage(text1);
Dialog.addMessage(text2);
Dialog.show();
}
}
macro "NNPS Calculator..." {
if (File.exists("DE_NNPS.ijm")) {
runMacro("DE_NNPS.ijm");
}
else {
title = "Macro Not Found";
text1 = "DE_NNPS.ijm was not found in the macro folder.";
text2 = "Download the macro from Direct Electron's GitHub page\n"
+ "(https://github.com/directelectron/imagej-macros).";
Dialog.create(title);
Dialog.addMessage(text1);
Dialog.addMessage(text2);
Dialog.show();
}
}
macro "-" {} //menu divider
// End: Direct Electron section