Subject: Image Registration Transformation Methods (File 1)

From: [email-masked] (Michael Wirth)
Date: 4 Oct 1994 20:43:44 GMT

There are five files: The first file contains 5 header files, which must be
separated and saved as the following files:

	imagematrix.h
	inverse.h
	average_filters.h
	gaussian.h
	error.h

The next four files contain the transformation methods:

	affine.c 	- Affine Transformation
	polyquad.c	- Polynomial Transformation - Quadratic
	polycubic.c	- Polynomial Transformation - Cubic
	spline.c	- Spline Transformation

Each file can be compiled using the standard Sun C++ compiler. Input
to each of the programmes is in the following format:

	a.out reference_file distorted_file transformed_file control_points

where:

	reference_file = the reference image
	distorted_file = the image to be transformed
	transformed_file = the transformed image
	control_points = a file containing the control point pairs, in the
			 following form:

			 U1 V1 X1 Y1
			 U2 V2 X2 Y2
			 .  .  .  .
			 .  .  .  .
			 .  .  .  . 
			 Un Vn Xn Yn

			 U and V are the x and y coordinates of the control
			 point pairs in the reference image and X and Y are
			 the corresponding x and y coordinates of the control
			 point pairs in the distorted image. n is the number
			 of control-point pairs.

	The images are treated as discrete 2D arrays, and the files are of the
 	PGM form:

		columns rows
		- - - - - - - - - - - - - - - - - - - - - 
		- - - - - - - - - - - - - - - - - - - - - 
		- - - - - - - - - - - - - - - - - - - - - 
		.......
		.......
		.......
		- - - - - - - - - - - - - - - - - - - - - 

	columns = the number of columns
	rows	= the number of rows
	-	= a grayscale value (0-255)

	The programme will produce a transformed image of the form shown
	above and also the Mean-Square-Root-Error estimate for each
	control-point pair.

	(c) September 1994, Michael Wirth

-- 
--------------------------------------------------------------------------------
Michael Wirth				Email: [email-masked]
Department of Computer Science          Snail: Box 654 Tache Residence
University of Manitoba			       University of Manitoba 
Winnipeg, Manitoba                             Winnipeg, MB  R3T 2N1 
CANADA  R3T 2N1                                
--------------------------------------------------------------------------------