Tom94/tev

Aligning images with the reference image manually

dpaleka opened this issue · 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?

Tom94 commented

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!