<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/feed.php">
        <title>Jefferis Lab DokuWiki warping_manual</title>
        <description></description>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/</link>
        <image rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/lib/tpl/monobook/images/favicon.ico" />
       <dc:date>2026-05-14T16:02:10+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:all_affine_parameters&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:all_warp_parameters&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:bounding_boxes_and_image_grids&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:bridging_different_template_brains&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:calculating_an_initial_registration_from_landmarks&amp;rev=1402399869&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:calculating_an_initial_surface-based_registration_using_amira&amp;rev=1553768831&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:compile_cmtk_tools&amp;rev=1454331514&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:custom_command_lines_for_munger.pl&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:finding_the_plane_of_symmetry&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:landmarks_registration_in_amira&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:landmarks_registration_with_cmtk&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:making_template_brains&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:plotting_3d_objects_in_r&amp;rev=1389041374&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:registration_gui&amp;rev=1528560352&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:registration_parameters&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:registration_quality&amp;rev=1386676785&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:start&amp;rev=1529585488&amp;do=diff"/>
                <rdf:li rdf:resource="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:test_registration_data_set&amp;rev=1386676785&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/lib/tpl/monobook/images/favicon.ico">
        <title>Jefferis Lab DokuWiki</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/</link>
        <url>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/lib/tpl/monobook/images/favicon.ico</url>
    </image>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:all_affine_parameters&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:all_affine_parameters</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:all_affine_parameters&amp;rev=1386676785&amp;do=diff</link>
        <description>registration: Voxel-based affine image registration.


Syntax:
	registration [options] reference.study model.study
or
	registration [options] input.list

where [options] is one or more from:

Flags:
 --copyright
	Print copyright message.
 --copyright-vtk
	CopyrightVTK

	-v, --verbose
		Output diagnostic information (default)
	-q, --quiet
		Suppress all diagnostic output
	-i, --initxlate
		Initially align centers of volumes
	-n, --noswap
		Prevent automatic swapping of model and reference

Input …</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:all_warp_parameters&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:all_warp_parameters</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:all_warp_parameters&amp;rev=1386676785&amp;do=diff</link>
        <description>warp: Voxel-based affine image registration.

(see also affine registration tool)



Syntax:
	warp [options] floating.study reference.study
or
	warp [options] input.list

where [options] is one or more from:

Flags:
 --copyright
	Print copyright message.
 --copyright-vtk
	CopyrightVTK

	-v, --verbose
		Output diagnostic information (default)
	-q, --quiet
		Suppress all diagnostic output
	-S, --switch
		Exchange floating and reference image.

	--exchange
		Force exchange of floating and reference…</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:bounding_boxes_and_image_grids&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:bounding_boxes_and_image_grids</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:bounding_boxes_and_image_grids&amp;rev=1386676785&amp;do=diff</link>
        <description>This is one of the most vexing issues in dealing with image data.

When dealing with 2D (or higher dimensional) image data, we need to specify the transformation between some kind of world coordinates and the image voxel data.  The basic stuff that we need to know is:</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:bridging_different_template_brains&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:bridging_different_template_brains</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:bridging_different_template_brains&amp;rev=1386676785&amp;do=diff</link>
        <description>Preview

Imagine you have two sets of experiments with two different template brains.  You have two large data sets that you would like to compare, but they are in separate frames of reference.  You therefore need to compute the transformation that maps one template onto the other.  For the purposes of this comparison, you will need to decide which of the two templates is going to be the master template.  This is particularly important because the warping registrations are not simply invertible …</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:calculating_an_initial_registration_from_landmarks&amp;rev=1402399869&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-06-10T11:31:09+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:calculating_an_initial_registration_from_landmarks</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:calculating_an_initial_registration_from_landmarks&amp;rev=1402399869&amp;do=diff</link>
        <description>Problem

You find that the initial affine registration calculated by the intensity based registration software is failing. You would
like to specify an alternative.

Solution

Calculate an alternative affine transformation and supply that to the registration software.
Steps:</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:calculating_an_initial_surface-based_registration_using_amira&amp;rev=1553768831&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2019-03-28T10:27:11+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:calculating_an_initial_surface-based_registration_using_amira</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:calculating_an_initial_surface-based_registration_using_amira&amp;rev=1553768831&amp;do=diff</link>
        <description>We quite often use the surface based registration option in Amira to generate an initial alignment for cases where CMTK's affine registration fails.

	*  Take your starter image and smooth/downsample to e.g. 3 um voxels. 
	*  Then generate a surface – you can use the Isosurface viewer module</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:compile_cmtk_tools&amp;rev=1454331514&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2016-02-01T12:58:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:compile_cmtk_tools</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:compile_cmtk_tools&amp;rev=1454331514&amp;do=diff</link>
        <description>CMTK can binaries can be downloaded from the project homepage and are generally the way to go. On a mac we currently use the dmg installer for macosx 10.6 NOT macports.

However you may also want to compile from scratch. On a mac this looks like this:

Prerequisites</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:custom_command_lines_for_munger.pl&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:custom_command_lines_for_munger.pl</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:custom_command_lines_for_munger.pl&amp;rev=1386676785&amp;do=diff</link>
        <description>When you use the simple RegistrationRunner.app gui it makes a subdirectory in your main registration directory called commands.  Whenever you start a new job it saves a .command file in this directory.  This file contains the actual commandline that is used to invoke the registration software.  There are 3 layers:</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:finding_the_plane_of_symmetry&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:finding_the_plane_of_symmetry</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:finding_the_plane_of_symmetry&amp;rev=1386676785&amp;do=diff</link>
        <description>Torsten has a tool called symmetry_plane that can be used to find the single plane of symmetry separating the image.  The command line options look like this:


&gt; symmetry_plane -h

Compute volume image symmetry plane.
(C) 1997-2007 Torsten Rohlfing  [build 3866M]

Usage: symmetry_plane [options] imagepath

Supported options:

-h, --help	Print this help text.
-v, --verbose	Turn on verbosity mode.

Optimization:
-a, --accuracy	Accuracy (final optimization step size in [mm].
-s, --sampling	Resampl…</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:landmarks_registration_in_amira&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:landmarks_registration_in_amira</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:landmarks_registration_in_amira&amp;rev=1386676785&amp;do=diff</link>
        <description>Intro

For simple visualisation reasons it may be helpful to align two brains by choosing corresponding points in both.

This can be done in Amira using the Landmarks and LandmarksWarp objects.

See Tutorial 2.7 Warping and Registration Using Landmarks in Amira's help.</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:landmarks_registration_with_cmtk&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:landmarks_registration_with_cmtk</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:landmarks_registration_with_cmtk&amp;rev=1386676785&amp;do=diff</link>
        <description>CMTK used to have a landmarks based registration tool based on VTK code called align_landmarks. In combination with munger.pl this allowed initialisation of CMTK affine/warp registrations by an initial affine calculated from pairs of landmarks in each sample brain and a corresponding set in a reference brain.</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:making_template_brains&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:making_template_brains</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:making_template_brains&amp;rev=1386676785&amp;do=diff</link>
        <description>In the past we have made template brains using the following general scheme

	*  Choose 5 really good brains
	*  ... and 46 good brains
	*  register all 50 against each of the 5 seed brains
	*  Score all the registrations
	*  Pick the brain which had the most successes</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:plotting_3d_objects_in_r&amp;rev=1389041374&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2014-01-06T20:49:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:plotting_3d_objects_in_r</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:plotting_3d_objects_in_r&amp;rev=1389041374&amp;do=diff</link>
        <description>RGL library

R has a nice library for plotting in 3d called rgl (because it wraps the OpenGL framework).  The functions are pretty self explanatory.  
There are 2 interfaces with separate sets of functions that are named either rgl.* or *3d.
The *3d are slightly higher level and may be preferable.  However they were added later and my code therefore uses the rgl.* functions (for example in the plotneuron3d routine)</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:registration_gui&amp;rev=1528560352&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-06-09T16:05:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:registration_gui</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:registration_gui&amp;rev=1528560352&amp;do=diff</link>
        <description>Cross Platform GUI

We now recommend a Registration GUI that is distributed as a plugin for Fiji (see below for details of the Classic MacOSX GUI). Currently this provides a simple way to install CMTK, select input images and registration parameters and construct appropriate registration scripts. However it does not actually run the final registration script - you still have to go to your operating system and run the script directly.</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:registration_parameters&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:registration_parameters</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:registration_parameters&amp;rev=1386676785&amp;do=diff</link>
        <description>There are number of things that are worth optimising when first starting to register a new kind of image.  These include some of the parameters that are fed to the initial affine and warping registration.

First it is important to make sure that the initial affine step is giving a good seed to the warp.  If the affine isn't working well the warp may never be able to clean up the mess.</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:registration_quality&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:registration_quality</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:registration_quality&amp;rev=1386676785&amp;do=diff</link>
        <description>Marking the quality of a registration

	*   Completely failed registration
	*   Outline of the specimen correctly registered but major internal mismatch
	*   Outline correct. Considerable internal mismatch
	*   Outline correct. Minor internal mismatch - Potentially usable</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:start&amp;rev=1529585488&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2018-06-21T12:51:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:start</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:start&amp;rev=1529585488&amp;do=diff</link>
        <description>Introduction

In collaboration with Chris Potter (when he was in Liqun Luo's lab) and Torsten Rohlfing (formerly Stanford, SRI, now at Google) I have developed/applied techniques for mapping different fly brains into a common frame of reference and then using this for analysing the spatial relationships between different neurons.  The software and approaches are likely to be of general relevance in neuroanatomy.</description>
    </item>
    <item rdf:about="https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:test_registration_data_set&amp;rev=1386676785&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2013-12-10T11:59:45+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>warping_manual:test_registration_data_set</title>
        <link>https://flybrain.mrc-lmb.cam.ac.uk/dokuwiki/doku.php?id=warping_manual:test_registration_data_set&amp;rev=1386676785&amp;do=diff</link>
        <description>The files at &lt;http://flybrain.stanford.edu/warpbench&gt; can be used as a sample to check that the registration software is working and to benchmark your machine.

Testing Full Registration

Use the GUI to run a full registration and reformat (command -awr 01).  Make sure that you specify the location of the reference brain for this project when the</description>
    </item>
</rdf:RDF>
