Skip to content

Database Stanford

David Cardinal edited this page Oct 12, 2021 · 5 revisions

Getting Scenes via ieWebGet

Some common pbrt scenes (and other image assets) are stored on publicly-accessible Stanford web servers. To make working with them easier, isetcam includes a wrapper function, ieWebGet(), that knows how to find, download, and if needed unpack them into the data folder of iset3d (or of isetcam if appropriate). Most of our tutorials and scripts use this function already, so you can look at them for examples of pulling down scenes for yourself.

Usage:

localFile = ieWebGet(varargin)  

Description of ieWebGet():

Download an ISET zip or mat-file file from the web.  The type of file   and the remote file name define how the file will be retrieved.  

Inputs:

Key/val pairs:

op:                 The operation to perform {'fetch','read','list','browse'}  (default: 'fetch')     
resource type:      {'pbrt', 'hyperspectral', 'multispectral', 'hdr'}          (default: 'pbrt')     
resource name:      File name of the remote file     
remove temp files:  Remove local temp file (zip)     
unzip:              Unzip the file     
verbose             Print a report to the command window  Output      
localFile:  Name of the local download file  

Note: To see the available resources use the 'list' operation.

See also:

webImageBrowser_mlapp

Clone this wiki locally