Click or drag to resize
XDL

XDMBandComplex Class

XDMBandComplex클래스는 Complex데이터를 입력받아 phase, magnitude, real, imaginary등의 데이터로 변경시킨다.
Inheritance Hierarchy
SystemObject
  Pixoneer.NXDL.NRSXDMBand
    Pixoneer.NXDL.NRSXDMBandComplex

Namespace: Pixoneer.NXDL.NRS
Assembly: NXDLrs (in NXDLrs.dll) Version: 2.0.3.38
Syntax
C#
public class XDMBandComplex : XDMBand

The XDMBandComplex type exposes the following members.

Constructors
 NameDescription
Public methodXDMBandComplex XDMBandComplex클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다.
Top
Methods
 NameDescription
Public methodGetInputParam 객체에 설정된 입력 변수를 얻는다.
Public methodSetInputParam Complex를 입력으로 받아 다른 데이터 타입으로 변경하기 위한 입력 변수를 설정한다.
Top
Example
Complex 데이터를 파일에서 로딩하여 출력을 manitude로 설정한 뒤 XDM 파일로 저장하는 예제이다.
C#
// IO initialize to load image file
XRasterIO RasterIO = new XRasterIO();
String strError = "";
if (RasterIO.Initialize(out strError) == false)
{
    return;
}

// Image load
String strFilePathLoad = "D:\\Sample\\RS_Sample\\Complex\\20090324.xdm";
XRSLoadFile xrsFileInput = RasterIO.LoadFile(strFilePathLoad, out strError, false, eIOCreateXLDMode.All_NoMsg);

// Set input param
XBandParamComplex InputParam = new XBandParamComplex();
InputParam.SrcBand = xrsFileInput.GetBandAt(0);
InputParam.OutputType = eComplexOutType.Magnitude;

// Create New process band and set input param
XDMBandComplex bandProcess = new XDMBandComplex();
// 입력 밴드(SrcBand)가 Complex Band가 아닌 경우에는 실패. 밴드의 complex 데이터 여부는 XDMBand.IsBandComplex() 함수로 확인
if (!bandProcess.SetInputParam(ref InputParam))
{
    return;
}

// create XRSSaveFile to save realtime band(XDMBandXXXX)
XRSSaveFile fileSave = new XRSSaveFile();
XDMBand bandCast = (XDMBand)bandProcess;

fileSave.AddBand(ref bandCast);

// Save output file
XThread thd = null;
String strFilePathSave = "D:\\Sample\\Out_Complex.xdm";
if (!RasterIO.Export(ref fileSave, strFilePathSave, "XDM", out strError, thd))
{
    return;
}
See Also