# Blog

## Kolor Labs: Measurement using Panoramas by Alexandre Jenny

The Kolor team has been experimenting and developing a new solution to estimate accurately lengths and surfaces in a room from two spherical panoramas. Its code name is StereoPano. It is still in a R&D stage, but we are glad to share some first results.

Basic idea is to shoot two 360×180° panoramas of the same room from two points of view. The second point of view is shot above the first one, so the shooting setup is very easy using the vertical column of a tripod. The only thing to do is to measure the distance from first point of view to second point of view. From these two panoramas, we use the concept of stereoscopy to compute a 3D estimate of the room walls and to extract useful information such as walls edges lengths. Let us explain in further detail the whole process of StereoPano.

First you have to shoot two 360×180° panoramas from two points of view with a vertical shift. Stitch them into your favorite stitching software (aka Autopano). Here is the top panorama:
And here is the bottom panorama:
Next step is to load the two panoramas in StereoPano and choose “Compute disparity”. This will lead to compute a depth map by comparing locally the two panoramas. The depth map stores in each pixel the depth computed by triangulation between the two points of view and the pairs of matched points. The deeper is the surface, the darker is the depth map, and vice-versa.

Now, one can select surfaces by clicking in the main window (like the Polygonal tool from Photoshop). This will help StereoPano to identify the main flat surfaces. From now, by choosing “Compute planes”, StereoPano will estimate the exact positions of the planes and display a RMS error for each plane. This RMS states for the RMS distance between 3D points and the plane.
StereoPano then intersects planes and displays edges (in red) and their lengths (in white) with their measure accuracy (under brackets). We have checked that lengths’ accuracy are good.

You can now export some visual results such as floor plan, room wireframe, or 3D point cloud.

[iframe width="615" height="376" src="http://www.youtube.com/embed/7_UJDZb5yJo?rel=0" frameborder="0" allowfullscreen]
Through this one year study, we found out that measurements were quite good if you take precaution during shooting. We are able to measure wall lengths with an accuracy of 2 centimeter at 5 meters, which is an average error really below 1%. We’ll continue to study what is possible to do with panorama to take measurement and perhaps even see if we can create 3D models out of panoramas. If you are interested into learning more about this prototype, feel free to contact us.
• #### Kevin | Sep 7, 2012 at 12 h 57 min

I find these developments very interesting. I will keep following the updates.

• #### Gerald | Sep 8, 2012 at 18 h 10 min

Ooh. I think I can see where this is going.

Shoot two full spherical panoramas, and then be able to “fly” around the result

• #### Paul Scott | Sep 9, 2012 at 20 h 07 min

Very interesting. Thanks for sharing

• #### Alessio | Sep 27, 2012 at 16 h 29 min

When is supposed will be possible to have a beta versione to test it ?

• #### philippe | Sep 28, 2012 at 9 h 25 min

Morning Alessio, thanks for your message. We know this application is quite interesting, but for the moment, it is just a R&D project. It needs to be fine tuned, some more options to be added, before we can think of putting it in beta.
Rgards. Philippe – Kolor team

• #### Frans vd Bemd | team Mapito | Dec 4, 2012 at 11 h 58 min

I am interested and try to keep following,

Little Note: the video doesn’t start….
Thanks for sharing.

• #### Michael | Jul 18, 2013 at 11 h 14 min

Is this software still in development?

• #### Kevin | Jan 29, 2014 at 3 h 04 min

any new developments? this is very a interesting application. maybe taking images from two completely different locations?

• #### Boaz Teixeira | Feb 6, 2014 at 18 h 08 min

I would like to have some news regards StereoPano