4.4.4 Ply 3D files generation

Generate a 3D Ply file from a DEM and a color image.

Detailed description

Generate a 3D Ply file from a DEM and a color image.

Parameters

This section describes in details the parameters available for this application. Table 4.52, page 532 presents a summary of these parameters and the parameters keys to be used in command-line and programming languages. Application key is GeneratePlyFile.





Parameter key

Parameter type

Parameter description




indem

Input image

The input DEM

mode

Choices

Conversion Mode

mode dem

Choice

DEM

mode 3dgrid

Choice

3D grid

map

Choices

Output Cartographic Map Projection

map utm

Choice

Universal Trans-Mercator (UTM)

map lambert2

Choice

Lambert II Etendu

map lambert93

Choice

Lambert93

map wgs

Choice

WGS 84

map epsg

Choice

EPSG Code

map.utm.zone

Int

Zone number

map.utm.northhem

Boolean

Northern Hemisphere

map.epsg.code

Int

EPSG Code

incolor

Input image

The input color image

out

Output File name

The output Ply file

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.52: Parameters table for Ply 3D files generation.

The input DEM The input DEM

Conversion Mode Available choices are:

Output Cartographic Map Projection Parameters of the output map projection to be used. Available choices are:

The input color image The input color image

The output Ply file The output Ply file

Load otb application from xml file Load otb application from xml file

Save otb application to xml file Save otb application to xml file

Example

To run this example in command-line, use the following:

otbcli_GeneratePlyFile -indem image_dem.tif -out out.ply -incolor image_color.tif

To run this example from Python, use the following code snippet:

#!/usr/bin/python 
 
# Import the otb applications package 
import otbApplication 
 
# The following line creates an instance of the GeneratePlyFile application 
GeneratePlyFile = otbApplication.Registry.CreateApplication("GeneratePlyFile") 
 
# The following lines set all the application parameters: 
GeneratePlyFile.SetParameterString("indem", "image_dem.tif") 
 
GeneratePlyFile.SetParameterString("out", "out.ply") 
 
GeneratePlyFile.SetParameterString("incolor", "image_color.tif") 
 
# The following line execute the application 
GeneratePlyFile.ExecuteAndWriteOutput()

Authors

This application has been written by OTB-Team.