Using a text file containing 3D point coordinates as reference pairs, 3D image stack is transformed.
TrakEM2 is an ImageJ plugin for morphological data mining, three-dimensional modeling and image stitching, registration, editing and annotation (Fiji comes with TrakEM2). It supports arbitrary-sized datasets.