users > RE: warp image using affine transform
Jun 23, 2015  02:06 AM | Torsten Rohlfing
RE: warp image using affine transform
Hi Jirka 

If you build CMTK with GUI support (using Qt), then you should find a tool named "fview" in the bin/ directory. The Linux and Cygwin builds that you can download from here should also have this tool, and I believe most of the Mac builds also. No luck for Windows, but you can fall back on the Cygwin version, which is better anyway.

Now, once you have located that tool, you can run:

fview cmtk_affine.xform

Assuming that you call this from the same working directory that you were in when the transformation was computed, then the tool should automatically read the fixed and moving images and show you a side-by-side aligned view (fixed image left, moving image right).

If the images cannot be found, you can provide new paths for them using the "--fixed" and "--moving" command line options. These need to be given before the transformation.

Note that you can give fview a series of transformations, affine or nonrigid, and optionally invert each one by prefixing it with "--inverse". This is pretty much exactly analogous to the "reformatx" tool. So you can visualize concatenations of transformations directly.

There are some other nifty features in fview, such as turning on/off nonrigid transformation components to compare linear vs. nonlinear alignments, but I'll leave these extra goodies to confuse you at a later time.

Hope this helps!

Torsten

Threaded View

TitleAuthorDate
Jirka Borovec Jun 22, 2015
RE: warp image using affine transform
Torsten Rohlfing Jun 23, 2015