コード例 #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;
 }
コード例 #2
0
 public LabTile(TiledImage <ArgbPixel, byte, LabTile> parent, TileCoordinate location) : base(parent, location)
 {
 }
コード例 #3
0
 protected ImageProcessor(TiledImage <TPixel, TValue, TTile> image)
 {
     this.tiledImage = image;
 }
コード例 #4
0
 protected abstract RegionInfo <TPixel, TValue, TTile> CreateRegionInfo(TiledImage <TPixel, TValue, TTile> parent);
コード例 #5
0
ファイル: Tile.cs プロジェクト: YHZX2013/exchange_diff
 internal Tile(TiledImage <TPixel, TValue, TTile> parent, TileCoordinate coordinate)
 {
     this.Parent     = parent;
     this.Coordinate = coordinate;
 }
コード例 #6
0
 public SaliencyGrouper(TiledImage <ArgbPixel, byte, LabTile> image, float saliencyThreshold) : base(image)
 {
     this.SaliencyThreshold = saliencyThreshold;
     base.AllAroundScan     = true;
 }
コード例 #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));
 }
コード例 #8
0
 private static TTile CreateTile(TiledImage <TPixel, TValue, TTile> parent, TileCoordinate coordinate)
 {
     return((TTile)((object)new Tile <TPixel, TValue, TTile>(parent, coordinate)));
 }
コード例 #9
0
 private static LabTile CreateTile(TiledImage <ArgbPixel, byte, LabTile> parent, TileCoordinate location)
 {
     return(new LabTile(parent, location));
 }