Sunday, July 23, 2017

World Map Continued

One of the interesting things about the GraphicsPath object is that you can check for point inclusion. In this case the mouse's coordinates were used to select a country. Probably not the most efficient way to do selection, but a very quick fix.


Friday, July 21, 2017

World map via svg

One thing I've been meaning to do for a long time, was write my own code to view various simply geographic data. I found some maps brought in as SVG geometry and wrote a viewer and parser for it. Took a bit longer than what I thought, as I didn't properly read the SVG format, and is also a reminder that I really need to learn ANTR better, couldn't really figure out how to match text with Arrays instead of Lists. The next step is to map these points to Longitude/Latitude values. The distortion of this (probably Mecator) projection makes Greenland look huge. I will have to look at projecting this data to a different system.


Saturday, July 15, 2017

HDR format


Revisiting an old project today. Made a viewer for the HDR/PIC format that comes out of Radiance. I created it before, though lost the old code. Also the compression seems to have changed. Now it uses adaptive run-length encoding which took awhile for me to get my head around. Also had a go at the false color image using the luminence values. 
The next step after this, is to 


With the more familiar red-green-blue.


With the interpolation function acting wacky.