a project by Martin Krzywinski | Lumondo Photography
HDTR | High Dynamic Time Range Images
capturing the flow of time in a single frame
▲ hires | HDTR of the Vancouver Skyline on 19 July 2007 from 5.30pm to 9pm. Time flows non-uniformly, left to right. The composite is blended spatially and temporally.
code
The code to create the HDTR images on this site is written in Perl. If you're on a UNIX system, chances are Perl is already installed. For Windows, use ActiveState Perl.
You will require the following modules (see CPAN, or use the ActiveState ppm package manager).
- Date::Calc
- Date::Parse
- Getopt::Long
- Math::VecStat
- Math::Round
- Pod::Usage
- GD
The script comes with
- set of input images
- several configuration files
- sample HDTR images
installation
tar -xvfz makehdtr-0.1.tgz cd makehdtr-0.1.tgz /usr/bin/perl makehdtr -conf image-01.conf # extra debug information /usr/bin/perl makehdtr -conf image-01.conf -debug
Depending on the amount of blending, HDTR image creation can take several minutes. For example, on an Opteron 248 system with 1 Gb or RAM, image-01.jpg takes 55 seconds.
image 1
configuration | basic HDTR with no blending.
image 2
configuration Added time stretch.
stretch_time = yes time_blend_a = 0.75
![](makehdtr-0.1/image-02.jpg)
image 3
configuration Added spatial blending
spatial_blend = yes blend_dist = 0.5 blend_a = 1
![](makehdtr-0.1/image-03.jpg)
image 4
configuration Added temporal blending
weights = 1,2,4,2,1
![](makehdtr-0.1/image-04.jpg)
image 5
configuration Changed time flow direction
flowaxis = y flowdir = 1
![](makehdtr-0.1/image-05.jpg)