Tom94 / tev

High dynamic range (HDR) image viewer for graphics people
BSD 3-Clause "New" or "Revised" License
1.02k stars 86 forks source link

Aligning images with the reference image manually #183

Open dpaleka opened 2 years ago

dpaleka commented 2 years ago

Let's say I want to compare a modified crop of an image with the original reference image. Is there a way to drag the image to align with the reference, or specify an offset for a given image?

Tom94 commented 2 years ago

Hi there, OpenEXR images allow you to specify a separate "display window" and "data window". If you store your crop such that the display window matches the original image and the crop window matches the cropped region, then tev will automatically keep the images aligned at all times.

If using the OpenEXR image format is not an option, I'm afraid this will be tougher. You might be able to hack something half-working together by hardcoding appropriate display and data windows into ImageCanvas::transform and Image::centerDisplayOffset.

Cheers!