Beispiel #1
0
        public void Reset(IArgumentProvider argProvider, int[] visitBandNos, string express)
        {
            if (_infoExtracter != null)
            {
                _infoExtracter.Dispose();
            }
            _infoExtracter = new RasterPixelsVisitor <T>(argProvider);
            _argProvider   = argProvider;
            _visitBandNos  = visitBandNos;
            IExtractFuncProvider <T> prd = ExtractFuncProviderFactory.CreateExtractFuncProvider <T>(visitBandNos, express, _argProvider);

            _boolFunc = prd.GetBoolFunc();
        }
        public void Reset(IArgumentProvider argProvider, int[] visitBandNos, string express)
        {
            if (_infoExtracter != null)
            {
                _infoExtracter.Dispose();
            }
            _infoExtracter = new RasterPixelsVisitor <TDataType>(argProvider);
            _argProvider   = argProvider;
            _visitBandNos  = visitBandNos;
            IFeatureComputeFuncProvider <TDataType, TFeature> prd = ExtractFuncProviderFactory.CreateFeatureComputeFuncProvider <TDataType, TFeature>(visitBandNos, express, _argProvider);

            _featureComputer = prd.GetComputeFunc();
        }