4.1.10 Read image information

Get information about the image

Detailed description

Display information about the input image like: image size, origin, spacing, metadata, projections...

Parameters

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





Parameter key

Parameter type

Parameter description




in

Input image

Input Image

keywordlist

Boolean

Display the OSSIM keywordlist

outkwl

Output File name

Write the OSSIM keywordlist to a geom file

indexx

Int

Start index X

indexy

Int

Start index Y

sizex

Int

Size X

sizey

Int

Size Y

spacingx

Float

Pixel Size X

spacingy

Float

Pixel Size Y

originx

Float

Image Origin X

originy

Float

Image Origin Y

estimatedgroundspacingx

Float

Estimated ground spacing X

estimatedgroundspacingy

Float

Estimated ground spacing Y

numberbands

Int

Number Of Bands

sensor

String

Sensor id

id

String

Image id

time

String

Acquisition time

ullat

Float

Upper left lattitude

ullon

Float

Upper left longitude

urlat

Float

Upper right lattitude

urlon

Float

Upper right longitude

lrlat

Float

Lower right lattitude

lrlon

Float

Lower right longitude

lllat

Float

Lower left lattitude

lllon

Float

Lower left longitude

town

String

Nearest town

country

String

Country

rgb

Group

Default RGB Display

rgb.r

Int

Red Band

rgb.g

Int

Green Band

rgb.b

Int

Blue Band

projectionref

String

Projection

keyword

String

Keywordlist

gcp

Group

Ground Control Points information

gcp.count

Int

GCPs Number

gcp.proj

String

GCP Projection

gcp.ids

String list

GCPs Id

gcp.info

String list

GCPs Info

gcp.imcoord

String list

GCPs Image Coordinates

gcp.geocoord

String list

GCPs Geographic Coordinates

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file











Table 4.20: Parameters table for Read image information.

Input Image Input image to analyse

Display the OSSIM keywordlist Output the OSSIM keyword list. It contains metadata information (sensor model, geometry ). Information is stored in keyword list (pairs of key/value)

Write the OSSIM keywordlist to a geom file This option allows extracting the OSSIM keywordlist of the image into a geom file.

Start index X X start index

Start index Y Y start index

Size X X size (in pixels)

Size Y Y size (in pixels)

Pixel Size X Pixel size along X (in physical units)

Pixel Size Y Pixel size along Y (in physical units)

Image Origin X Origin along X

Image Origin Y Origin along Y

Estimated ground spacing X Estimated ground spacing along X (in meters).

Estimated ground spacing Y Estimated ground spacing along Y (in meters).

Number Of Bands Number of bands

Sensor id Sensor identifier

Image id Image identifier

Acquisition time Acquisition time.

Upper left lattitude Lattitude of the upper left corner.

Upper left longitude Longitude of the upper left corner.

Upper right lattitude Lattitude of the upper right corner.

Upper right longitude Longitude of the upper right corner.

Lower right lattitude Lattitude of the lower right corner.

Lower right longitude Longitude of the lower right corner.

Lower left lattitude Lattitude of the lower left corner.

Lower left longitude Longitude of the lower left corner.

Nearest town Main town near center of image

Country Country of the image

Default RGB Display This group of parameters provide information about the default rgb composition.

Projection Projection Coordinate System

Keywordlist Image keyword list

Ground Control Points information This group of parameters provide information about all GCPs.

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_ReadImageInfo -in QB_Toulouse_Ortho_XS.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 ReadImageInfo application 
ReadImageInfo = otbApplication.Registry.CreateApplication("ReadImageInfo") 
 
# The following lines set all the application parameters: 
ReadImageInfo.SetParameterString("in", "QB_Toulouse_Ortho_XS.tif") 
 
# The following line execute the application 
ReadImageInfo.ExecuteAndWriteOutput()

Limitations

None

Authors

This application has been written by OTB-Team.