Answered Photo mosaic

  • Tuesday, July 10, 2012 7:02 AM
     
     

    I’m making a photo mosaic script. This script has one picture and changes it to a photo buildup of little pictures. From a distance it looks like the real picture, when you move closer you see it are all little pictures. I take a square of a fixed number of pixels and determine the average color of that square. Then I compare this with my data base which contains the average color of a couple thousand of pictures. I determine the color distance with all available images. But to run this script fully it takes a couple of minutes.

    So I have been searching online to find a solution for these loading times. And a couple times I found people talking about the Antipole strategy. But after some searching I couldn’t find a real explanation of this term. So my question is can you explain this strategy, or is there an article with some examples which explains the process? Or is there an even better way to deal with this problem?


    Peter

All Replies

  • Wednesday, July 11, 2012 6:30 AM
    Moderator
     
     

    Hi Peter,

    What programming language you are using to maek a photo mosaic? And here is mainly discuss data mining issue, I suggest you post the question to related place.

    Thanks,
    Eileen

  • Wednesday, July 11, 2012 6:50 AM
     
     

    I made this script with PHP, probably not the best language, not sure which language would be the best though.

    The reason I ask this question on this website is because I thought, I needed to improve my database structure or the way I search through it to make it quicker. Isn’t that a part of data mining? And I have no idea how to improve my DB so that’s why I’m here.

    • Edited by phpeter Wednesday, July 11, 2012 6:55 AM
    • Edited by phpeter Wednesday, July 11, 2012 6:55 AM
    •  
  • Wednesday, July 11, 2012 7:30 AM
     
     Answered

    @Phpeter: unfortunately this question does not fall in data mining category.

    If i were you, I would try StackOverflow with tags like php, database-desing, database-modeling, database-structure. And I would mention the Database that I am using.

    And If it's SQL Server, you can consider posting your question on related SQL server MSDN forum for database perf. optimization suggestions!


    Paras Doshi (Blog: ParasDoshi.com | Twitter: @Paras_Doshi )