From: Mike on
Hi

Is there a way to show same area between two images according to the
mouse moves? For example, using imtool to open two images, which are
the same area but with different gray levels. I'd like to use pixel
region to see gray levels at the same sub area. But I need to find the
center of the interest area by clicking the mouse twice at both
windows. Say, I move the mouse in the left window and the right window
will move accordingly.

Mike
From: Mike on
On Apr 23, 8:18 am, Mike <sulfate...(a)gmail.com> wrote:
> Hi
>
>   Is there a way to show same area between two images according to the
> mouse moves?  For example, using imtool to open two images, which are
> the same area but with different gray levels. I'd like to use pixel
> region to see gray levels at the same sub area. But I need to find the
> center of the interest area by clicking the mouse twice at both
> windows. Say, I move the mouse in the left window and the right window
> will move accordingly.
>
> Mike

just repost it.
From: Walter Roberson on
Mike wrote:
> On Apr 23, 8:18 am, Mike <sulfate...(a)gmail.com> wrote:

>> Is there a way to show same area between two images according to the
>> mouse moves? For example, using imtool to open two images, which are
>> the same area but with different gray levels. I'd like to use pixel
>> region to see gray levels at the same sub area. But I need to find the
>> center of the interest area by clicking the mouse twice at both
>> windows. Say, I move the mouse in the left window and the right window
>> will move accordingly.

linkaxes or linkprop, or adjust the callbacks for the ButtonDownFcn so
as to update the CurrentPosition for both axes.
From: Mike on
On Apr 24, 10:37 am, Walter Roberson <rober...(a)hushmail.com> wrote:
> Mike wrote:
> > On Apr 23, 8:18 am, Mike <sulfate...(a)gmail.com> wrote:
> >>   Is there a way to show same area between two images according to the
> >> mouse moves?  For example, using imtool to open two images, which are
> >> the same area but with different gray levels. I'd like to use pixel
> >> region to see gray levels at the same sub area. But I need to find the
> >> center of the interest area by clicking the mouse twice at both
> >> windows. Say, I move the mouse in the left window and the right window
> >> will move accordingly.
>
> linkaxes or linkprop, or adjust the callbacks for the ButtonDownFcn so
> as to update the CurrentPosition for both axes.

I check the example in linkaxes. It is usually used in subplot. But
what I have are two images.
I use imtool for the two images. Can linkaxes or linkprop be used in
linking two images?

Mike