Sunday, 12 May 2013

The Mona Lisa expressed as a binary number

For my latest video (coming soon) I wanted a quick shot showing what the Mona Lisa looks like converted into pure 0s and 1s.

Of course I had no idea how to do this, so I asked my boffin mate Dr James Clewett (star of numerous videos).

He produced three versions for me - ones and zeros in bits; RGB bytes displayed a hexidecimal numbers in bytes; and finally the hexidecimal numbers again as bytes for the gray-scale image.

I don't have more detail about this as yet (but am secretly hoping he'll write guest blog to explain it).

The 0s and 1s version starts like this...

110001101101011011001010111110

And continues for about 5-6 million digits.

If you really want to see them all, click here: DROPBOX FILE (corrected - sorry an earlier version was wrong!)

63 comments:

  1. James Clewett's video list is missing the video about the end of time in 32-bit numbers (mayber there are more, but this is the one I remember).

    Anyway... Clewett is probably my favourite guest since I see a lot of myself in him: the love for cool games (I like chess more than tetris but I play it a lot), for computers, and mainly because I am passing through a very similar phase in my life finishing a thesis and having ton of personal problems. His testimonies about the process of writing his thesis together with his enthusiasm for physics gave me a lot of strength and helped me to recover my enthusiasm for my field (musicology) and for all that I want to say thank you James.

    ReplyDelete
  2. How did you guys turn the Numberphile to a three coloured picture? I'd like to know that

    ReplyDelete
    Replies
    1. They converted the binary code representing numberphile to a single number in decimal.

      Then they converted that number and converted it to hexadecimal. In computers a string of 3 hexadecimal numbers, one representing red, one green and one blue create a color. The numbers vary (in decimal) between 0 and 255. In hex that's between 00 and FF.

      So #FFFFFF (6F's) = White
      #000000 = Black
      #FF0000 = As red as you get
      #00FF00 = As green as you get
      #0000FF = As blue as you get

      If you go to color-hex.com you can enter the numberphile numbers: 4E55D (they must have made an error here, or that's 04E55D), 424552,504849 and that will show you the colors.

      Delete
  3. When opening the 'zeros and ones' file in a text editor (Notepad) there's a recurring pattern. Resize the window so that it's exactly 24 characters wide and you'll see that the last 8 bits of every 24 bit group is always 10101010. Is this correct? It seems unlikely for an image. :) Or am I spoiling things now?

    Thanks Brady for another great video. I'm subscribed to all your channels and your videos never disappoint. Keep up the great work!

    ReplyDelete
  4. Well spotted Desmond. I have revisited my code and there was a mistake. How embarrassing. A corrected version has been sent to Brady now.

    What you are seeing here are the bits for 24 bit pixels representing the red, green, blue content of the image (RGB-format), that is 8 bits or 1 byte for each colour. The bits are arranged in little-endian format, which means that the least significant bit for each colour comes first.

    ReplyDelete
  5. Corrected version now attached.

    ReplyDelete
  6. @Manohar M: Check out this site, where you can test your self.

    http://html-color-codes.info/

    ReplyDelete
  7. James, I just wanted to point out a small mistake you made regarding the meaning of little endian. In computer systems we refer to little endian as the least significant BYTE coming first, not bits. The bits are always represented with the most significant bit (within a byte) coming first. You'll see that Intel-based processors use little endian, so the number (in hex) 0x12345678 is represented (in 4 bytes) as 78-56-34-12, while in big endian systems (such as old Macs) it would be represented as 12-34-56-78. Note that in your case using little endian or big endian wouldn't make a difference, since you're representing each colour in each pixel as a single byte. If you're representing the least significant bit first, then this is an alternate representation, not little endian or big endian.

    ReplyDelete
    Replies
    1. I suppose he could have been more specific, but endianness can refer to bit level ordering as well as byte-level. The only real reason it's not commonly used at the bit level is because, as end users, that's all transparent. The hardware takes care of that internally. However, in software it can go either way, so in practice it can be referred to rather often.

      Delete
  8. After watching the video I converted my name to hexadecimal, made a html page with my name as background color, performed print screen, trimmed image and made it into my profile pic

    ReplyDelete
    Replies
    1. But since the profile pic was difficult to view I changed the font size.

      Delete
  9. To point something out, you didn't actually convert the Mona Lisa into binary...you just converted one possible JPEG image file of the Mona Lisa into binary. If a different image file were used (perhaps of greater resolution), it would result in a completely different binary sequence.

    ReplyDelete
  10. Would it be ok for you when I take those numbers and print my own wallpaper?
    Any copyright things or something?

    ReplyDelete
  11. I think this is pretty cool, although I kinda assumed that this was possible it's nice to see it done~

    ReplyDelete
  12. so, if i want to convert it back to an image, how am i gonna do that?

    ReplyDelete
  13. Say it Ain't So!
    Just read that Mango Relentlessly huge has crossed the bridge.

    ReplyDelete
  14. Our whole family is upset upon hearing this news. Mango was such a Relentlessly Huge presence in the DWB community. We're sending Pei-Vibes to Mango Momma, Mango Dad and Dexter to help get them through this.

    ReplyDelete
  15. I can see Bolo (among other absent DWBers) meeting Mango at the Bridge. Showing him the ropes and finding him the best spot in the place to keep watch on his Estate from up there.

    ReplyDelete
  16. She Speaks Sunday!
    Hello?

    I'm Chingmy!

    That wasn't always my name, but it's the one that I have now.

    What a strange week it's been! Like, last week I was with my Brofur, my Sisfur and my Fafur and now I'm HERE and I'm the only one that HAS fur. FREAKY!

    ReplyDelete
  17. I kind of like it here. Man-who-says-to-call-him-Dad, I've got him wrapped around my little paw.

    Boy-who-I'm-told-to-call-Puppy, well, he plays a little rough but I can dish it out too! I'm not a delicate little flower you know! Except when I am.

    ReplyDelete
  18. Upcoming Latest cars and vehicles, Latest Mazda Models, Racing Cars, International Sport Cars, Concept Cars, PS-Pod, Strange Vehicles, Nissan, Royce Corniche, Ford Concept Cars, Strange Vehicles, Mercedes and More Sport Cars and Vehicles with Pictures and Info
    WorldLatestVehicles.com

    ReplyDelete
  19. Trading is the Best Business Ever in the World.. All News updates about Forex Business, Latest Currency news updates, latest forex trading business updates, trading updates, forex trading latest news, forex brokers directory, forex brokers list, Dollars news affairs, Stock Markets, stock market news, stock market analysis, technology news, international forex markets, international forex business news and all updates about Forex Trading
    ForexAffairs.Com

    ReplyDelete
  20. Forex Affaris.. Latest Currency news updates, latest forex trading business updates, trading updates, forex trading latest news, forex brokers directory, forex brokers list, Dollars news affairs, Stock Markets, stock market news, stock market analysis, technology news, international forex markets, international forex business news and all updates about Forex Trading
    ForexAffairs.Com

    ReplyDelete
  21. Genuines Works of Data Entry, Copy Pasting, Add Posting, Clicking, Web Surfing, Website Visiting, Article Sharing, Data Sharing, Google Business Plan and Much More Business Plans
    www.jobzcorner.com

    ReplyDelete
  22. He produced three versions for me - ones and zeros in bits; RGB bytes displayed a hexidecimal numbers in bytes. binary options trading signals

    ReplyDelete
  23. All Latest and Current Affairs, News updates about Forex Business. Latest Currency news updates, latest forex trading business updates, trading updates, forex trading latest news, forex brokers directory, forex brokers list, Dollars news affairs, Stock Markets, stock market news, stock market analysis, technology news, international forex markets, international forex business news and all updates about Forex Trading
    ForexAffairs.Com

    ReplyDelete
  24. A strong mind-set will help you succeed with binary options. These steps will ensure that you make calm and rational decisions. get auto commissions

    ReplyDelete
  25. Top Ten Classified Website List, Pakistani Classified Sites, USA Classifieds, Indian Classifieds, Entertainment Articles, Entertainment News, Entertainment Pictures, Bollywood, Hollywood and Lollywood Pictures and Videos, Entertainment Latest updates, Hot Entertainment News and Pictures Funny Entertainment Pictures, lol Pictures, Funny Pictures and every thing you want...
    www.hotcurrentaffairs.com

    ReplyDelete
  26. The Best Lol n Troll Network with the Name of Lols Gag... Troll Images, Prank Peoples, Funny Peoples, funny planet, funny facts, funny cartoons, funny movies pics, iphone funny, funny jokes, Prank Images, Fail Pictures, Epic Pictures, Lols and Gags, Lol Pictures, Funny Pictures, Lol is the Laugh out of Laugh where you can Fun Unlimited and Laughing Unlimited.
    LolsGag.Com

    ReplyDelete
  27. Classified Sites, Pakistani Classified Sites, USA Classifieds, Indian Classifieds, Entertainment Articles, Entertainment News, Entertainment Pictures, Bollywood, Hollywood and Lollywood Pictures and Videos, Entertainment Latest updates, Hot Entertainment News and Pictures Funny Entertainment Pictures, lol Pictures, Funny Pictures and Much More Fun Only on 1 Current Affairs Network
    hotcurrentaffairs.com

    ReplyDelete
  28. Lol is the Laugh out of Laugh where you can Fun Unlimited and Laughing Unlimited. The Best Lol n Troll Network with the Name of Lols Gag... Troll Images, Prank Peoples, Funny Peoples, funny planet, funny facts, funny cartoons, funny movies pics, iphone funny, funny jokes, Prank Images, Fail Pictures, Epic Pictures, Lols and Gags, Lol Pictures, Funny Pictures.
    LoLsGag.Coma

    ReplyDelete
  29. Make Money Online is very easy now, In Internet system we have now best earning system without any work, Just Invest some Money into your Business and Make Perfect Life time Earnings with this Business.
    Join Now for Make Perfect Business and Earn Money online from home.
    www.hotfxearnings.com

    ReplyDelete
  30. Make Money Online is very easy now, In Internet system we have now best earning system without any work, Just Invest some Money into your Business and Make Perfect Life time Earnings with this Business.
    Join Now for Make Perfect Business and Earn Money online from home.
    www.hotfxearnings.com

    ReplyDelete
  31. Make Money Online is very easy now, In Internet system we have now best earning system without any work, Just Invest some Money into your Business and Make Perfect Life time Earnings with this Business.
    Join Now for Make Perfect Business and Earn Money online from home.
    www.hotfxearnings.com

    ReplyDelete
  32. This comment has been removed by the author.

    ReplyDelete
  33. Instantly soon after you’ve fixed to have started on purchasing and marketing binary options, yet another position you have bought to test and do is to glimpse for virtually any binary alternatives broker. But how will you will be mindful of that you've got picked out the best Binary Options brokers? Due to significant selection of binary opportunities brokers now every day, it is genuinely difficult to learn who might be the highest amid them. best binary options trading brokers usa

    ReplyDelete
  34. Make Money Online is very easy now, In Internet system we have now best earning system without any work, Just Invest some Money into your Business and Make Perfect Life time Earnings with this Business.
    Join Now for Make Perfect Business and Earn Money online from home.
    www.hotfxearnings.com

    ReplyDelete
  35. Latest cars and vehicles, Latest Mazda Models, Racing Cars, International Sport Cars, Concept Cars, PS-Pod, Strange Vehicles, Nissan, Royce Corniche, Ford Concept Cars, Strange Vehicles, Mercedes and More Sport Cars and Vehicles with Pictures and Info
    WorldLatestVehicles.blogspot.com

    ReplyDelete
  36. Now 1st time ever in Internet World, Facebook Earning program has been Launch, Now you Car earn money online with Just use Facebook and earn unlimited. Post a Picture on Facebook and Get $0.5 Dollar per Post, Unlimited Postings and Unlimited Earning.
    Share a Picture on Your Friends wall and Get Unlimited Income from home
    www.JobzCorner.com

    ReplyDelete
  37. Photoshop Fail Peoples in this Network... Fail Prank Peoples, Fail Videos, Fail Pictures, Troll Images, Prank Peoples, Funny Peoples, funny planet, funny facts, funny cartoons, funny movies pics, iphone funny, funny jokes, Prank Images, Fail Pictures, Epic Pictures, Lols and Gags, Lol Pictures, Funny Pictures, Lol is the Laugh out of Laugh where you can Fun Unlimited and Laughing Unlimited.
    lolsgag.com

    ReplyDelete
  38. Top Ten Classified Website List, Pakistani Classified Sites, USA Classifieds, Indian Classifieds, Entertainment Articles, Entertainment News, Entertainment Pictures, Bollywood, Hollywood and Lollywood Pictures and Videos, Entertainment Latest updates, Hot Entertainment News and Pictures Funny Entertainment Pictures, lol Pictures, Funny Pictures and every thing you want...
    www.hotcurrentaffairs.com

    ReplyDelete
  39. Classified Sites, Pakistani Classified Sites, USA Classifieds, Indian Classifieds, Entertainment Articles, Entertainment News, Entertainment Pictures, Bollywood, Hollywood and Lollywood Pictures and Videos, Entertainment Latest updates, Hot Entertainment News and Pictures Funny Entertainment Pictures, lol Pictures, Funny Pictures and Much More Fun Only on 1 Current Affairs Network
    hotcurrentaffairs.com

    ReplyDelete
  40. All Latest Hot Current Affairs, All Entertainment News updates, Entertainment Articles, Entertainment News, Entertainment Pictures, Entertainment Videos, Funny Pictures, Fail Pictures, Troll Comics, Troll Images, lol Pictures, Mp3 Tunes and every thing you want...
    www.hotcurrentaffairs.com

    ReplyDelete
  41. Funny Entertainment or Lol Pictures with full of Fun... Entertainment Articles, Entertainment News, Entertainment Pictures, Bollywood, Hollywood and Lollywood Pictures and Videos, Entertainment Latest updates, Hot Entertainment News and Pictures Funny Entertainment Pictures, lol Pictures, Funny Pictures and Much More Fun Only on 1 Current Affairs Network
    hotcurrentaffairs.com

    ReplyDelete
  42. Best Business Investment Plan without any work, You can Invest as low as 1$ Dollar to 100$ Dollars and Get Daily profit of 10.00%, Guaranteed Payment with Minimum Earning is $1.
    Join Now for Make Perfect Business and Earn Money online from home.
    www.hotfxearnings.com

    ReplyDelete
  43. Troll Images, Prank Peoples, Funny Peoples, funny planet, funny facts, funny cartoons, funny movies pics, iphone funny, funny jokes, Prank Images, Fail Pictures, Epic Pictures, Lols and Gags, Lol Pictures, Funny Pictures, Lol is the Laugh out of Laugh where you can Fun Unlimited and Laughing Unlimited.
    LolsGag.Blogspot.Com

    ReplyDelete
  44. Want to Earn Money on Facebook...?? Now 1st time ever in Internet World, Facebook Sharing Program has been Launch, Just Post a Picture on Facebook and Get $0.07 per Post, Unlimited Postings and Unlimited Earning.
    www.JobzCorner.com

    ReplyDelete
  45. Funny Facts on this Website, Every thing will be funny Troll Images, Prank Peoples, Funny Peoples, funny planet, funny facts, funny cartoons, funny movies pics, iphone funny, funny jokes, Prank Images, Fail Pictures, Epic Pictures, Lols and Gags
    LolsGag.Blogspot.Com

    ReplyDelete
  46. Troll Images, Prank Peoples, Funny Peoples, funny planet, funny facts, funny cartoons, funny movies pics, iphone funny, funny jokes, Prank Images, Fail Pictures, Epic Pictures, Lols and Gags, Lol Pictures, Funny Pictures, Lol is the Laugh out of Laugh where you can Fun Unlimited and Laughing Unlimited.
    LolsGag.Blogspot.Com

    ReplyDelete
  47. Funny picture, funny videos and Gif Images in Lols Gag Website Now... Troll Images, Prank Peoples, Funny Peoples, funny planet, funny facts, funny cartoons, funny movies pics, iphone funny, funny jokes, Prank Images, Fail Pictures, Epic Pictures, Lols and Gags
    LolsGag.Blogspot.Com

    ReplyDelete
  48. Genuines Works of Data Entry, Copy Pasting, Facebook Posting, Add Posting, Link Posting, Clicking, Web Surfing, Website Visiting, Article Sharing, Data Sharing, Google Business Plan and Much More Business Plans.
    www.onlinecornerz.ocm

    ReplyDelete
  49. Genuines Works of Data Entry, Copy Pasting, Facebook Posting, Add Posting, Link Posting, Clicking, Web Surfing, Website Visiting, Article Sharing, Data Sharing, Google Business Plan and Much More Business Plans.
    www.onlinecornerz.ocm

    ReplyDelete
  50. for More Hot Current Affairs with Pictures and Videos...
    HotCurrentAffairs

    ReplyDelete
  51. Genuines Works of Data Entry, Copy Pasting, Facebook Posting, Add Posting, Link Posting, Clicking, Web Surfing, Website Visiting, Article Sharing, Data Sharing, Google Business Plan and Much More Business Plans.
    www.onlinecornerz.com

    ReplyDelete
  52. Best Business Plans without any work, Get your investment double in 30 Days
    EarningsClub.com

    ReplyDelete
  53. Power of an Investment is Dollar Invest, Now you can invest as low as $5 and get double profit within a week
    Dollar-inv.co

    ReplyDelete
  54. All Time Profit is best platform for best profit online on internet, earn 1.50% hourly for 200 hours, total 300% profit within a week
    AllTimeProfit.com

    ReplyDelete
  55. Online Jobs, work from home, part time online jobs, just join any where in the world
    Fb.com/JobzCornerz
    JobzCorner.com

    ReplyDelete
  56. Earn Money with PayPal, Now you can earn 300% profit of your investment on every week, Join Now
    AllTimeProfit.com

    ReplyDelete
  57. Join for Best Online Home based Jobs
    JobzCorner

    ReplyDelete