fixed data size (waning on x86-64)
the maximum resolution depends on driver output
find maximum value around centroid