Tiny toolbox on Photometric Stereo, with cast shadows emulation, & extended random surf. generation

This tiny toolbox consists of both self-sustainable m-scripts and 10 demo examples on P.Stereo.
631 Downloads
Updated 18 Feb 2014

View License

This is a tiny toolbox on Photometric Stereo initial implementations in Matlab, with extention, that including some algorithm of 3D surf. reconstruction, based on analyses of distrib. of cast shadows (called geometric approach to problem, in opposition to radiometric one, which is obviously P.Stereo).
The user, up to some degree, is free to choose its own scenario of data processing within frameworks of patchlet/pointwise P.Stereo methods, which are called on later the radiometric approach to the problem of monoscopic 3D surf. reconstruction.
Actually, this toolbox has desired feature of rendering with option of cast shadows (performing in older vers. of Matlab releases).

Finally, the 4 first examples consider only built-in random surfaces, while next exemplary given scenarios also include the generation of virtual cutting surfaces of abrasive tools.

Peculiarly, this toolbox also includes some evolved random surface generation process, with adoptions of Markov Chains and enourmously extended matrices of transient states probabilities.

Those matrices indicate constructions of digraphs, which in turn, are altogether built in such manner, as to be some analogy (quite purely and hipothetically) to structures known from nature. For instance, these are directed graphs resembling the structures of cyclic and policyclic organic compounds.

Therefore, in the result of running of extra those m-scripts, one actually obtains randomly generated anizotropic surfaces with grooves. The surfaces, where perhaps ductile materials are being plowed....

Apart from 10 exemplary issued scenarios (contained within 10 m-scripts from ex01st...m to ex10th..m files) the user is free to use self-sustainable m-scripts for rendering virtual images, as well as, for determinaion of vector gradient field, with subsequently occurred global 3D surf. reconstr., please see: 'PatchletPStereo.m' m-script.

RESUMING: this tiny toolbox on P.Stereo implement. in Matlab environm. lacks only one feature: it hasn't thresholding mechanism for input data of 2D imgs. Last Update on 18.Feb.2014 presents some of digraphs convolved with random anizotropic surface generation process.

Cite As

Artur Bernat (2024). Tiny toolbox on Photometric Stereo, with cast shadows emulation, & extended random surf. generation (https://www.mathworks.com/matlabcentral/fileexchange/45357-tiny-toolbox-on-photometric-stereo-with-cast-shadows-emulation-extended-random-surf-generation), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

PtchLetPStereoWCstShdwsMF/

PtchLetPStereoWCstShdwsMF/01st_BDemoThumbnails_in_PStereo/

PtchLetPStereoWCstShdwsMF/10th_ADemo_w_cast_shdwsRandMRFsurf/RandomGenSurfaces_RMF/

Version Published Release Notes
1.2.0.0

a PDF document, regarding exemplary given digraphs for transient states probabilities, has been slightly corrected with two addresses there included. Correction made on 18.Feb.14 PM

1.1.0.0

Update made on 18.Feb.2014, includes digraphs and corresponding matrices of transient states probabilities (only some of them), in PDF document, as examples of numerous digraphs structures used there.

1.0.0.0