Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SHARMA VAIBHAV
Thesis Vaibhav - appendix
Commits
680f07b8
Commit
680f07b8
authored
Oct 13, 2021
by
SHARMA VAIBHAV
Browse files
Upload New File
parent
b7347d75
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dr_analysis_Automated.ijm
0 → 100644
View file @
680f07b8
function action(input, output, filename) {
open(input + filename);
run("Duplicate...", "duplicate");
setMinAndMax(1, 2);
run("Apply LUT", "stack");
setThreshold(2, 255);
setOption("BlackBackground", true);
run("Convert to Mask", "method=Default background=Dark black");
saveAs("AVI", output + filename);
close();
for (i = 0; i < nSlices; i++) {
run("Create Selection");
run("Fit Ellipse");
//setTool("dropper");
setForegroundColor(0, 0, 0);
setForegroundColor(0, 0, 0);
run("Fill", "slice");
run("Measure");
run("Next Slice [>]");}
selectWindow("Results");
saveAs("Results", path + name + "result.csv");
run("Clear Results");
close("*");
}
input = getDirectory("input Directory");
output = getDirectory("output directory");
list = getFileList(input);
for (i = 0; i < list.length; i++)
action(input, output, list[i]);
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment