Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
software:fiji_mvr [2015/06/09 22:01] Jon Daniels |
software:fiji_mvr [2019/07/16 20:50] Jon Daniels added script |
||
---|---|---|---|
Line 5: | Line 5: | ||
See homepage at [[http:// | See homepage at [[http:// | ||
- | As of April 2015 the MVR plugin allows for direct importing of Micro-Manager datasets, rendering | + | As of April 2015 the MVR plugin allows for direct importing of Micro-Manager datasets. Previously |
+ | |||
+ | |||
+ | ==== Fiji MVR scripts ==== | ||
+ | |||
+ | This script was used during the 2018 EMBO Practical Course for Light sheet microscopy in Dresden to roughly align two views collected on the ct-dSPIM: | ||
+ | |||
+ | <code groovy> | ||
+ | |||
+ | #@File (label=" | ||
+ | |||
+ | /** | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | */ | ||
+ | import groovy.util.XmlSlurper | ||
+ | import ij.IJ | ||
+ | |||
+ | def meta = new XmlSlurper().parse( xml_file ) | ||
+ | //def size = meta.SpimData.SequenceDescription.ViewSetups.ViewSetup.sizexml_file | ||
+ | def size = meta.SequenceDescription.ViewSetups.ViewSetup.size[0] as String | ||
+ | |||
+ | def dimensions = size.tokenize(" | ||
+ | def width = dimensions[0] as double | ||
+ | def height = dimensions[1] as double | ||
+ | def depth = dimensions[2] as double | ||
+ | |||
+ | println(" | ||
+ | println(" | ||
+ | println(" | ||
+ | |||
+ | def deskew = "1.0, 0.0, -1.0, 0.0, "+ | ||
+ | "0.0, 1.0, 0.0, 0.0, "+ | ||
+ | "0.0, 0.0, 1.0, 0.0" | ||
+ | |||
+ | println(deskew) | ||
+ | |||
+ | def flip = "0.0, 0.0, -1.0, 0.0, "+ | ||
+ | "0.0, -1.0, 0.0, 0.0, "+ | ||
+ | "-1.0, 0.0, 0.0, 0.0" | ||
+ | |||
+ | def trans = "1.0, 0.0, 0.0, " | ||
+ | "0.0, 1.0, 0.0, " | ||
+ | "0.0, 0.0, 1.0, " | ||
+ | |||
+ | // Return to calibration only, if necessary | ||
+ | IJ.run(" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | // Apply deskew to all angles | ||
+ | IJ.run(" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | |||
+ | // Apply Flip to angle 90 | ||
+ | IJ.run(" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "" | ||
+ | " | ||
+ | |||
+ | // Aplly Rough translation to angle 90 | ||
+ | IJ.run(" | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "" | ||
+ | " | ||
+ | |||
+ | // Open MultiView Application | ||
+ | IJ.run(" | ||
+ | |||
+ | </ |