![]() | XDMBand2DMem Class |
Namespace: Pixoneer.NXDL.NRS
public class XDMBand2DMem : XDMBand
The XDMBand2DMem type exposes the following members.
Name | Description | |
---|---|---|
![]() | XDMBand2DMem | XDMBand2DMem 클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다. |
Name | Description | |
---|---|---|
![]() | GetInputParam | 설정된 입력 변수를 얻는다. |
![]() | SetInputParam | 입력 매개변수를 설정한다. |
XDMComposite에 설정되는 XDMBand는 보통 XRasterIO를 통해 생성된 XDMBandRaw객체나 XDMBand로부터 상속받은 영상처리 Band(예: XDMBandChangeDetect)를 설정하는데, 메모리 상의 2차원 이미지를 XDMComposite에 설정하고자 할 경우는 XDMBand2DMem클래스를 사용하면 된다. 메모리 공간 데이터를 XDMBand2DMem에 설정하여 XDMComposite객체에 추가한 다음 도시를 수행한다.
// 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\\IKONOS.xdm"; XRSLoadFile xrsFileInput = RasterIO.LoadFile(strFilePathLoad, out strError, false, eIOCreateXLDMode.All_NoMsg); // Load grid data from xdm file or generate Grid data. XGrid gridData = new XGrid(); xrsFileInput.GetBandAt(0).ReadSubset(ref gridData, 0, 0, 200, 0, 300); // Set input param XBandParam2DMem InputParam = new XBandParam2DMem(); InputParam.GridData = gridData; // Create New process band and set input param XDMBand2DMem bandProcess = new XDMBand2DMem(); 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_2DMem.xdm"; if (!RasterIO.Export(ref fileSave, strFilePathSave, "XDM", out strError, thd)) { return; }