Easy3DPhotometricStereo
Support |
|
||||||
Required licenses |
Easy3D |
||||||
Recommended images |
The images from the folder Sample Images\3D\Easy3DMatch\E3DMatchPointCloudMerger |
||||||
Location |
3D Processing\Easy3DPhotometricStereo \ |
||||||
![]()
|
Purpose
This sample program demonstrates how to:
□ | Apply photometric stereo to several images to retrieve their albedo, gradients, curvatures or height map. |
Code highlights
Use the recommended images:
□ | Calibration: the 4 calibration_* files. |
□ | Sample: either the 4 object2_* or the 4 shoe_* files. |
1. | Calibrate the imager from images of a sphere and retrieve a score. |
calibrationScore_ = photometricStereoImager_.CalibrateFromSphere(rois);
2. | Compute the intermediary photometric stereo results from the images of 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.. |
photometricStereoImager_.Compute(rois);
3. | Compute the mean curvatures and retrieve them in an EImageBW8 with high contrast. |
meanCurvHighContrast_ = photometricStereoImager_.ComputeMeanCurvatures(EPhotometricStereoContrast.HighContrast));