Forum

Author Topic: How should I go about doing room scans or building scans?  (Read 18438 times)

Spanky

  • Newbie
  • *
  • Posts: 2
    • View Profile
How should I go about doing room scans or building scans?
« on: July 09, 2015, 11:22:59 AM »
Hi all,

I'm new to PhotoScan although I've always been interested in the software. I wanted to try building some models of the interior of rooms or the outside of buildings. I read the PDF document saying that to scan the inside of a room, I should walk around the outside and take photos pointing across the room. What about for rooms that have more detail in though and what about cameras that don't have such a wide view lens?

In my first test 'shoot', I took photos of two locations. One was a chapel and one was outside a building. I used my iPhone (as it had a wider camera view than my SLR and I wouldn't draw as many questions. I took multiple angles from each position - upwards, level to the ground and downwards so as to try to capture the full 'vertical arc' if that makes sense. I'd also do the same for different angles.

After putting it all together at home - aligning photos, then building dense cloud, then mesh and then texture, it's clear that my methodology is wrong. The model from the interior was really 'lumpy' and the model from the exterior just plain didn't work.

I'm using AgiSoft PhotoScan non-Pro and an iPhone 6 (8 megapixel). I could use my Nikon D3200 (24 megapixel) with an 18-135mm lens instead although the field of view at 18mm is about the same as the iPhone and the RAM requirements for that many photos probably exceed my system (12 GB Mac).

I've attached a screen shot of each project to show what I mean and to show kind of what photos I've been taking.

Any help on where I've been going wrong? Maybe the only way this will work is if I get a fisheye lens although they look to be really expensive (for 'proper' ones anyway - I have some of those cheap ones that just stick on the end of the normal lens).

Thanks!

James

  • Hero Member
  • *****
  • Posts: 769
    • View Profile
Re: How should I go about doing room scans or building scans?
« Reply #1 on: July 09, 2015, 01:30:16 PM »
Just a few suggestions:

See the attached image below identifying a sample of three of your images, which i assume were taken all standing in the same spot.

In this case, IMG_7151.jpg is almost completely redundant as it only contains information already in IMG_7150 and IMG_7152. It may be useful in the image alignment stage, but for depth map/dense cloud and subsequent mesh generation you may as well disable all these 'middle' images and save some processing time and memory. If you consistently shoot 3 or 4 images with the same angles and overlap at each position, then it is very simple to disable every 2nd, 3rd or 4th image in one go by setting the width of the photos pane to get the required number of columns, then selecting a whole column by click/dragging and right click->disable.

The other thing about these 3 images is that they are only really good for reconstructing that end wall, as it the only part of the scene that is close to parallel to the image plane. Unfortunately it's a very long way away! Also there is so much variation is depth in the image, from the floor, seats and ceiling close to where you are standing all the way down to the end wall that there is little chance of all that being within your camera's depth of field, and therefore in sharp focus.

I think it is better to treat a room as 4 individual walls, a floor and a ceiling. Then shoot each of these 6 elements as if you are doing an aerial survey in as close to a grid configuration as possible. When you are stuck at ground level you can't do that, but at least just take all images in a nice row perpendicular to the surface you are shooting, and at a close enough range to get the detail you need. Shoot up and down to get the top and bottom of walls. Ceilings are great as you can almost always do a nice grid pattern even if you get a sore neck doing it... Floors are a bit tricky as you always get your feet in the shot, unless you can elevate the camera with a pole of some sort.

Once you have acquired the 6 main elements (walls, floor, ceiling) you need to think about how you join these together, probably with a whole load of photos pointing in the corners at various angles from various positions. Personally i would at least begin by processing walls, ceilings and floor separately in chunks, then the joining 'corners' separately in chunks, and then merge them all when i was happy, although that doesn't always work out... (If you include the 'corner' photos with their 'related' walls, so you have the same 'corner' photos in multiple chunks, then you can merge chunks based on these common photos (i think it's called merge by cameras), which is very computationally quick and cheap, although it does mean you have more photos in each chunk to process to start with, and then duplicates to remove once you have merged the chunks.)

None of that is much applicable to using a fisheye lens which will acquire everything in every shot and with great depth of field. Unfortunately i don't think photoscan standard supports fisheye lenses, but it may still be worth a go, even just a quick test with 5 images taken at home!

Finally, i haven't tried using my smart phone since i got access to DSLRs, but i am confident you will get way better results with your D3200. Processing in chunks means you can use more images, and every time you reduce the 'align images' or 'build dense cloud' quality level by 1 it is equivalent to reducing the megapixels of your input photos by a factor of 4, so 24MP quickly becomes 6MP, and the improved dynamic range and optical quality etc should outweigh any reduction in number of pixels.

Spanky

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: How should I go about doing room scans or building scans?
« Reply #2 on: July 09, 2015, 04:54:24 PM »
Hi James,

Thanks for the detailed reply! That's a really interesting technique - doing each wall kind of separately and then putting them together afterwards. I'll have to look into how to do this separate chunks thing. I didn't really want to use a room that had all that ground 'detail' - i.e. benches - in but I figured a big open room would be the best place to try things out and the room I wanted to use was closed off for the filming of a tv show so I had to make do. I've tried before doing rooms at home but I find I have to take way more photos as 'domestic' rooms are so much smaller.

I'll certainly look at shooting with less of an overlap. I just thought more might be better in a room with so much stuff going on but that might go a long way to explaining the 'lumpiness'.

It's a shame they limit fisheye lenses to the professional version. Maybe I should invest in a 10mm wide angle lens for my D3200, maybe I can find a used one cheap. Being on a student budget doesn't help!

bigben

  • Sr. Member
  • ****
  • Posts: 406
    • View Profile
Re: How should I go about doing room scans or building scans?
« Reply #3 on: July 10, 2015, 12:11:25 AM »
Use your digital camera. 32gb RAM can do quite a lot, especially on the point cloud front.
Try to keep a consistent distance from the walls.
If there are more intricate shapes adjacent to the wall, reduce the spacing between shots.
Treat large free standing objects as objects... Shoot all the way around them (or as far as you can get)
You need to be able to see every point in at least 3 photos (from about the same distance) this is easy to forget when you're looking at a wall and walking past a column.
Shoot at multiple camera heights... A pole is good if you can use it but waste level and arms above your head will help to some extent. This helps to reduce the noise higher up the walls where the angle between the wall and the camera direction get smaller.
A fisheye can make things easier in the 2-5m range, but for a large interior a wide angle lens will do.
I'd try everything in the same chunk first. If you can keep it under 600 images the alignment time shouldn't be too bad, but don't use that as a reason to restrict the number of images. Images are your data, and if you don't have enough you will have problem areas.

James

  • Hero Member
  • *****
  • Posts: 769
    • View Profile
Re: How should I go about doing room scans or building scans?
« Reply #4 on: July 10, 2015, 10:16:46 AM »
I'll certainly look at shooting with less of an overlap. I just thought more might be better in a room with so much stuff going on but that might go a long way to explaining the 'lumpiness'.

I'd say it's better to shoot with more overlap than you need, and disable the photos if/when it turns out that you don't need them. Any overlap between images taken standing in the same spot can probably help with alignment of those images, and estimation of lens parameters, which is good, but won't help with generating the 3d points as that relies entirely on overlap between photos taken from different points, and you can never get enough of that.

It's a shame they limit fisheye lenses to the professional version. Maybe I should invest in a 10mm wide angle lens for my D3200, maybe I can find a used one cheap. Being on a student budget doesn't help!

I use the cheapest 10mm i could find which was the tamron 10-24 which i got off ebay for ~£170 a couple of years ago. I have never used it for any critical work or looked too hard at the results, but i did get a lovely scan out of it during a trip to france in 2013! http://www.agisoft.com/forum/index.php?topic=2458.msg13053#msg13053