Critical loci in computer vision and matrices dropping rank in codimension one