Skip to content

Commit 819b463

Browse files
committed
bigwarp: doc export transformations
1 parent ba5009d commit 819b463

File tree

2 files changed

+64
-1
lines changed

2 files changed

+64
-1
lines changed

_pages/plugins/bigwarp.md

+64-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ Some changes to landmarks can be done by interacting with the landmark table.
302302

303303
### Selecting transformation types
304304

305-
Press {% include key key='F2' %} to bring up a transformation type selection window (versions 4.0.0 or later support multiple options for transformations)
305+
Press {% include key key='F2' %} to bring up a transformation type selection window, or {% include key key='U' %} to open the BigWarp options dialog (versions 4.0.0 or later support multiple options for transformations).
306306

307307
| | |
308308
|------------------------------------------------|---------------------------------------------------|
@@ -601,6 +601,69 @@ To manually specify the field-of-view (FOV) of the target space, use [this scrip
601601

602602
To make the scripts above appear in your Fiji Plugins menu, simply copy them into the `/plugins/Scripts folder` in your Fiji installation.
603603

604+
### Export transforms
605+
606+
Export a transformation with {% include bc path="File | Export transformation" %}. BigWarp can export non-linear
607+
transformations as displacement fields that can either be displayed as a window in ImageJ or written to a file. BigWarp uses the
608+
[OME-NGFF](https://github.com/ome/ngff) format to store transformations.
609+
610+
{::nomarkdown}
611+
<table>
612+
<tbody>
613+
<tr>
614+
<td style="padding:5px;">
615+
<ul>
616+
<li><b>Type</b>
617+
<ul>
618+
<li>Flat: Compose all transformatations BigWarp knows about into one single displacement field.</li>
619+
<li>Sequence: If a transformation was imported on startup, this option saves a reference to it,
620+
and newly created displacement field contains only the part of the transformation editable by BigWarp.</li>
621+
</ul>
622+
</li>
623+
<li><b>Direction</b>
624+
<ul>
625+
<li>FORWARD: The "forward" transform needed to transform image data.</li>
626+
<li>INVERSE: The "inverse" transform needed to transform coordinate data.</li>
627+
<li>BOTH: Exports both the forward and inverse transform when possible.</li>
628+
</ul>
629+
</li>
630+
<li><b>Split affine</b>: If selected, separates the affine from the deformable parts when exporting a thin-plate-spline.
631+
<li><b>Threads</b>: The number of parallel threads to use for computation.
632+
<li><b>Format</b>
633+
<ul>
634+
<li>NGFF: The recommended option uses <a href="https://github.com/ome/ngff">OME-NGFF</a>.</li>
635+
<li>TPS: A temporary option that will hopefully one day join the NGFF standard.</li>
636+
</ul>
637+
</li>
638+
<li><b>Virtual</b>: If exporting to ImageJ, uses a <a href="https://imagej.net/ij/docs/guide/146-8.html#toc-Section-8">virtual stack</a>, i.e., the transformation will be computed on-the-fly,
639+
so the transform will initially appear faster, but navigation will be slower when new parts of the images need to be computed.
640+
<li><b>N5 options</b>: The parameters for writing to chunked file formats. Read about them in <a href="https://github.com/saalfeldlab/n5-ij?tab=readme-ov-file#export-n5">the N5 documentation</a>.</li>
641+
<li><b>Field of view</b> :
642+
<ul>
643+
<li><b>Reference</b>
644+
<ul>
645+
<li>Moving (warped): BigWarp will set the spacing option to match the moving image, and will
646+
estimate the physical size to the smallest bounding box that fits the entire warped moving image.</li>
647+
<li>Target: BigWarp will set the field of view options to values matching the target image.</li>
648+
</ul>
649+
</li>
650+
<li><b>units</b>: the physical unit for the field-of-view of the image.</li>
651+
<li><b>min(unit)</b>: the physical coordinates of the top-left pixel.</li>
652+
<li><b>size(unit)</b>: the physical extent in each dimension.</li>
653+
<li><b>spacing(unit/px)</b> : the physical spacing between adjacent pixels along each dimension.</li>
654+
<li><b>size(px)</b>: the number of pixels in each dimension.</li>
655+
</ul>
656+
</li>
657+
</ul>
658+
</td>
659+
<td style="padding: 5px;"> <img src="/media/plugins/bigwarp-export-transform-dialog.png" width="500"/> </td>
660+
</tr>
661+
</tbody>
662+
</table>
663+
{:/}
664+
665+
666+
604667
#### Warp 2d ImageJ ROIs
605668

606669
Download and install [this script](https://raw.githubusercontent.com/saalfeldlab/bigwarp/master/scripts/Apply_Bigwarp_Xfm_IjRoi2d.groovy).
Loading

0 commit comments

Comments
 (0)