Beispiel #1
0
 public void Bind(object pArgument)
 {
     if (pArgument is kdaFunctionArguments)
     {
         kdaFunctionArguments arg = (kdaFunctionArguments)pArgument;
         inrsBandsCoef = arg.InRasterCoefficients;
         kda           = arg.KDAModel;
         outrs         = arg.OutRaster;
         myFunctionHelper.Bind(outrs);
         myFunctionHelperCoef.Bind(inrsBandsCoef);
         myRasterInfo = myFunctionHelper.RasterInfo;
         myPixeltype  = myRasterInfo.PixelType;
         myValidFlag  = true;
     }
     else
     {
         throw new System.Exception("Incorrect arguments object. Expected: regressionFunctionArguments");
     }
 }
 public void Bind(object pArgument)
 {
     if (pArgument is kdaFunctionArguments)
     {
         kdaFunctionArguments arg = (kdaFunctionArguments)pArgument;
         inrsBandsCoef = arg.InRasterCoefficients;
         kda = arg.KDAModel;
         outrs = arg.OutRaster;
         myFunctionHelper.Bind(outrs);
         myFunctionHelperCoef.Bind(inrsBandsCoef);
         myRasterInfo = myFunctionHelper.RasterInfo;
         myPixeltype = myRasterInfo.PixelType;
         myValidFlag = true;
     }
     else
     {
         throw new System.Exception("Incorrect arguments object. Expected: regressionFunctionArguments");
     }
 }