Image editing models adjust object sizes using 3D rulers accurately
RulerEdit: Quantitative Image Editing via 3D Rulers
Computer Vision and Pattern Recognition
Summary
Image editing tools usually follow instructions but struggle to resize objects by specific 3D lengths because they only work in 2D. The authors present RulerEdit, which lets users define a ruler in 3D using five points on the image and uses depth to guide precise changes. RulerEdit is trained on synthetic 3D data but works well on real photos. It outperforms other models in making size edits with less error.
What this means in practice
- •For photo editors: Adjust object dimensions precisely in photographs by specifying real-world lengths in 3D space for more accurate image manipulations.$Commercial implications: Enables photo editing software to offer exact size adjustments based on 3D dimensions, appealing directly to professional photo editors.
- •For augmented reality developers: Use 3D rulers derived from images to create accurate depth-aware overlays and object resizing in AR experiences.
Authors
Jinglin Chen, Shiyi Zhang, Zetong Zhao, Shilin Ma, Yansong Tang
Abstract
Current image editing models follow the semantics of instructions but cannot change an object by a user-specified 3D length. We attribute this to a lack of spatial intelligence: 2D editing models learn only on the image plane and cannot measure or follow lengths in 3D. We propose RulerEdit for quantitative image editing. RulerEdit first converts the editing request into a target ruler in 3D space and then renders it into depth-aware visual cues, namely a shifted scene that describes the motion and a swept surface that describes the final shape, which guide the editing model. Since a single image carries no absolute scale, the ruler length is defined relative to a reference ruler in the same image, and a user or an agent constructs the ruler by picking five points on visible surfaces, which are lifted to 3D with monocular depth. Trained only on procedurally generated Blender data, RulerEdit directly edits real photographs. We also introduce RulerBench to evaluate quantitative editing. Compared with other editing models, RulerEdit edits sizes more accurately and achieves clearly lower errors on multiple metrics.