This article will discuss the creation of a panorama of Yekaterinburg.
Habre publication:
habrahabr.ru/post/150591 Panorama itself:
ekburg.artstudio-3d.ru
Initially, a more detailed version of the article was sent to the “sandbox”, but the UFO did not find it worthy of an invite. Below, I will omit the background with tenders and other "lyrics", and try to dwell only on the technical part.
')
In March of this year, a
tender was published for "the production of a panorama of the city of Yekaterinburg with an ultra-high (gigapixel) resolution." About a day I was thinking about “can I do this job if I win?”. After a positive answer to this question, a quotation application was submitted. The girls in DHL were very surprised and wished good luck.
Tender
won . (I will not go into details in this article, although I already have some experience in the photo on the system of tenders. Maybe I will write another article. 3 tenders have been won at the moment.)
What should have been removed?
The cylindrical panorama of the city view from the local high-rise.
Resolution of at least 10Gpx. As well as the usual panoramas 360x180 objects on the ground.
In general, the imputed TK, although not without delusional requirements. “5000 original frames” are redundant for 10Gpx (if we are talking about differently different ones, and not just bracketing).
Remove a lot more, and then resize down? Bad option. The greater the focal length (smaller viewing angle), the more frames, and, respectively, and the joints between them. This, in turn, will increase the number of "ghosts" (halves of people and cars and other blending artifacts). And still take longer to shoot, i.e. higher risk of changes in light, and the shadows can sometimes just do not converge.
Remove at 50Gpx and get another soap Dubai (talking about the old panorama, which became famous for the "record" in detail and meaningless content), where the detail does not deteriorate from a decrease of 10 times the size of the panorama? Also no.
Add. The agreement to the contract stated that the objects became more than 10.
"Ekaterinburg - objects" on Yandex.Maps
Calculations
As I wrote above, before sending a request, you had to make sure that the project was real. And just to understand "how to do it?". By the time I did not shoot a panorama of such a plan. Only when shooting interiors used this approach.
I could not google the ready-made “calculators”, although I didn’t try too hard - it was important to understand everything myself.
Since only 70-200 / 4L IS is available from tele-lenses, it was first calculated for it.
The following cameras were considered as cameras: 5D m2, as ff, and 600D (60D) as the most dense pixel cropping (from the actual at the time of the calculation of the canons).
Attention! The calculation below does not claim to be 100% correct in terms of terminology. Measuring the “ring height” in degrees can damage your psyche. Please look at the essence, not the terms. I have not done such calculations for 10 years.
70-200 has an angle of 12 o diagonally (ff, 200mm), so angles for ff and crop:
FF: 9.99 o on the long side (3x) and 6.66 o on the short (2x);
Crop: 6.24 o on the long side (3x) and 4.16 o on the short side (2x);
To close to 360 o (ring without overlap) in theory you need:
ff: 36 frames (360: 9.99), with a ring height of 6.66 o - i.e. 1 \ 27 from 180 about ;
Crop: 58 frames (360: 6.24), with a ring height of 4.16 o - i.e. 1 \ 44 from 180 o .
For the full sphere (360 180 ) in theory:
FF: 27 rows of 36 frames ( 972 frames );
Crop: 44 rows of 58 frames ( 2552 frames ).
And in megapixels it is:
ff: 27 x 36 x 21mp = 20 412mp ;
Crop : 44 x 58 x 18mp = 45 936mp .
Let us turn to the reality with overlap (25%) on the stitching.
Roughly reduce the viewing angles, and will continue to be considered as if without overlap:
FF: 7.5 o (9.99 o x0.75) in long and 5 o (6.66 o x0.75) in short;
Crop: 4.7 o (6.24 o x0.75) in long and 3.1 o (4.16 o x0.75) in short.
To close to 360 o you need:
ff: 48 frames (360: 7.5), with a ring height of 5 o - i.e. 1 \ 36 from 180 about ;
Crop: 77 frames (360: 4.7), with a ring height of 3.1 o - i.e. 1 \ 58 from 180 about ;
Total for the full sphere (360 180 ) , with an overlap of 25%:
FF: 36 rows of 48 frames = 1728 frames;
crop: 58 rows 77 frames = 4466 frames.
Apotheosis:
Let each frame be taken up to 1 sec. (same day), and 3 seconds. goes to repositioning the head:
ff: 1728x4 = 1.9 hours (approximately 39Gb of RAW-files);
Crop: 4466x4 = 4.9 hours (approximately 98Gb of RAW-files);
But this is a complete sphere, which is meaningless (why do we need the sky and the roof of the building from which to shoot?).
Let the height be not 180 o , but 60 o :
ff: 576 frames, 0.65 hours, 6.8Gpx;
Crop: 1448 frames, 1.6 hours, 15.3Gpx.
Conclusion? You can calmly shoot at 200mm and 18mp crop camera.
Looking ahead, I will say that the calculations were fairly well confirmed by practice.
After calibration of the tripod head “on the spot”, the discrepancies by theory were 0.1-0.2
o per frame.
What to work?
Already decided that to shoot on a crop camera about 18mp and 200mm lens.
Under the terms of the contract, the survey should be carried out using a “robotic tripod head”.
Although it is possible to shoot 1,450 frames in manual mode, the choice fell on the
Gigapan EPIC Pro .
Well, with ground spherical panoramas everything is simple: 5D m2 + 15mm. According to the scheme "2 rows of 8 frames." This gives a large overlap that will help get rid of the ghosts and halves of buses.
If I already got used to the usual spherical panoramas (to stitch “later, at home”), then the gigapixel view should be checked directly in Yekaterinburg. For this, the netbook of the following configuration was purchased: i7-2670QM / 16Gb RAM / 128Gb SSD / 640Gb HDD.
In Ekaterinburg
Probably not really to write about it here. Leave a LJ. Total spent 5 days in the city. The day was spent on tests and targeting on the roof of a skyscraper, a day on shooting, and another 3 days on urban views "on the ground."
The panorama was filmed on May 16th, 2012.
On the roof
What you need to consider first?
- Weather and its forecast for the near future. Sudden change in illumination is unacceptable. Undesirable clouds - there will be porridge.
- Humidity - the higher it is higher, the stronger will be the moire and worse visibility.
- The height of the sun above the horizon - the higher the better.
- Shooting time - you need to shoot as quickly as possible, otherwise the shadows will crawl away and will not sew.
- The wind was gusty, I had to remove the hood from the lens, to reduce the area of ​​the sail.
Photographers also remove phones. The first day, tests.
How to shoot?
- Rows from top to bottom. This reduces the number of "ghosts" that occur when stitched.
- Focus - hands, with refocus every few rows. Sometimes it gave failures (there are soap areas), but what to do.
- Mode - Av. M, when shooting such a number of frames, does not make sense. The run-up illumination will not fit into any matrix of DD.
- Tests have shown that exposure compensation, in general, is not needed, but expiration is desirable.
- Needless to say in RAW. Changing flash drives and immediately looking at the material.
Material processing
I will describe the process of working on a large panorama.
It is necessary to select frames, pre-convert.
Then assemble a test panorama, check it for correct stitching.
Then the most tedious begins - you need to handle specific frames and groups of frames. That there were no bands and differences of brightness and color. Substitute frames and look at the result. In the ranks of the frames "sky" - a lot of substitutions. And so many times around.
After the color was aligned, I began to fight with the "ghosts" (people without heads, halves of cars, two-wheeled buses). This is done by masks in PTGui, and sometimes by retouching in Photoshop. These operations also repeated many times.
If we talk about the time of stitching and cutting of images into tiles (
KRPano ), then the figures, on average for each sector, are:
placement of control points (automatic) - 30-40 minutes;
panorama stitching - 2-2.5 hours;
cutting into tiles - 1.5 hours;
The last two points were repeated many times. The final edits were made after the preliminary publication of the panorama and its discussion by the audience. And even after that - at least a couple of ghosts remained. In total, it took about 3-4 weeks.
The most unpleasant was to apply the curves to two of the three panoramas (sectors). For files of 5-7 gigapixels and 20 gigabytes of the operation “open, apply curves, increase contrast, save, close” took 2-3 hours each.
Shooting statistics
3 panoramas were taken:
1. 19 rows of 36 frames - a total of 684 unique (excluding bracketing);
capture time: 34 minutes;
angular dimensions: 160 o on the horizon and approximately 55 o on the vertical;
cross-linked sheet size: 127,800 x 54,850 px, approximately 7 Gpx.
2. 15 rows of 36 frames - or 540 pieces;
shooting time: 31 minutes;
angular dimensions: 160 o on the horizon and approximately 40 o on the vertical;
cross-linked sheet size: 131,175 x 37,922 px, approximately 5 Gpx.
3. 16 rows of 34 frames - or 544 pieces;
shooting time: 31 minutes;
angular dimensions: 155 o on the horizon and approximately 47 o on the vertical;
cross-linked sheet size: 122,400 x 43,800 px, approximately 5.4 Gpx.
In general, very close to the calculations.
Why 3 sectors, but not a single cylinder?
Does not allow roof configuration. With such a relatively small height (43 floors?), The survey points are too far apart. Parallax is great. There was an attempt to collect, if not in a single cylinder, then at least in 2 sectors. Did not work. In the "border areas" it came to the point that in the same small building I saw, as it were, a left wall in one panorama, and almost a right one in another.
Acknowledgments
I want to say thanks to the people who helped me in the implementation of this project:
Alexey Krylov, Moscow;
Anton Fadeev, Yekaterinburg;
Vladimir Bardanos, Novokuznetsk;
Rodion Galanev, Moscow.
What is the result?
Experience an interesting job.
Pretty good visualization of Ekaterinburg.
About the very same panorama to judge you:
Ekaterinburg: gigapixel panorama and virtual tour (clickable)
Constructive criticism is welcome.
When you change the review in the address bar of the browser data is changed, so You can give links to specific species.
UPD:
Retouched most of the specified in the comments.
Files updated.
A copy of the administration of the customer handed.