speed up: use cpp pixel estimator