ReadImageInfo¶
获取有关该图像的信息
描述¶
显示有关输入图像的信息,如:图像大小、原点、间距、元数据、投影...
参数¶
Input Image -in image Mandatory
Input image to analyse
Display the image metadata -imagemetadata bool Default value: false
Output the image metadata. It contains metadata information (sensor model, geometry ). Information is stored as pairs of key/value.
Write the image metadata to a geom file -outgeom filename [dtype]
This option allows extracting the image metadata of the image into a geom file.
Start index X -indexx int Mandatory
X start index
Start index Y -indexy int Mandatory
Y start index
Size X -sizex int Mandatory
X size (in pixels)
Size Y -sizey int Mandatory
Y size (in pixels)
Pixel Size X -spacingx float Mandatory
Pixel size along X (in physical units)
Pixel Size Y -spacingy float Mandatory
Pixel size along Y (in physical units)
Image Origin X -originx float Mandatory
Origin along X
Image Origin Y -originy float Mandatory
Origin along Y
Estimated ground spacing X -estimatedgroundspacingx float Mandatory
Estimated ground spacing along X (in meters).
Estimated ground spacing Y -estimatedgroundspacingy float Mandatory
Estimated ground spacing along Y (in meters).
Number Of Bands -numberbands int Mandatory
Number of bands
Data type -datatype string Mandatory
Data type
Sensor id -sensor string Mandatory
Sensor identifier
Image id -id string Mandatory
Image identifier
Acquisition time -time string Mandatory
Acquisition time.
Upper left latitude -ullat float Default value: 0
Latitude of the upper left corner.
Upper left longitude -ullon float Default value: 0
Longitude of the upper left corner.
Upper right latitude -urlat float Default value: 0
Latitude of the upper right corner.
Upper right longitude -urlon float Default value: 0
Longitude of the upper right corner.
Lower right latitude -lrlat float Default value: 0
Latitude of the lower right corner.
Lower right longitude -lrlon float Default value: 0
Longitude of the lower right corner.
Lower left latitude -lllat float Default value: 0
Latitude of the lower left corner.
Lower left longitude -lllon float Default value: 0
Longitude of the lower left corner.
Nearest town -town string Mandatory
Main town near center of image
Country -country string Mandatory
Country of the image
默认RGB显示¶
这组参数提供有关默认RGB合成的信息。
Red Band -rgb.r int Default value: 1
Red band Number
Green Band -rgb.g int Default value: 2
Green band Number
Blue Band -rgb.b int Default value: 3
Blue band Number
Projection -projectionref string Mandatory
Projection Coordinate System
地面控制点信息¶
这组参数提供有关所有GCP的信息。
GCPs Number -gcp.count int Default value: 0
Number of GCPs
GCP Projection -gcp.proj string Mandatory
Projection Coordinate System for GCPs
GCPs Id -gcp.ids string1 string2... Mandatory
GCPs identifier
GCPs Info -gcp.info string1 string2... Mandatory
GCPs Information
GCPs Image Coordinates -gcp.imcoord string1 string2... Mandatory
GCPs Image coordinates
GCPs Geographic Coordinates -gcp.geocoord string1 string2... Mandatory
GCPs Geographic Coordinates
Metadata -metadata string Mandatory
Image metadata
实例¶
从命令行执行以下操作:
otbcli_ReadImageInfo -in QB_Toulouse_Ortho_XS.tif
来自Python的评论:
import otbApplication
app = otbApplication.Registry.CreateApplication("ReadImageInfo")
app.SetParameterString("in", "QB_Toulouse_Ortho_XS.tif")
app.ExecuteAndWriteOutput()