Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
mpibr
scic
ScanImageStitching
Commits
9c3500d8
Commit
9c3500d8
authored
Jan 14, 2022
by
Georgi Tushev
⚽
Browse files
handle odd/even grid
parent
86dc8bc1
Changes
2
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
9c3500d8
...
...
@@ -38,4 +38,21 @@ issues: snake order argument has white space in it
```
Plugins > Macros > Run ... > ScanImageStitching.ijm
```
\ No newline at end of file
```
## Snake Indexing
### Grid: snake by rows
*
Right & Down
*
Left & Down
*
Right & Up
*
Left & Up
### Even Grid
*
Z = odd -> {Right & Down}
*
Z = even && Grid = even -> {Right & Up}
*
Z = even && Grid = odd -> {Left & Up}
ScanImageStitching.ijm
View file @
9c3500d8
...
...
@@ -151,9 +151,15 @@ macro "ScanImageStitching"
for (z = 1; z <= gridZ; z++) {
// set order (this param contains empty space, not a typo!!!)
order="Right & Down ";
if ((z % 2) == 0)
order="Right & Up";
// Z = even -> Right & Down
// Z = odd AND grid = even -> Right & Up
// Z = odd AND grid = odd -> Left & Up
order = "Right & Down ";
if ((z % 2) == 0) {
order = "Left & Up";
if ((gridX % 2) == 0)
order = "Right & Up";
}
// stitch
for (s = 1; s <= countSlices; s++) {
...
...
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