Click or drag to resize
XDL

XDMBandIndexTransform Class

XDMBandIndexTransform 클래스는 지수변환(Index Transformation)을 수행한다.
Inheritance Hierarchy
SystemObject
  Pixoneer.NXDL.NRSXDMBand
    Pixoneer.NXDL.NRSXDMBandIndexTransform

Namespace:  Pixoneer.NXDL.NRS
Assembly:  NXDLrs (in NXDLrs.dll) Version: 1.2.817.72
Syntax
C#
public class XDMBandIndexTransform : XDMBand

The XDMBandIndexTransform type exposes the following members.

Constructors
  NameDescription
Public methodXDMBandIndexTransform
XDMBandIndexTransform클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다.
Top
Methods
  NameDescription
Public methodGetInputParam
Index Transform에 대한 입력 파라미터를 얻는다.
Public methodSetInputParam
Index Transform에 대한 입력 파라미터를 설정.
Top
Examples
XDM으로 변환된 LANSAT ETM 영상을 로딩하녀 NDVI 변환 후 결과를 XDM 파일로 저장하는 예제이다.
// 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;
}
See Also