![]() |
XDMBand
|
public class XDMBandFlip : XDMBand
The XDMBandFlip type exposes the following members.
Name | Description | |
---|---|---|
![]() | XDMBandFlip | XDMBandFlip클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다. |
Name | Description | |
---|---|---|
![]() | GetInputParam | 영상 뒤집기를 위한 파라미터를 얻는다. |
![]() | SetInputParam | 영상 뒤집기를 위한 입력 파라미터를 설정. |
using Pixoneer.NXDL; using Pixoneer.NXDL.NRS; using Pixoneer.NXDL.NIO; // 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); // Set input param XBandParamFlip InputParam = new XBandParamFlip(); InputParam.Direction = eFlipDirection.Horz; // load another file to protect thread lock(it is stable and faster). // Create New process band and set input param XRSSaveFile fileSave = new XRSSaveFile(); for (int i = 0; i < fileLoad.NumBand; i++) { XDMBand bandRaw = fileLoad.GetBandAt(i); XBandParamFlip param = new XBandParamFlip(ref InputParam); param.SrcBand = bandRaw; XDMBandFlip bandTmp = new XDMBandFlip(); bandTmp.BandName = bandRaw.BandName; bandTmp.SetInputParam(ref param); XDMBand bandCast = (XDMBand)bandTmp; fileSave.AddBand(ref bandCast); } // Save output file XThread thd = null; String strFilePathSave = "D:\\Sample\\Out_Flip.xdm"; if (!RasterIO.Export(ref fileSave, strFilePathSave, "XDM", out strError, thd)) { return; }