Skip to content
Update Data preparation workflow authored by Stephen Parsons's avatar Stephen Parsons
......@@ -321,6 +321,10 @@ Consult an expert or scholar to ensure the orientation at this stage is correct.
## Align the reference image
### Using algorithmic registration
Using the [Landmark Picker GUI app](https://code.cs.uky.edu/seales-research/landmark-picker), generate a landmarks file which maps points in the reference photograph onto the same points in the texture image generated by the previous step.
- Load the texture image as the Fixed image and the reference photograph as the Moving image.
- Select 6+ point correspondences between these two images.
......@@ -341,6 +345,34 @@ rt_apply_transform -f 54kv_surface_layer.png -m PHercParis2_Fr143r_RGB.jpg -t 54
This can be useful if you wish to align an RGB photograph to the texture image, but surface details can only be seen in an alternative channel (i.e. infrared).
### Manual registration using Photoshop's Puppet Warp
- drag files into PS
- will consolidate into render layer (need to take other layers back to 8 bit later)
- rename render layer "texture"
- go to photo, duplicate into texture, rename it "photo"
- right click on that, convert to smart object (.psb)
- double click on it to open it in a new tab
- go to ink labels, duplicate into that new psb
- name that layer ink-labels or something useful
- toggle that layer's visibility by clicking eyeball
- save that psb with command+S
- close ink label and photo image so they are out of the way
- save the original tab as a ps file (.psd)
- select the psb layer and go to edit->puppet warp
- in puppet warp you set pins, you can move the pins and it moves the pixels accordingly
- can play with opacity in layers thing
- can play with transfer function (dropdown that says "normal") in layers thing
- can turn "show mesh" off at the top
- when done open up smart layer (.psb), turn on ink-label visibility, and save. (this controls the way in which the smart layer appears in the main .psd file)
- go back to the main (.psd) file and turn the visibility on for both "photo" and "texture" layers. (otherwise, as a result of puppet-warping, the "photo" layer may no longer be a perfect rectangle any more)
- still on the main (.psd) file, choose File->Save a Copy, choose PNG as the format and save.
- open the saved <inklabel>.png file in Photoshop, go to image->mode and change it to "grayscale" "8-bit".
- repeat the previous 4 steps with photo visibility turned on (and saved) in the smart layer (.psb)
- can re-enter puppet warp and make more changes if desired by double clicking "puppet warp" under smart filters in layers dialog
- might want to read up on puppet warp documentation
## Generate ink labels
Ink labels are black-and-white images which indicate those areas of the PPM which contain ink and those which do not.
They are manually created in Photoshop using the following steps:
......
......