Localizing 3D cuboids in single-view images