ComputeModulusAndPhase¶
这个应用程序计算复数SAR图像或具有2个分量(实部和虚部)的图像的模和相位。
描述¶
这个应用程序计算复杂的SAR图像的模数和相位。输入应该是具有复数像素的单波段图像或双波段图像(单独波段中的实部和虚部)。
这个应用程序有几个输出图像,并支持“多写”。不是独立地计算和写入每个图像,而是以同步的方式为每个输出写入流图像块。输出图像将逐条计算,使用可用的RAM计算条带大小,并且可以使用流扩展文件名(类型、模式和值)指定用户定义的流模式。请注意,可以使用多写扩展文件名选项禁用多写,在这种情况下,将逐个写入输出图像。请注意,MPI编写器不支持多重写入。
参数¶
Input Image -in image
Mandatory
Input image (complex single band or 2 bands (real/imaginary parts))
Modulus -modulus image [dtype]
Mandatory
Modulus of the input image computes with the
following formula: \sqrt{real*real + imag*imag} where real and imag
are respectively the real and the imaginary part of the input complex image.
Phase -phase image [dtype]
Mandatory
Phase of the input image computes with the following formula:
\tan^{-1}(\frac{imag}{real}) where real and imag are respectively the real and
the imaginary part of the input complex image.
Available RAM (MB) -ram int
Default value: 256
Available memory for processing (in MB).
实例¶
从命令行执行以下操作:
otbcli_ComputeModulusAndPhase -in monobandComplexFloat.tif -modulus modulus.tif -phase phase.tif
来自Python的评论:
import otbApplication
app = otbApplication.Registry.CreateApplication("ComputeModulusAndPhase")
app.SetParameterString("in", "monobandComplexFloat.tif")
app.SetParameterString("modulus", "modulus.tif")
app.SetParameterString("phase", "phase.tif")
app.ExecuteAndWriteOutput()
局限性¶
该应用程序将具有复数像素的单波段图像或双波段图像(实部和虚部在不同的波段中)作为输入。