Zoran Zorkic wrote: > * run a CP generator & optimize for preliminary alignment
why? > * mask areas bad for CP generation in principle this is a good idea and has been discussed a number of times. the last time I had a thorough discussion about it was with Tim, when mentoring him about Celeste. One original idea for Celeste was to generate masks for the sky as one such "bad areas". The masks would be useful also for other things such as post-processing (common use case: apply different curves to the sky). > * rerun CP generation using masks (masks being automagicaly applied to > the individual photos) to avoid bad CP it makes sense to *run* CP generation right away the first time using masks that maps out good areas / bad areas. Normally the best areas are those that don't move and are far away from the camera, and this does not depend on on pre-alignment - hence my above question, why run a CP generator & optimize for preliminary alignment? IMO preliminary alignment should be much faster than running a fully fledged CP generation. Use an heuristic approach with the data available intrinsically. First: if the user provides a template, use it. Then, based on EXIV data determine whether there are multiple exposures. - pattern? this is HDR shooting - random? auto-exposure - constant? plain vanilla panorama Then, based on EXIV data and quantity of images guess the type of coverage - small partial panorama - possibly a cylinder - maybe the whole sphere - or there can be way more material than necessary to cover 360x180 Go on making such educated guesses (they are cheap). Then, based on the guesses, run a few random CP detections between a couple of likely to be adjacent pairs. This will tell you, their relative positions, and improve the guesses from wild to likely until the probability is very high that the guess is right. Once the guess is right (e.g.: there are 90 images in 3 exposure layers and they are arranged 6x5) spread their initial positions. Optional: pass your guess by the user (visualize it and ask him if it makes sense). Go on generating the CPs, pairwise, per adjacent pictures. Of course the heuristic approach must make provisions for things that can go wrong: - maybe there is no usable order (e.g. hand held, shot wildly) - maybe there is an outlayer (e.g. starting to shoot a sphere, then moved rapidly to shoot a plane as it was flying by, then continued the sphere) - maybe once the bad areas are masked (e.g. crowds, clouds, leaves, close-by objects) there are no more features in the picture to generate CPs in all such cases, raise an exception, ask the user's for manual intervention. Yuv --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "hugin and other free panoramic software" group. A list of frequently asked questions is available at: http://wiki.panotools.org/Hugin_FAQ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/hugin-ptx -~----------~----~----~----~------~----~------~--~---
