Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public LabTile(TiledImage <ArgbPixel, byte, LabTile> parent, TileCoordinate location) : base(parent, location)
 {
 }
Ejemplo n.º 3
0
 protected ImageProcessor(TiledImage <TPixel, TValue, TTile> image)
 {
     this.tiledImage = image;
 }
Ejemplo n.º 4
0
 protected abstract RegionInfo <TPixel, TValue, TTile> CreateRegionInfo(TiledImage <TPixel, TValue, TTile> parent);
Ejemplo n.º 5
0
 internal Tile(TiledImage <TPixel, TValue, TTile> parent, TileCoordinate coordinate)
 {
     this.Parent     = parent;
     this.Coordinate = coordinate;
 }
Ejemplo n.º 6
0
 public SaliencyGrouper(TiledImage <ArgbPixel, byte, LabTile> image, float saliencyThreshold) : base(image)
 {
     this.SaliencyThreshold = saliencyThreshold;
     base.AllAroundScan     = true;
 }
Ejemplo n.º 7
0
 protected override RegionInfo <ArgbPixel, byte, LabTile> CreateRegionInfo(TiledImage <ArgbPixel, byte, LabTile> parent)
 {
     return(new RegionInfo <ArgbPixel, byte, LabTile>(parent, null, (LabTile tile) => tile.Saliency));
 }
Ejemplo n.º 8
0
 private static TTile CreateTile(TiledImage <TPixel, TValue, TTile> parent, TileCoordinate coordinate)
 {
     return((TTile)((object)new Tile <TPixel, TValue, TTile>(parent, coordinate)));
 }
Ejemplo n.º 9
0
 private static LabTile CreateTile(TiledImage <ArgbPixel, byte, LabTile> parent, TileCoordinate location)
 {
     return(new LabTile(parent, location));
 }