tev icon indicating copy to clipboard operation
tev copied to clipboard

Aligning images with the reference image manually

Open dpaleka opened this issue 3 years ago • 1 comments

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?

dpaleka avatar May 18 '22 14:05 dpaleka

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!

Tom94 avatar May 18 '22 19:05 Tom94