![]() |
XDMBand
|
public class XDMBandTopoModel : XDMBand
The XDMBandTopoModel type exposes the following members.
Name | Description | |
---|---|---|
![]() | XDMBandTopoModel | XDMBandTopoModel 클래스의 기본 생성자로서, 멤버변수에 대하여 초기화를 수행한다. |
Name | Description | |
---|---|---|
![]() | GetInputParam | 지형 모델링을 위한 파라미터를 얻는다. |
![]() | SetInputParam | 지형 모델링을 위한 입력 파라미터를 설정한다. |
Shaded Relief 영상처리시 Azimuth와 Elevation에 사용자 입력으로 각각의 값을 설정한다.
// 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\\NoiseInterpol.xdm"; XRSLoadFile xrsFileInput = RasterIO.LoadFile(strFilePathLoad, out strError, false, eIOCreateXLDMode.All_NoMsg); // Set input param XBandParamTopoModel InputParam = new XBandParamTopoModel(); InputParam.SrcBand = xrsFileInput.GetBandAt(0); InputParam.TopoModelType = eTopoModelType.Shade; InputParam.SunAzimuth = XAngle.FromDegree(45); InputParam.SunElevation = XAngle.FromDegree(45); // Create New process band and set input param XDMBandTopoModel bandProcess = new XDMBandTopoModel(); 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_TopoModel.xdm"; if (!RasterIO.Export(ref fileSave, strFilePathSave, "XDM", out strError, thd)) { return; }