|
XDMBandComplex Class
|
XDMBandComplex클래스는 Complex데이터를 입력받아 phase, magnitude, real, imaginary등의 데이터로 변경시킨다.
Inheritance Hierarchy
Namespace: Pixoneer.NXDL.NRSAssembly: NXDLrs (in NXDLrs.dll) Version: 2.0.3.38
Syntaxpublic class XDMBandComplex : XDMBand
The XDMBandComplex type exposes the following members.
Constructors
Methods
Example
Complex 데이터를 파일에서 로딩하여 출력을 manitude로 설정한 뒤 XDM 파일로 저장하는 예제이다.
XRasterIO RasterIO = new XRasterIO();
String strError = "";
if (RasterIO.Initialize(out strError) == false)
{
return;
}
String strFilePathLoad = "D:\\Sample\\RS_Sample\\Complex\\20090324.xdm";
XRSLoadFile xrsFileInput = RasterIO.LoadFile(strFilePathLoad, out strError, false, eIOCreateXLDMode.All_NoMsg);
XBandParamComplex InputParam = new XBandParamComplex();
InputParam.SrcBand = xrsFileInput.GetBandAt(0);
InputParam.OutputType = eComplexOutType.Magnitude;
XDMBandComplex bandProcess = new XDMBandComplex();
if (!bandProcess.SetInputParam(ref InputParam))
{
return;
}
XRSSaveFile fileSave = new XRSSaveFile();
XDMBand bandCast = (XDMBand)bandProcess;
fileSave.AddBand(ref bandCast);
XThread thd = null;
String strFilePathSave = "D:\\Sample\\Out_Complex.xdm";
if (!RasterIO.Export(ref fileSave, strFilePathSave, "XDM", out strError, thd))
{
return;
}
See Also