5.1.8 Quick Look

Generates a subsampled version of an image extract

Detailed description

Generates a subsampled version of an extract of an image defined by ROIStart and ROISize.
This extract is subsampled using the ratio OR the output image Size.

Parameters

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




Parameter key

Parameter type

Parameter description




in

Input image

Input Image

out

Output image

Output Image

cl

List

Channel List

rox

Int

ROI Origin X

roy

Int

ROI Origin Y

rsx

Int

ROI Size X

rsy

Int

ROI Size Y

sr

Int

Sampling ratio

sx

Int

Size X

sy

Int

Size Y

inxml

XML input parameters file

Load otb application from xml file

outxml

XML output parameters file

Save otb application to xml file








Figure 5.8: Parameters table for Quick Look.

Example

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

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

Limitations

This application does not provide yet the optimal way to decode coarser level of resolution from JPEG2000 images (like in Monteverdi).
Trying to subsampled huge JPEG200 image with the application will lead to poor performances for now.

Authors

This application has been written by OTB-Team.