Easy3DPhotometricStereo

Support

Required licenses

Easy3D

Recommended images

The images from the folder Sample Images\3D\Easy3DMatch\E3DMatchPointCloudMerger

Location

[…]C:\Users\Public\Documents\Euresys\Open eVision 24.02\Sample Programs
\[LANGUAGE] samples
\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.
photometricStereoImager_.Compute(rois);
3. Compute the mean curvatures and retrieve them in an EImageBW8 with high contrast.
meanCurvHighContrast_ = photometricStereoImager_.ComputeMeanCurvatures(EPhotometricStereoContrast.HighContrast));