I'm lacking hugin knowledge on the first sub-problem below, but I think your problem breaks down into four easy sub-problems. Then is there a specific one of those you need help with?
1) You need hfov in the same units as y and p. I don't know if it already is, or if it needs some additional value (assumed subject distance) in order to convert. You need r and aspect ratio in units you understand. 2) Given (1), it should be easy to compute the y,p coordinate position of each corner of each image. 3) Google and/or StackOverflow can easily be searched for a formula for "is point in quadrangle". That can be used to tell whether a corner of one image is in the quadrangle of the other. Assuming no lens correction was used, two images overlap if and only if some corner of the second is within the quadrangle of the first. (First vs. second works either way and only one of the two ways needs to be tested). 4) You could (and I think should) just "brute force" the testing: Do all 4*N*(N-1)/2 tests, meaning each corner of each image tested against the quadrangle of each earlier image. In game writing tutorials you might be able to understand some very complicated approaches to proximity sorting that reduce the problem to 8*N*Log(N). But that massive research effort would only have value if you were working with a set of over 30 thousand images. On Thu, Jan 20, 2022 at 9:37 AM chaosjug <[email protected]> wrote: > Hi, > > does someone have the formulas or a code example how to calculate if images > overlap? So starting with y,p,r,hfov and aspect ratio. I only need an > estimate, so I hope I can neglect the lens type. > > Regards > Stephan > > > -- > A list of frequently asked questions is available at: > http://wiki.panotools.org/Hugin_FAQ > --- > You received this message because you are subscribed to the Google Groups > "hugin and other free panoramic software" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/hugin-ptx/4434312.LvFx2qVVIh%40chaos-home > . > -- A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ --- You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/hugin-ptx/CALe0Q_maexdcYMahGjRmWm2C9YTjJRipyDSDW8nG%2B%3DHdjT8KTg%40mail.gmail.com.
