POD documentation for fit_function.pl


  1. Name
  2. Synopsis
  3. Description
  4. Options
  5. Arguments
  6. Script Layout
  7. See Also
  8. Known Bugs
  9. Author
  10. Copyright and License
  11. Source Code


fit_function.pl - Fits multiple images to the base set of coordinates.


fit_function.pl [-vb|--verbose] [-o|--out output] filename
fit_function.pl filename
fit_function.pl filename filename2 filename 3
fit_function.pl --help produces this message
fit_function.pl --help -v produces a longer help message


This program is designed to take at least one properly formatted SVG file, calculate the transformations that need to be made to fit images on top of each other, and then make a new svg file (for each argument) with this information incorporated. The new svg file will have the same name as the old one, except in the name '.svg' will be replaced by '.new.svg'. If no files are given, it will try to find the most recent .svg file and then run on that file.



This program currently expects no arguments for execution as it is intended to be run in the background, but the program can take any number of arguments (each being the name of a properly formatted SVG file) for command-line execution.

Script Layout

This program currently has three parts:

See Also

Math::MatrixReal, http://www.perl.org, http://www.gnu.org, Mastering Algorithms with Perl, SVG Essentials, http://www.w3.org/TR/SVG/coords.html

Known Bugs

The program does not understand the effect of transform matrices in sub-layers. If, in the unlikely case, that rectangles have a weird transform (rotation or skewing) applied to them, the results will not be correct.


Miles McCammon, <miles86@ucla.edu> fit_function.pl - Fits multiple images to the base set of coordinates. Copyright © 2008 SIMS Lab, University of California Los Angeles; University of California Regents This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation version 2. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. To receive a copy of the GNU General Public License, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Source Code

Source code for this version (11/6/08, 18:06) can be downloaded here.
N 34° 4' 9" W 118° 26' 27"