Support Topics


Support theme/UC-win/Road
SfM plugin

 

The following describes the new features of UC-win/Road Ver.11 and the SfM plugin. The SfM plugin reconstructs three-dimensional coordinates (point clouds) within a VR space by analyzing multiple photographs.

 What is an SfM (Structure from Motion) plugin?

Using the SfM plugin, it is possible to analyze the camera's position from multiple photographs taken, automatically generate a 3D point cloud model of the subject, and display it in UC-win/Road. This information, including the point cloud and camera positions, can be extracted from these photographs.
SfM plugins have various uses. For example, while driving on a road, by taking continuous photographs, it is possible to create a point cloud of the road and its surroundings. Without using specialized equipment like 3D laser scanners, it's also easy to reflect real-world objects in a VR space.

 SfM plugin features
The SfM plugin has the following features:

Generate point clouds from images
Information such as photos and images from devices like digital cameras and camcorders is extracted to generate point clouds.

Adjusting the representation of point clouds
Adjust the representation of the output point cloud on UC-win/Road to ensure accuracy. By adjusting size, position, and angle, achieve accurate overlap between multiple point cloud datasets, VR models, and point cloud data.

Standard files for generating images
By inputting an image of the chessboard, analyzing the lens's focal length and characteristics, it is possible to correct distortions in the image and output the result as a file.

Generate VisualWords file
When generating point cloud data, a VisualWords file is also generated as output.


■ Figure 1: Steps of the analysis

Photography and image formation
Use a digital camera to take photographs in the space where you want to generate a three-dimensional point cloud. Because a large number of photos are required, it is necessary to move around while taking pictures. Also, when using SfM (Structure from Motion) plugins, the camera's performance parameters are needed for analysis. If the photos do not have attached EXIF information, it is necessary to use a standard file format in grid mode.
・Exif (Exchangeable image file format): When using photos in various formats, this feature adds information related to the shooting conditions and saves it along with the image. It allows you to save parameters such as shooting time, camera model, resolution, exposure time, focal length, ISO sensitivity, etc., together with the image.

Generate camera standard files
Photos taken with a single-lens reflex camera can be used to generate standard camera files that contain calculated values for various parameters of digital cameras.

Generate Visual Words files
When using SfM analysis, a Visual Word file can be generated to quickly determine the similarity between photos. Analyzing a large number of photos and generating a Visual Words file requires a significant amount of time; therefore, it is recommended to use the sample files included with the plugin beforehand.

SfM analysis
After reading photo and camera standard files, Visual Words files, and incorporating various analysis conditions, the analysis is executed.

Achieving visualization with UC-win/Road
The SfM analysis allows for the display of viewpoint positions in three-dimensional space, along with directional arrows, and also visualizes the point cloud.

Click on the image to enlarge it.
■ Figure 2: Photograph of the exhibition hall
Click on the image to enlarge it.
■ Figure 3: Analysis of photographs of the exhibition hall
 Analytical types

The SfM plugin can perform real-time analysis and focused analysis. Real-time analysis involves instantaneously analyzing images uploaded to a folder and generating point cloud data. However, this consumes a large amount of memory. Focused analysis allows you to specify target images beforehand, and only analyzes the specified images to output an analysis model. This type of analysis does not consume as much memory, but it can only process consecutive photos; it cannot produce analysis results for non-consecutive photos.

Key analysis
Select the image for analysis, set the analysis conditions, and then start the analysis to calculate the viewpoint positions in the photo and represent them in three-dimensional space. As the analysis progresses, the number of point cloud data increases, and structures become visible. After all image analyses are complete, confirm the point cloud data in the space. If the number of point clouds is too small, select "prioritize point cloud quantity" as the analysis condition and run the analysis again.
Alternatively, in cases where analysis is interrupted midway, the process starts with the initial image, removes images that were stopped during parsing, and then re-executes the parsing.

Feature point detection algorithms
As algorithms for detecting feature points, SIFT and SURF are available options.

SIFT(Scale Invariant Feature Transform)
The algorithms for detecting feature points and recording feature values, along with reasons such as variations in standards or rotations, are documented. Compared to SURF, it has a relatively slower processing speed but offers high recognition accuracy.

SURF(Speed Up Robust Features)
The fast algorithm developed after improving SIFT offers faster processing speeds compared to the original SIFT method, but its recognition accuracy is relatively lower.

Click on the image to enlarge it.
■ Figure 4: Photos taken
Click on the image to enlarge it.
■ Figure 5: SfM plugin interface
Click on the image to enlarge it.
■ Figure 6: Analysis results of the SfM plugin: point cloud, camera position, and orientation
(White body with a white arrow indicator)
 Small tips for using SfM plugins

When taking pictures, pay attention to the position of the object being photographed. If the photograph does not fully capture the entire object, it is impossible to determine the positional information of the object, and a point cloud cannot be generated.

Maintain a stable brightness in the shooting environment. During analysis, photographs with excessive variations in light and dark can hinder proper recognition of the object being analyzed. For example, when shooting indoors, close the windows to block external light and use artificial lighting. When shooting outdoors, cloudy days are preferable because sunny days often have significant fluctuations in light due to clouds. Analyze these changes in light, whether it's direct sunlight or overcast conditions, and adjust the point cloud functionality to connect it with a VR space.

The initial two photos used for analysis can affect the final number of points in the point cloud. If the analysis is performed but a complete point cloud does not appear, adjusting the order of the photos within the SfM plugin can significantly improve the results.

When the analysis time is short, prioritize the feature point detection algorithm by setting it to "[Prioritize point cloud quantity]". While this may reduce the precision of the point clouds, it will improve the success rate of detecting the shooting location.



Previous page
 
Return
(Featured in the Summer Issue of Up&Coming '16)
Up&Coming