Support Topics
Support Topics / UC-win/Road Information related to maintenance and support services
SfM plugin
 

The following sections will introduce 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. Information such as the point cloud and camera positions can be analyzed from these photographs.
SfM plugins have various applications. For example, during travel on roads, by taking continuous photographs, it is possible to create a point cloud of the road and its surrounding environment. Without using specialized equipment like 3D laser scanners, it's also easy to reflect real-world objects into a VR space.
・SfM (Structure from Motion): A technology that estimates the position and orientation of a camera, as well as the 3D spatial coordinates of feature points within images, by analyzing multiple photographs. The estimated results can be displayed in a VR environment.

 SfM plugin features
The SfM plugin includes the following features:

Generating point clouds from photographs
Point clouds are generated by extracting information from images and videos captured by devices such as digital cameras and camcorders.

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

Calibration files for camera manufacturing
By importing chessboard images, analyzing lens focal lengths and characteristics, it is possible to correct image distortion and output the corrected image as a file.

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


■ Figure 1: Analytical process

Taking photos
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 performance parameters of the camera are needed for analysis. In cases where the photos do not have attached EXIF information, it is necessary to use a standard file generation method in grid mode.
・Exif (Exchangeable image file format): This is a specification for image file formats that allows for the addition and storage of information related to shooting conditions, along with the image data captured by digital cameras. It records parameters such as the date and time of capture, camera model name, resolution, exposure time, aperture value (F-number), focal length, ISO sensitivity, color space, and more, all within the image file.

Creating camera calibration files
Photos taken with single-lens reflex cameras can be used to generate camera standard files that contain calculation results for various parameters of digital cameras.

Creating Visual Words files
When using SfM analysis, it is possible to generate Visual Word files for quickly determining the similarity between photos. When analyzing a large number of photos, generating Visual Word files requires a significant amount of time; therefore, it is recommended to use the sample files that are included by default in the plugin.

SfM analysis
After reading the photo and camera standard files, as well as the Visual Words file, and adding various analysis conditions, execute the analysis.

Visualization in UC-win/Road
The SfM analysis is executed, and in three-dimensional space, it displays the viewpoint location, directional arrows, and also represents the point cloud.

You can click on the image to enlarge it.
■ Figure 2: Photos taken inside the showroom
You can click on the image to enlarge it.
■ Figure 3: Analysis results of the showroom photographs
 Analytical types

The SfM plugin can perform both real-time analysis and focused analysis. Real-time analysis involves analyzing images uploaded to a folder in temporary mode and generating point cloud data. However, this process consumes a large amount of memory. Focused analysis analyzes only the specified image(s) based on predefined settings and outputs an analysis model for those specific images. 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 photo 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 the structure becomes visible. After all image analyses are complete, check 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 or terminated prematurely, the starting image can be changed, images that were stopped during parsing are removed, and the analysis is re-executed.

Feature point detection algorithms
For algorithms used to detect feature points, there are two options available: SIFT and SURF.

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

SURF(Speed Up Robust Features)
The improved SIFT algorithm offers high speed, but compared to the original SIFT method, it has a slower processing speed while providing relatively lower accuracy.

You can click on the image to enlarge it.
■ Figure 4: The photograph taken
You can click on the image to enlarge it.
■ Figure 5: SfM plugin interface
You can click on the image to enlarge it.
■ Figure 6: Analysis results of the SfM plugin: point cloud, camera positions, and orientations
(Displays a white sphere and an arrow)
 Tips for using SfM plugins

When taking pictures, pay attention to the position of the subject being photographed. If the photograph does not fully capture the entire subject, it is impossible to determine the positional information of the subject, and a point cloud cannot be generated. (When processing in batches, it is essential to include 4 frontal photographs.)

Maintain a stable brightness in the shooting environment. During analysis, photos with excessive variations in light and dark will hinder proper recognition of the objects 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 changes in sunlight due to clouds. Analyzing these variations in light, whether from direct sunlight or overcast conditions, and adjusting the point cloud data allows it to be linked with a VR space.

The initial two photos used for analysis can affect the number of point cloud data points in the final output. If you perform an analysis and do not obtain a complete point cloud, adjusting the order of the photos within the SfM plugin can significantly improve the results.

When analyzing short-duration capture sequences, the feature point detection algorithm is prioritized based on "point cloud quantity," which may reduce the precision of the point clouds but will improve the accuracy of detecting the camera's position.



Previous page
 
Go to the homepage
(Up&Coming, Summer Issue 2016
Return
Up&Coming

FORUM8