120
K-ASS
6y

Wrote some codes that uses your photos to compose an input image. Will post code later. Written in Python though. Also this is my dad. Also I wrote this in Yellowstone cuz I didn't like the view lol.

Comments
  • 8
    This is amazing man
  • 12
    Never written or researched one of these algorithms before but let me have my best guess;

    - Divide original image into small chunks of averaged colors (or simply decrease the resolution)

    - Load average color of all images into memory

    - Pixel by pixel of reduced original image (from step one), match color of pixel to closest match of average color from the list in memory

    - Output in full resolution (or, since the image will be made of other images, an even larger resolution, if desired!)
  • 2
    That is really awesome! Can you put it on GitHub? I'd love to see how you did it.
    Edit: Nevermind, you already did.
  • 1
    @filthyranter I have not, for now I didn't make it a package rather just a main function that takes in inputs, I'm waiting on people's thoughts on this to decide if I should take some time to make it a package
  • 3
    @AlgoRythm so basically, I first have to pre process the photos used to assemble the image, the pre processing part will give me the most frequent three colors in the picture and put it in a Jason file, so in that Jason file the key is rgb and the value is the file name. I didn't use knn for this part, rather I collect all the colors using Python PIL library and reduce by key to find color chunks. Then for reassembling, I cut the pictures into squares and find the rgb value for that chunk, then from the Jason file I mentioned I find the pictures that has the closest rgb value. However depend on the collection of pictures used in pre processing, this result may not be perfect. Then for each chunk I paste the picture. The chunk size can be defined and also how much you want to enlarge the pasted picture. I did. It think of gaussian blur but that seems like a good idea, will do it now.
  • 0
    @K-ASS Oh so that repo on GitHub is outdated? Okay.
  • 0
    Nice work there!
  • 0
    @filthyranter wait what repo
  • 0
  • 1
    @filthyranter lol that is a completely different thing
  • 0
    @K-ASS yeah I just noticed :j
  • 0
    Cool
  • 4
    Did some shit animation with scaling on c#.
  • 0
    @AlgoRythm @K-ASS Hoe about some median blur? It's effective to remove those grainy textures
  • 0
    @AvyChanna in the output image? No, in processing? I have used gaussian blur so a median blur is unnecessary
  • 3
    github.com/txstc55/image_assembling

    Adding readme and sample outputs now
  • 0
    Sorry in hospital now gonna push the document part later
  • 0
    OK people it is officially up!
  • 0
Add Comment