Пример #1
0
 public ThresholdProps(decimal ConfidenceLevel, GCDCore.Project.CoherenceProperties spatCoProps)
 {
     Method                = ThresholdMethods.Probabilistic;
     Threshold             = ConfidenceLevel;
     BayesianUpdating      = spatCoProps != null;
     SpatialCoherenceProps = spatCoProps;
 }
Пример #2
0
        public DoDProbabilistic(string name, DirectoryInfo folder, Surface newSurface, Surface oldSurface, Project.Masks.AOIMask aoi, HistogramPair histograms, FileInfo summaryXML,
                                Raster rawDoD, Raster thrDoD, Raster thrErr,
                                ErrorSurface newError, ErrorSurface oldError, Raster propErr, FileInfo priorProb,
                                FileInfo postProb, FileInfo cond, FileInfo spatCoEr, FileInfo spatCoDep, CoherenceProperties spatCoProps,
                                decimal confidenceLevel, DoDStats stats)
            : base(name, folder, newSurface, oldSurface, aoi, rawDoD, thrDoD, thrErr, histograms, summaryXML, newError, oldError, propErr, stats)
        {
            ConfidenceLevel  = confidenceLevel;
            PriorProbability = new Raster(priorProb);

            if (spatCoProps != null)
            {
                PosteriorProbability       = new Raster(postProb);
                ConditionalRaster          = new Raster(cond);
                SpatialCoherenceErosion    = new Raster(spatCoEr);
                SpatialCoherenceDeposition = new Raster(spatCoDep);
                SpatialCoherence           = spatCoProps;
            }
        }
Пример #3
0
        public DoDProbabilistic(XmlNode nodDoD)
            : base(nodDoD)
        {
            ConfidenceLevel  = decimal.Parse(nodDoD.SelectSingleNode("ConfidenceLevel").InnerText, CultureInfo.InvariantCulture);
            PriorProbability = DeserializeRaster(nodDoD, "PriorProbability");

            XmlNode nodSpatCo = nodDoD.SelectSingleNode("SpatialCoherence");

            if (nodSpatCo != null)
            {
                int windowSize = int.Parse(nodSpatCo.SelectSingleNode("WindowSize").InnerText, CultureInfo.InvariantCulture);
                int inflectinA = int.Parse(nodSpatCo.SelectSingleNode("InflectionA").InnerText, CultureInfo.InvariantCulture);
                int inflectinB = int.Parse(nodSpatCo.SelectSingleNode("InflectionB").InnerText, CultureInfo.InvariantCulture);
                SpatialCoherence = new CoherenceProperties(windowSize, inflectinA, inflectinB);

                PosteriorProbability       = DeserializeRaster(nodDoD, "PosteriorProbability");
                ConditionalRaster          = DeserializeRaster(nodDoD, "ConditionalRaster");
                SpatialCoherenceErosion    = DeserializeRaster(nodDoD, "SpatialCoherenceErosion");
                SpatialCoherenceDeposition = DeserializeRaster(nodDoD, "SpatialCoherenceDeposition");
            }
        }