Exemplo n.º 1
0
        public ChangeDetectionEngineBase(Surface newSurface, Surface oldSurface, Project.Masks.AOIMask aoi, bool isAsync)
            : base()
        {
            if (isAsync)
            {
                OnProgressChangeDoD += ProjectManager.OnProgressChangeAsync;
            }
            else
            {
                OnProgressChangeDoD += ProjectManager.OnProgressChange;
            }

            if (!newSurface.Raster.Extent.HasOverlap(oldSurface.Raster.Extent))
            {
                Exception ex = new Exception("The two rasters do not overlap.");
                ex.Data["New DEM Path"]   = newSurface.Raster.GISFileInfo.ToString();
                ex.Data["New DEM Extent"] = newSurface.Raster.Extent.ToString();
                ex.Data["Old DEM Path"]   = oldSurface.Raster.GISFileInfo.ToString();
                ex.Data["Old DEM Extent"] = oldSurface.Raster.Extent.ToString();
                throw ex;
            }

            NewSurface = newSurface;
            OldSurface = oldSurface;
            AOIMask    = aoi;
        }
 public ChangeDetectionEngineProbabilistic(Surface newDEM, Surface oldDEM, Project.Masks.AOIMask aoi, ErrorSurface newError, ErrorSurface oldError,
                                           decimal fThreshold, CoherenceProperties spatCoherence = null, bool isAsync = false)
     : base(newDEM, oldDEM, newError, oldError, aoi, isAsync)
 {
     Threshold        = fThreshold;
     SpatialCoherence = spatCoherence;
 }
        public ChangeDetectionMultiEpoch(List <Epoch> lEpochs, Project.Masks.AOIMask aoi, ThresholdProps tProps)
        {
            Epochs     = lEpochs;
            Thresholds = tProps;
            AOIMask    = aoi;

            DoDEngines = new Dictionary <ThresholdProps.ThresholdMethods, ChangeDetectionEngineBase>();
        }
Exemplo n.º 4
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;
            }
        }
Exemplo n.º 5
0
 /// <summary>
 /// Constructor for change detection engine
 /// </summary>
 /// <param name="name"></param>
 /// <param name="folder"></param>
 /// <param name="newSurface"></param>
 /// <param name="oldSurface"></param>
 /// <param name="rawDoD"></param>
 /// <param name="thrDoD"></param>
 /// <param name="rawHist"></param>
 /// <param name="thrHist"></param>
 /// <param name="threshold"></param>
 /// <param name="stats"></param>
 public DoDMinLoD(string name, DirectoryInfo folder, Surface newSurface, Surface oldSurface, Project.Masks.AOIMask aoi, Raster rawDoD, Raster thrDoD, Raster thrErr, HistogramPair histograms, FileInfo summaryXML, decimal threshold, DoDStats stats)
     : base(name, folder, newSurface, oldSurface, aoi, rawDoD, thrDoD, thrErr, histograms, summaryXML, stats)
 {
     Threshold = threshold;
 }
Exemplo n.º 6
0
 public ChangeDetectionEnginePropProb(Surface newDEM, Surface oldDEM, ErrorSurface newError, ErrorSurface oldError, Project.Masks.AOIMask aoi,
                                      bool isAsync = false)
     : base(newDEM, oldDEM, aoi, isAsync)
 {
     NewError = newError;
     OldError = oldError;
 }
Exemplo n.º 7
0
 public ChangeDetectionEngineMinLoD(Surface newSurface, Surface oldSurface, Project.Masks.AOIMask aoi, decimal fThreshold, bool isAsync = false)
     : base(newSurface, oldSurface, aoi, isAsync)
 {
     Threshold = fThreshold;
 }
Exemplo n.º 8
0
 public DoDPropagated(string name, DirectoryInfo folder, Surface newSurface, Surface oldSurface, Project.Masks.AOIMask aoi, Raster rawDoD, Raster thrDoD, Raster thrErr,
                      HistogramPair histograms, FileInfo summaryXML, ErrorSurface newError, ErrorSurface oldError, Raster propErr, DoDStats stats)
     : base(name, folder, newSurface, oldSurface, aoi, rawDoD, thrDoD, thrErr, histograms, summaryXML, stats)
 {
     NewError        = newError;
     OldError        = oldError;
     PropagatedError = propErr;
 }