Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IJ-macros
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marius Hintsche
IJ-macros
Commits
a4490b33
Commit
a4490b33
authored
9 years ago
by
Marius Hintsche
Browse files
Options
Downloads
Patches
Plain Diff
remove old revision
parent
7c8c67e4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
FindStackMaxima.ijm
+0
-39
0 additions, 39 deletions
FindStackMaxima.ijm
with
0 additions
and
39 deletions
FindStackMaxima.ijm
deleted
100644 → 0
+
0
−
39
View file @
7c8c67e4
// Find Stack Maxima
//
// This macro runs the Process>Binary>Find Maxima
// command on all the images in a stack.
Dialog.create("Find Maxima");
Dialog.addNumber("Noise Tolerance:", 5);
Dialog.addChoice("Output Type:", newArray("Single Points", "Maxima Within Tolerance", "Segmented Particles", "Count"));
Dialog.addCheckbox("Exclude Edge Maxima", false);
Dialog.addCheckbox("Light Background", false);
Dialog.show();
tolerance = Dialog.getNumber();
type = Dialog.getChoice();
exclude = Dialog.getCheckbox();
light = Dialog.getCheckbox();
options = "";
if (exclude) options = options + " exclude";
if (light) options = options + " light";
setBatchMode(true);
input = getImageID();
n = nSlices();
for (i=1; i<=n; i++) {
showProgress(i/n);
selectImage(input);
setSlice(i);
run("Find Maxima...", "noise="+ tolerance +" output=["+type+"]"+options);
if (i==1)
output = getImageID();
else if (type!="Count") {
run("Select All");
run("Copy");
close();
selectImage(output);
run("Add Slice");
run("Paste");
}
}
run("Select None");
setBatchMode(false);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment