Пример #1
0
 private FaultNetworkMapper(IImage <bool> faultMap, IGridCoordinateTransformation transformation)
 {
     notVisitedMap       = (IImage <bool>)faultMap.Clone();
     this.transformation = transformation;
     componentsMap       = BitImage.Analysis.ConnectedComponents(faultMap);
     connectivityMap     = BitImage.Analysis.Connectivity(faultMap);
     Debug.Assert(componentsMap.Width == connectivityMap.Width);
     Debug.Assert(componentsMap.Height == connectivityMap.Height);
     components = new Dictionary <int, Component>();
     network    = new FaultNetwork();
     BuildComponents();
     TraceComponents();
 }
Пример #2
0
 public FaultDisplacementMapper(FaultNetwork network)
 {
     this.network = network;
 }