imod2patch(1)                                                    imod2patch(1)

       imod2patch - converts a model to a patch displacement file

       imod2patch  IMOD_model_file  output_patch_file

       Imod2patch converts an IMOD model originally produced by Patch2imod
       back into a list of patch positions and displacements.  Specifically,
       for every contour in the model consisting of at least two points, it
       outputs a line listing a 3-D position and a displacement.  The position
       is that of the first point.  The displacement is the vector from the
       first to the second point, divided by the scaling factor that was
       stored as the pixel size in the model header.  The resulting file can
       then be analyzed by Findwarp or Refinematch.

       If the original patch file contained correlation coefficients (from
       Corrsearch3d) or residual values (from Refinematch or Find-
       warp(1)), and these were stored as values in the model file by
       Patch2imod, then Imod2patch will add these values to each line, or a
       0 if there is no value for a particular point.  In addition, if there
       outlier fractions output by Findwarp and stored in the model, these
       will be output as well.

       If the output file already exists, it becomes a backup file with ~
       added to its name.

       David Mastronarde

       patch2imod, corrsearch3d, findwarp, refinematch

       Email bug reports to mast at colorado dot edu.

BL3DEMC                              4.7.3                       imod2patch(1)