dynamic grid calculation

SurveillanceSaver will run as a multi-touch application on the new heyewall 2.0 with a 35 megapixel resolution. the whole database (> 1000 images) will be displayed as a grid of images.

johannes helped me with the calculation of the dynamic grid formula:

x elements = squareroot ( number of images * aspect ratio )
y elements = number of images / x elements