HALCON Reference Manual 10.0.2
Table of Contents / 3D Reconstruction / Photometric Stereo ClassesClassesClasses | | | Operators

phot_stereoT_phot_stereophot_stereoPhotStereoPhotStereo (Operator)

Name

phot_stereoT_phot_stereophot_stereoPhotStereoPhotStereo — Reconstruct a surface from at least three gray value images.

Signature

phot_stereo(Images : Height : Slants, Tilts : )

Herror T_phot_stereo(const Hobject Images, Hobject* Height, const Htuple Slants, const Htuple Tilts)

Herror phot_stereo(Hobject Images, Hobject* Height, const HTuple& Slants, const HTuple& Tilts)

HImage HImage::PhotStereo(const HTuple& Slants, const HTuple& Tilts) const

void HOperatorSetX.PhotStereo(
[in] IHUntypedObjectX* Images, [out] IHUntypedObjectX*Height, [in] VARIANT Slants, [in] VARIANT Tilts)

IHImageX* HImageX.PhotStereo(
[in] VARIANT Slants, [in] VARIANT Tilts)

static void HOperatorSet.PhotStereo(HObject images, out HObject height, HTuple slants, HTuple tilts)

HImage HImage.PhotStereo(HTuple slants, HTuple tilts)

Description

phot_stereophot_stereophot_stereoPhotStereoPhotStereo reconstructs a surface (i.e., the relative height of each image point) using the algorithm of Woodham from at least three gray value images given by the multi-channel image ImagesImagesImagesImagesimages. The light sources corresponding to the individual images are given by the parameters SlantsSlantsSlantsSlantsslants and TiltsTiltsTiltsTiltstilts and are assumed to lie infinitely far away. As phot_stereophot_stereophot_stereoPhotStereoPhotStereo internally uses a fast Fourier transform, the runtime of the operator can be influenced by a previous call to optimize_fft_speedoptimize_fft_speedoptimize_fft_speedOptimizeFftSpeedOptimizeFftSpeed.

Attention

phot_stereophot_stereophot_stereoPhotStereoPhotStereo assumes that the heights are to be extracted on a lattice with step width 1. If this is not the case, the calculated heights must be multiplied by the step width after the call to phot_stereophot_stereophot_stereoPhotStereoPhotStereo. A Cartesian coordinate system with the origin in the lower left corner of the image is used internally. All given images must be byte-images. At least three images must be given in a multi-channel image. SlantsSlantsSlantsSlantsslants and TiltsTiltsTiltsTiltstilts must contain exactly as many light sources as the number of channels in ImagesImagesImagesImagesimages. At least three of the light source directions must be linearly independent.

Parallelization

Parameters

ImagesImagesImagesImagesimages (input_object)  (multichannel-)image objectHImageHImageHImageXHobject (byte / uint2)

Shaded input image with at least three channels.

HeightHeightHeightHeightheight (output_object)  image objectHImageHImageHImageXHobject * (real)

Reconstructed height field.

SlantsSlantsSlantsSlantsslants (input_control)  angle.deg-array HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)

Angle between the light sources and the positive z-axis (in degrees).

Default value: 45.0

Suggested values: 1.0, 5.0, 10.0, 20.0, 40.0, 60.0, 90.0

Typical range of values: 0.0 ≤ Slants Slants Slants Slants slants ≤ 180.0 (lin)

Minimum increment: 0.01

Recommended increment: 10.0

TiltsTiltsTiltsTiltstilts (input_control)  angle.deg-array HTupleHTupleVARIANTHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong) (double / Hlong)

Angle between the light source and the x-axis after projection into the xy-plane (in degrees).

Default value: 45.0

Suggested values: 1.0, 5.0, 10.0, 20.0, 40.0, 60.0, 90.0

Typical range of values: 0.0 ≤ Tilts Tilts Tilts Tilts tilts ≤ 360.0 (lin)

Minimum increment: 0.01

Recommended increment: 10.0

Result

If all parameters are correct phot_stereophot_stereophot_stereoPhotStereoPhotStereo returns the value 2 (H_MSG_TRUE). Otherwise, an exception is raised.

Possible Predecessors

estimate_sl_al_lrestimate_sl_al_lrestimate_sl_al_lrEstimateSlAlLrEstimateSlAlLr, estimate_sl_al_zcestimate_sl_al_zcestimate_sl_al_zcEstimateSlAlZcEstimateSlAlZc, estimate_tilt_lrestimate_tilt_lrestimate_tilt_lrEstimateTiltLrEstimateTiltLr, estimate_tilt_zcestimate_tilt_zcestimate_tilt_zcEstimateTiltZcEstimateTiltZc

Possible Successors

shade_height_fieldshade_height_fieldshade_height_fieldShadeHeightFieldShadeHeightField

Module

3D Metrology


Table of Contents / 3D Reconstruction / Photometric Stereo ClassesClassesClasses | | | Operators
HALCON Reference Manual 10.0.2 Copyright © 1996-2011 MVTec Software GmbH