![]() |
XDMBand
|
public class XDMBandIndexTransform : XDMBand
The XDMBandIndexTransform type exposes the following members.
Name | Description | |
---|---|---|
![]() | XDMBandIndexTransform | XDMBandIndexTransform클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다. |
Name | Description | |
---|---|---|
![]() | GetInputParam | Index Transform에 대한 입력 파라미터를 얻는다. |
![]() | SetInputParam | Index Transform에 대한 입력 파라미터를 설정. |
// 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\\IndexTransform\\etm.xdm"; XRSLoadFile xrsFileInput = RasterIO.LoadFile(strFilePathLoad, out strError, false, eIOCreateXLDMode.All_NoMsg); // Set input param XBandParamIndexTransform InputParam = new XBandParamIndexTransform(); // Common InputParam.IndexTransMethod = eIndexTransMethod.LANDSAT_TM_NDVI; InputParam.SrcFile = xrsFileInput; // Create New process band and set input param XDMBandIndexTransform bandProcess = new XDMBandIndexTransform(); bandProcess.BandName = xrsFileInput.FileName; bandProcess.SetInputParam(ref InputParam); // 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_IndexTransform.xdm"; if (!RasterIO.Export(ref fileSave, strFilePathSave, "XDM", out strError, thd)) { return; }