Combining spectroscopic and imaging galaxy surveys for improved measurements of large-scale structure