Warning: Illegal string offset 'lang' in /home/www/zoon.dk/wp-content/plugins/keyword-statistics/keyword-statistics.php on line 353

Warning: Illegal string offset 'keywords' in /home/www/zoon.dk/wp-content/plugins/keyword-statistics/keyword-statistics.php on line 354

Warning: Illegal string offset 'description' in /home/www/zoon.dk/wp-content/plugins/keyword-statistics/keyword-statistics.php on line 356

Warning: Illegal string offset 'lang' in /home/www/zoon.dk/wp-content/plugins/keyword-statistics/keyword-statistics.php on line 353

Warning: Illegal string offset 'keywords' in /home/www/zoon.dk/wp-content/plugins/keyword-statistics/keyword-statistics.php on line 354

Warning: Illegal string offset 'description' in /home/www/zoon.dk/wp-content/plugins/keyword-statistics/keyword-statistics.php on line 356
Mar 25 2010

Crash course in HLSL

I just read this very interresting article on Sgt. Conker on HLSL (High Level Shader Language). It’s a beginner article, but it explains very well how shaders work, and how they came to be! I can strongly recommend this article to people new to XNA and/or shaders!
Continue reading


Mar 22 2010

First mosaic generated

Sorry… I can’t show you the mosaic since it contains 100% private pictures. Maybe I’ll go download a couple of hundred pictures from Flickr and show you! I just don’t have the time right now.

Anyways, I quickly spottet a small “error” with my algorithm. Lets say you have a source image of a clear sky. After you divide the image into a grid, and scan the cells, it’s more than likely that the average color of all the cells will be the same.
Continue reading


Mar 21 2010

First and easy approach

First approach is to index all my photos (20.000+) to determine image resolution and average color value.

Before the average color value is calculated, the image is re sized to a width of about 50 pixels. Aspect ratio is maintained. This will improve scanning speed, as fewer pixels will be scanned, and also improve color correctness as only the visible pixels will be calculated. Once this process is done, the image is stored in a SQL Compact server database (filename, width, height, colorvalue).
Continue reading


Mar 21 2010

Photo Mosaic

I have been exploring the world of photo mosaics (see Wikipedia article), and it’s quite fascinating!
Continue reading