Image.stdisp#
- Image.stdisp(right: Self, interactive: bool = True, title: str | None = None) None[source]#
Interactive display of stereo image pair
- Parameters:
right (
Image) – right imageinteractive (bool, optional) – if True, clicking in the left image shows the disparity at the corresponding point in the right image, defaults to True
title (str, optional) – window title, defaults to the names of the left and right image files, or “Stereo Pair” if they are not both known
- Raises:
ValueError – images are not the same size
- Returns:
None
The left and right images are displayed, stacked horizontally. Clicking in the left-hand image sets a crosshair cursor in the right-hand image. Clicking the corresponding point in the right-hand image will display the disparity at the top of the right-hand image.
Examples
from machinevisiontoolbox import Image left = Image.Read("rocks2-l.png", reduce=2) right = Image.Read("rocks2-r.png", reduce=2) left.stdisp(right)
(
Source code,png,hires.png,pdf)
Note
The images are assumed to be epipolar aligned.
References
See also