Adaptive sampling for scanning pixel cameras