ComputeD1 works, now both ComputeD0 and ComputeD1 work when I set the cv->D to 0.02 below the respective thresholds.