parfor for 3d detection