yizhe-ang / color-photo-viz

Home Page:https://yizhe-ang.github.io/color-photo-viz/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

color-photo-viz

DEMO
3D visualization of photographs of Singapore, arranged by semantics and color palette.

color-photo-viz-demo-small.mp4

Photographs by @darrensohphoto.

Usage

  • bin/resizeImgs.cjs
    • Resize images for atlas
  • bin/createImageAtlas.cjs
    • Create image atlas
  • bin/extractPalettes.cjs
    • Extract color palettes from each image
  • art-palette/palette-embedding/python/compute_embeddings.py
    • Compute palette embeddings
  • notebooks/computeEmbeddings.ipynb
    • Compute image embeddings
    • Generates positions.json file
  • bin/processPositions.js
    • Generates positionsProcessed.json file

To Explore

  • Use a 3d texture, or a 2d array of textures
    • Instead of using conditionals in shader
  • Use a material that reacts to light
  • Increase resolution on zoom
  • Add links on image
  • Gridify strategies
    • Just discretize
    • Linear assignment
    • Nearest neighbour

Resources

Increase resolution of texture on zoom

About

https://yizhe-ang.github.io/color-photo-viz/


Languages

Language:Jupyter Notebook 49.3%Language:Svelte 29.6%Language:JavaScript 19.8%Language:HTML 1.3%