protected void LoadErrorSurfaces(XmlNode nodSurface) { foreach (XmlNode nodError in nodSurface.SelectNodes("ErrorSurfaces/ErrorSurface")) { ErrorSurface error = new ErrorSurface(nodError, this); ErrorSurfaces.Add(error); } }
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; }
public DoDPropagated(XmlNode nodDoD) : base(nodDoD) { NewError = DeserializeError(nodDoD, NewSurface.ErrorSurfaces.ToList <ErrorSurface>(), "NewError"); OldError = DeserializeError(nodDoD, OldSurface.ErrorSurfaces.ToList <ErrorSurface>(), "OldError"); XmlNode nodPropErr = nodDoD.SelectSingleNode("PropagatedError"); if (nodPropErr != null) { PropagatedError = new Raster(ProjectManager.Project.GetAbsolutePath(nodPropErr.InnerText)); } }
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; } }
public bool IsErrorNameUnique(string name, ErrorSurface ignore) { return(ErrorSurfaces.Count <ErrorSurface>(x => x != ignore && string.Compare(name, x.Name, true) == 0) == 0); }