Here's a great set of slides from 194-26 that goes into this much deeper https://inst.eecs.berkeley.edu/~cs194-26/fa20/Lectures/Texture.pdf
ja5087
In fact, the same class also has project instructions on doing this! I highly recommend doing it even if you don't take the class if this sounds interesting. One thing that's really interesting is the use of dynamic programming to tile two "good patches" together.
Here's a great set of slides from 194-26 that goes into this much deeper https://inst.eecs.berkeley.edu/~cs194-26/fa20/Lectures/Texture.pdf
In fact, the same class also has project instructions on doing this! I highly recommend doing it even if you don't take the class if this sounds interesting. One thing that's really interesting is the use of dynamic programming to tile two "good patches" together.