public RegionInfo(TiledImage <TPixel, TValue, TTile> parent, Func <TTile, Box2D> getOutline, Func <TTile, float> getDensity) { this.parent = parent; this.tileCoordinates = new List <TileCoordinate>(); this.Cluster = new WeightedCluster <TTile>(getOutline ?? new Func <TTile, Box2D>(this.GetOutline), getDensity ?? new Func <TTile, float>(this.GetDensity)); this.LuminanceStats = new CountStatistics(); this.IntensityStats = new CountStatistics(); this.CutOffRatio = RegionInfo <TPixel, TValue, TTile> .DefaultCutOffRatio; }
public LabTile(TiledImage <ArgbPixel, byte, LabTile> parent, TileCoordinate location) : base(parent, location) { }
protected ImageProcessor(TiledImage <TPixel, TValue, TTile> image) { this.tiledImage = image; }
protected abstract RegionInfo <TPixel, TValue, TTile> CreateRegionInfo(TiledImage <TPixel, TValue, TTile> parent);
internal Tile(TiledImage <TPixel, TValue, TTile> parent, TileCoordinate coordinate) { this.Parent = parent; this.Coordinate = coordinate; }
public SaliencyGrouper(TiledImage <ArgbPixel, byte, LabTile> image, float saliencyThreshold) : base(image) { this.SaliencyThreshold = saliencyThreshold; base.AllAroundScan = true; }
protected override RegionInfo <ArgbPixel, byte, LabTile> CreateRegionInfo(TiledImage <ArgbPixel, byte, LabTile> parent) { return(new RegionInfo <ArgbPixel, byte, LabTile>(parent, null, (LabTile tile) => tile.Saliency)); }
private static TTile CreateTile(TiledImage <TPixel, TValue, TTile> parent, TileCoordinate coordinate) { return((TTile)((object)new Tile <TPixel, TValue, TTile>(parent, coordinate))); }
private static LabTile CreateTile(TiledImage <ArgbPixel, byte, LabTile> parent, TileCoordinate location) { return(new LabTile(parent, location)); }