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(); }
public FaultExtractor(IGridCoordinateTransformation faultProbabilityMap) { this.probabilityMap = faultProbabilityMap; }
/// <summary> /// Convert a pixel fault centerline map into a geometric object model /// </summary> /// <param name="faultMap">A pixel map of fault centerlines</param> /// <param name="transformation">A transformation from grid to geographic co-ordinates</param> /// <returns>A FaultNetwork representing the faultMap</returns> public static FaultNetwork MapFaultNetwork(IImage <bool> faultMap, IGridCoordinateTransformation transformation) { FaultNetworkMapper mapper = new FaultNetworkMapper(faultMap, transformation); return(mapper.Network); }