![]() | XDMBandComplex Class |
Namespace: Pixoneer.NXDL.NRS
public class XDMBandComplex : XDMBand
The XDMBandComplex type exposes the following members.
Name | Description | |
---|---|---|
![]() | XDMBandComplex | XDMBandComplex클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다. |
Name | Description | |
---|---|---|
![]() | GetInputParam |
this객체에 설정도니 입력 변수를 얻는다.
|
![]() | SetInputParam |
Complex를 입력으로 받아 다른 데이터 타입으로 변경하기 위한 입력 변수를 설정한다.
|
// 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; }