public void Bind(object pArgument)
 {
     if (pArgument is ldaFunctionArguments)
     {
         ldaFunctionArguments arg = (ldaFunctionArguments)pArgument;
         inrsBandsCoef = arg.InRasterCoefficients;
         lda = arg.LDAModel;
         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");
     }
 }
Exemple #2
0
 public void Bind(object pArgument)
 {
     if (pArgument is ldaFunctionArguments)
     {
         ldaFunctionArguments arg = (ldaFunctionArguments)pArgument;
         inrsBandsCoef = arg.InRasterCoefficients;
         lda           = arg.LDAModel;
         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");
     }
 }