I want to add rotated patches during the patch matching process, and found that the prepareExamplePatches function in the patch_matching_and_quilting.py file has the following code:
stbn is the tangents, bi-tangents, and normals of sampled frames. We record it to adjust the lighting model when rendering synthesized textures. Note that we need not only to record the stbn of sampled frames but also to apply horizontal and vertical transformations to them when performing corresponding patch augmentations. For more details, please refer to the $T_s$ mentioned in Sec.3.2.1 and Eq.4 in our paper.
stbn should be of shape (n, 3, 3). The x and y axis are flipped when doing horizontal and vertical mirror augmentation respectively. Current operations on the shape (n, 9) is a bug and should be fixed in the future.
In the rotate branch, stbn should also be rotated correspondingly. But I never rotated them and should had deleted the branch in the released codes.
I want to add rotated patches during the patch matching process, and found that the
prepareExamplePatches
function in thepatch_matching_and_quilting.py
file has the following code:I have the following questions:
stbn
?stbn
is (n, 9), is only one line ofstbn
transformed in themirror_hor
andmirror_vert
code branches?rotate
code branch, how to changestbn
?Thanks