Thread: infinite pictures.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    That weird Java guy xniinja's Avatar
    Join Date
    Jun 2010
    Posts
    231

    infinite pictures.

    hello everyone I've been thinking about this one for a while but I was wondering has there ever been or is it possible to make a program that makes every picture combination ever for one resolution lets say 20x20. I don't really know why i am asking this I guess its just an itching question that I've had for a while now. So yea please tell what you think, my opinion on the subject is there are a lot of pictures that are possible and a lot of them wouldn't be anything at all just specks of stuff, and the ones that were recognizable could be very amazing, and some would be disturbing. If anyone knows how many pictures would there be possible for 20x20 due to how many colors possible could you tell me. Thanks.

  2. #2
    Internet Superhero
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    964
    20x20 pixels gives us 400 pixels, there are 256 different values for each of the R, G and B channels (excluding alpha), this means there are 256^3 possible values for each pixel.(16.7 million)

    So 400x16777216 gives us 6,710,886,400 different possible 20x20 pixel images. With a modern computer this could probably be done in a very reasonable amount of time, but what would the point of having all these images be? Who would sort through 6.71 billion different tiny pictures to find what could be accomplished by an artist in 10 minutes?
    How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics.

  3. #3
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    You should look at combinatorics, a branch of math devoted to these types of problems.

    Think of it like this, you have 0xffffff colors in the standard hex color system. Each of the 20x20 pixels could be any of those 0xffffff colors. We will invent a method for incrementing the colors. It will be like so, increment the first pixel, if it is 0xffffff, st it to 0 and increment the next pixel. Do this recursively. You can see it would take 0xffffff iterations to change the second pixel, and 0xffffff changes in the second pixel to change the third. We should then notice the pattern, that it would take 0xffffff^n to change the nth pixel. We have 20*20 pixels, and we want to go through all colors, so we extend this pattern to 20*20 pixels. It would take 0xffffff^(20*20) = 16777215^400 = 4014959061089910785.
    Last edited by User Name:; 01-24-2011 at 05:27 PM.

  4. #4
    That weird Java guy xniinja's Avatar
    Join Date
    Jun 2010
    Posts
    231
    wow thats amazing. And I dont know why anyone would do this I just like the idea of having all of everything. The idea that you would have any 20x20 image ever past, present, or future. Every single picture ever taken or will be taken is in your possession, every thing possible or impossible would be able to be seen. The creepiness of it all too, the fact that if you have a 20x20 picture, its in there...

  5. #5
    Lurking whiteflags's Avatar
    Join Date
    Apr 2006
    Location
    United States
    Posts
    9,612
    Quote Originally Posted by xniinja View Post
    wow thats amazing. And I dont know why anyone would do this I just like the idea of having all of everything. The idea that you would have any 20x20 image ever past, present, or future. Every single picture ever taken or will be taken is in your possession, every thing possible or impossible would be able to be seen. The creepiness of it all too, the fact that if you have a 20x20 picture, its in there...
    Art isn't just color you guys.

  6. #6
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Quote Originally Posted by whiteflags View Post
    Art isn't just color you guys.
    Yes, we would need a complex algorithm to weed out the crappy ones.

  7. #7
    -bleh-
    Join Date
    Aug 2010
    Location
    somewhere in this universe
    Posts
    463
    Quote Originally Posted by User Name: View Post
    Yes, we would need a complex algorithm to weed out the crappy ones.
    Impossible to do a comparision between a "crappy" art and "good" art. If I have a hand on that algorithm, all the Picasso would be weeeded out pretty quick.
    "All that we see or seem
    Is but a dream within a dream." - Poe

  8. #8
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Quote Originally Posted by nimitzhunter View Post
    Impossible to do a comparision between a "crappy" art and "good" art. If I have a hand on that algorithm, all the Picasso would be weeeded out pretty quick.
    I don't think Picasso painted in 20x20 resolution, so all the Picasso are weeded out by default.

    xniinja: I don't think that many computers would scale too well. They'd all have to have half the collective computing power just to handle the epic amount of communication required to coordinate a cloud that massive.

  9. #9
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by xniinja View Post
    wow thats amazing. And I dont know why anyone would do this I just like the idea of having all of everything. The idea that you would have any 20x20 image ever past, present, or future. Every single picture ever taken or will be taken is in your possession, every thing possible or impossible would be able to be seen. The creepiness of it all too, the fact that if you have a 20x20 picture, its in there...
    To give you a further idea of scale... Windows 7 Icons... the fancy ones you can resize with your mouse wheel, are 256 x 256 x 16.7 million colors....

    That's ~10,944,512,000,000 possible images.

    I recently wrote a windows program using one of the new Icons and the Icon embedded in the program was bigger than the executable code...

  10. #10
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Quote Originally Posted by CommonTater View Post
    To give you a further idea of scale... Windows 7 Icons... the fancy ones you can resize with your mouse wheel, are 256 x 256 x 16.7 million colors....

    That's ~10,944,512,000,000 possible images.

    I recently wrote a windows program using one of the new Icons and the Icon embedded in the program was bigger than the executable code...
    length*width*colors isn't right. You are finding the area, then multiplying by the total possible colors. That is the number of times when all pixels are the same color. You're leaving out all else. It would, in fact, be much larger: 16,777,215^(256*256). It's so huge, I don't even want to post it here, because of it's massiveness would span a couple pages.

  11. #11
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    Quote Originally Posted by User Name: View Post
    length*width*colors isn't right. You are finding the area, then multiplying by the total possible colors. That is the number of times when all pixels are the same color. You're leaving out all else. It would, in fact, be much larger: 16,777,215^(256*256). It's so huge, I don't even want to post it here, because of it's massiveness would span a couple pages.
    Oh come now! 256*256*log 16777215 = 473479.2414, so it's only 473480 decimal digits long. Even if we assume 160 characters a line, that's still 2960 lines. At 50 lines a "page" that's more like 60 pages.

  12. #12
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    o_O ...
    Devoted my life to programming...

  13. #13
    Password:
    Join Date
    Dec 2009
    Location
    NC
    Posts
    587
    Quote Originally Posted by tabstop View Post
    Oh come now! 256*256*log 16777215 = 473479.2414, so it's only 473480 decimal digits long. Even if we assume 160 characters a line, that's still 2960 lines. At 50 lines a "page" that's more like 60 pages.
    "Couple" is indeterminate. Point is, it would be inconsiderate to post such a monstrous glob of digits. (That, and my perl script(using GMP for BigInt) was taking a REALLY long time, and my computer was getting REALLY hot. So I killed it, and decided to leave it at that. )

    I like maxorator's explaination, it's more mathy than mine.

  14. #14
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by user name: View Post
    length*width*colors isn't right. You are finding the area, then multiplying by the total possible colors. That is the number of times when all pixels are the same color. You're leaving out all else. It would, in fact, be much larger: 16,777,215^(256*256). It's so huge, i don't even want to post it here, because of it's massiveness would span a couple pages.
    <<< Nice try - try again >>>
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

  15. #15
    Banned ಠ_ಠ's Avatar
    Join Date
    Mar 2009
    Posts
    687
    Quote Originally Posted by ಠ_ಠ View Post
    <<< Nice try - try again >>>
    you have no idea how tempting this is
    ╔╗╔══╦╗
    ║║║╔╗║║
    ║╚╣╚╝║╚╗
    ╚═╩══╩═╝

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. CConstructor Infinite Recursion!
    By Eman in forum C++ Programming
    Replies: 80
    Last Post: 12-23-2010, 10:14 AM
  2. Tagging Pictures
    By Tonto in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 03-17-2008, 02:44 PM
  3. Switch statement = infinite loop
    By Lucid003 in forum C++ Programming
    Replies: 10
    Last Post: 10-10-2005, 12:46 AM
  4. pictures
    By TravisS in forum A Brief History of Cprogramming.com
    Replies: 21
    Last Post: 01-06-2003, 02:31 PM