[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: image wipe
From: |
Pantxo |
Subject: |
Re: image wipe |
Date: |
Tue, 30 Apr 2019 03:19:56 -0500 (CDT) |
Richard Kirk wrote
> I often need to compare before and after images, or check the registration
> of
> two images.
>
> Some image viewers allow you to wipe between two images. This is one way
> of
> doing what I want, and the one I put in the title, but there may be
> others.
>
> imshow() does not support a second image. However, I can flip between two
> images I and J by calling imshow(I) and imshow (J). However, I often want
> to
> zoom into some detail, and compare the same region in I and J. I can do
> this
> by reading off the X and Y range off the the imshow() view, and altering
> the
> commands to display that subset of each image. It would be easier if I
> could
> call new new imshow() command and inherit the zoom and pan settings of the
> previous one, but I can't see how that can be done.
>
> Any ideas?
>
>
>
>
>
>
> --
> Sent from:
> http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
You could plot the images in the same axes and make the second (in)visible
(or invert the order) for switching between one and the other. Something
like:
axes ();
hold on;
h1 = imshow (I);
h2 = imshow (J);
## Now you want to see image "I"
set (h2, "visible", "off")
## Now you want to see image "J" again
set (h2, "visible", "on")
HTH,
Pantxo
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html
- image wipe, Richard Kirk, 2019/04/29
- Re: image wipe,
Pantxo <=