10000 Why keep images in tiles graphic array? · Issue #37 · CodingTrain/Wave-Function-Collapse · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Why keep images in tiles graphic array? #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Deg42 opened this issue Jul 11, 2022 · 1 comment
Open

Why keep images in tiles graphic array? #37

Deg42 opened this issue Jul 11, 2022 · 1 comment

Comments

@Deg42
Copy link
Deg42 commented Jul 11, 2022

By this time, there are duplicated tiles, one as an image and one as graphic:

  const initialTileCount = tiles.length;
  for (let i = 0; i < initialTileCount; i++) {
    let tempTiles = [];
    for (let j = 0; j < 4; j++) {
      tempTiles.push(tiles[i].rotate(j));
    }
    tempTiles = removeDuplicatedTiles(tempTiles);
    tiles = tiles.concat(tempTiles);
  }
  console.log(tiles.length);

Example:
Screnshot

@shiffman
Copy link
Member

I should apply the frequency counting and entropy calculation that is now in the new Overlapping model examples to the Tiled model!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0