Skip to content

uncalibrated_photometric_stereouncalibrated_photometric_stereoUncalibratedPhotometricStereoUncalibratedPhotometricStereouncalibrated_photometric_stereoT_uncalibrated_photometric_stereoπŸ”—

Short descriptionπŸ”—

uncalibrated_photometric_stereouncalibrated_photometric_stereoUncalibratedPhotometricStereoUncalibratedPhotometricStereouncalibrated_photometric_stereoT_uncalibrated_photometric_stereo β€” Reconstruct a surface from several, differently illuminated images.

SignatureπŸ”—

uncalibrated_photometric_stereo( image Images, out image NormalField, out image Gradient, out image Albedo, string ResultType )uncalibrated_photometric_stereo( Images : NormalField, Gradient, Albedo : ResultType : )void UncalibratedPhotometricStereo( const HObject& Images, HObject* NormalField, HObject* Gradient, HObject* Albedo, const HTuple& ResultType )static void HOperatorSet.UncalibratedPhotometricStereo( HObject images, out HObject normalField, out HObject gradient, out HObject albedo, HTuple resultType )def uncalibrated_photometric_stereo( images: HObject, result_type: Sequence[str] ) -> Tuple[HObject, HObject, HObject]

Herror T_uncalibrated_photometric_stereo( const Hobject Images, Hobject* NormalField, Hobject* Gradient, Hobject* Albedo, const Htuple ResultType )

HImage HImage::UncalibratedPhotometricStereo( HImage* Gradient, HImage* Albedo, const HTuple& ResultType ) const

HImage HImage.UncalibratedPhotometricStereo( out HImage gradient, out HImage albedo, HTuple resultType )

DescriptionπŸ”—

uncalibrated_photometric_stereoUncalibratedPhotometricStereo can be used to extract high-frequency surface details from a given object with no prior knowledge about the illumination, geometry and reflectance of the object. The geometry of interest can be for example dents, folds or scratches. The operator can usually not be used for measuring the overall shape of an object. The operator returns the normals NormalFieldnormalFieldnormal_field of the surface as a 3-channel image with each image encoding a component of the normal. This is used as a visualization of the result as a color coded image. Further, it returns the Gradientgradientgradient and the Albedoalbedoalbedo of the surface. Currently only ResultTyperesultTyperesult_type 'all'"all" is supported. This operator is related to photometric_stereoPhotometricStereo, but does not require known (i.e. previously calibrated) light directions. Note that photometric_stereoPhotometricStereo is faster and more accurate, but needs the light direction information. For sensible results an orthographic projection of the camera is assumed for both the calibrated and uncalibrated case. This is typically reached by using a telecentric lens or at least a lens with a long focal distance.

The operator requires at least three images of the same object, taken with a static, non-moving camera and different lighting directions for each image. For best results, the object should exhibit Lambertian reflection properties, no inter-reflection or shadow castings.

Execution informationπŸ”—

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Automatically parallelized on internal data level.

ParametersπŸ”—

Imagesimagesimages (input_object) singlechannelimage(-array) β†’ object (byte / uint2)object (byte / uint2)HObject (byte / uint2)HImage (byte / uint2)HObject (byte / uint2)Hobject (byte / uint2)

The input images with different illumination.

NormalFieldnormalFieldnormal_field (output_object) image(-array) β†’ object (real)object (real)HObject (real)HImage (real)HObject (real)Hobject * (real)

The normal field of the surface.

Gradientgradientgradient (output_object) image β†’ object (vector_field)object (vector_field)HObject (vector_field)HImage (vector_field)HObject (vector_field)Hobject * (vector_field)

The gradient field of the surface .

Albedoalbedoalbedo (output_object) image β†’ object (real)object (real)HObject (real)HImage (real)HObject (real)Hobject * (real)

The albedo of the surface.

ResultTyperesultTyperesult_type (input_control) string-array β†’ (string)(string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

The result type.

Default: 'all'"all"
List of values: 'all'"all"

ExampleπŸ”—

(HDevelop)


* read severally illuminated images
FName := 'photometric_stereo/pharma_braille_0' + [1:4] + '.png'
read_image(Images, FName)
* extract surface normals, gradients and albedo from images
uncalibrated_photometric_stereo(Images, NormalField, Gradient, Albedo, 'all')
derivate_vector_field (Gradient, Result, 0.1, 'mean_curvature')
reconstruct_height_field_from_gradient (Gradient, HeightField, 'poisson', \
                                        [], [])

ResultπŸ”—

The operator uncalibrated_photometric_stereoUncalibratedPhotometricStereo returns the NormalFieldnormalFieldnormal_field for the given images as well as the appropriate gradients for each pixel and the Albedoalbedoalbedo of the object.

Combinations with other operatorsπŸ”—

Combinations

Alternatives

photometric_stereoPhotometricStereo

See also

photometric_stereoPhotometricStereo

ReferencesπŸ”—

H. Hayakawa: β€œPhotometric stereo under a light source with arbitrary motion”. Journal Optical Society America, Vol. 11, No. 11/November 1994.

ModuleπŸ”—

3D Metrology