Easy3DLaserLineExtract
Support |
|
||||||
Required licenses |
Easy3DLaserLine |
||||||
Recommended images |
The images from the folder Sample Images\3D\Profiles |
||||||
Location |
3D Processing\Easy3DLaserLineExtract \ |
||||||
![]()
|
Purpose
This sample program demonstrates how to:
□ | Create a depth map from a series of profile images using the software laser line extractor. |
Code highlights
1. | Given a profile image, create the laser line extractor with the correct frame size and count. |
ELaserLineExtractor* laserLineExtractor_ = new ELaserLineExtractor(frameWidth, frameHeight, depthMapHeight);
2. | Load a new image and extract the profile data. The depth map lines are accumulated in the object In a general content, the term object should be understood with the meaning of a class instance. In EasyObject, an object is a maximally-sized area of adjacent connected pixels belonging to the layer foreground. ELaserLineExtractor. |
currentFrame_.Load(*it);
laserLineExtractor_->ExtractProfileFromFrame(currentFrame_);
3. | Save the completed Depth Map as an image file to the “path” file. |
laserLineExtractor_->GetDepthMap().SaveImage(path);