2.15.4 cvExport


Menu Information

File: Export Image...

Brief Information

Export the active Image as file

Command Line Usage

cvExport type:=jpg name:=Image001 path:=D:\ImageFolder;

cvExport type:=tif dpi:=93 geotiff:=1 path:=D:\DataFile;

cvExport type:=avi name:=test_LT path:="C:\Users\user\Documents\OriginLab\User Files" fourcc:=WMV2;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
img

Input

ImageLayer

<active>

The image to export. The default is the active image.

File Type type

Input

int

0

Specify the export type.

Option List:

  • 0=bmp: BMP
  • 1=gif: GIF
  • 2=jpg: JPG
  • 3=png: PNG
  • 4=tif: TIF
  • 5=avi: AVI
All Frames all

Input

int

1

Export all frames.

Option List:

  • 0 = false
  • 1 = true
Frames Per Sec fps

Input

double

2

Frames per second. Only available when All Frames is specified.

DPI dpi

Input

int

96

Specify the DPI value.

Export as Grayscale GeoTIFF geotiff

Input

int

0

Specify whether to export the image as grayscale GeoTIFF, when export tif file (type:=tif).

Option List:

  • 0 = false
  • 1 = true
GeoTIFF Options tr

Input

TreeNode

<unassigned>

Specify the GeoTIFF image settings. When exporting the image as grayscale GeoTIFF file (geotiff:=1), you can specify GT Model, EPSG, Linear Units, Angular Units and Vertical Units. See Description, below for treenode details.

File Name name

Input

string

<auto>

Specify file name of the exported image.

File Path path

Input

string

path$

Specify the path of the exported image.

Width in Pixels width

Input

int

0

It is the width of the graph in pixels. This variable is read-only.

Height in Pixels height

Input

int

0

It is the height of the graph in pixels. This variable is read-only.

FourCC fourcc

Input

string

<unassigned>

For scripting AVI output. Supply the FourCC code (example in Command Line Usage, above). A few FourCC codes can be found in the LabTalk Reference.

Note: The Codec node, visible in the dialog, will be hidden from LabTalk access. The fourcc node will be used in LabTalk and this is what is output when you Generate Script (from the Dialog Theme menu).

Description

The cvExport function exports a image as an image file. Six export file types (BMP, GIF, JPG, PNG, TIF, AVI) are supported.

Details on Some Dialog Options

  • GeoTIFF Options
Please see this page for more details.

Related X-Functions

expImage


Keywords:export