Image.stdisp#

Image.stdisp(right: Self, interactive: bool = True) None[source]#

Interactive display of stereo image pair

Parameters:
  • right (Image) – right image

  • interactive (bool, optional) – if True, clicking in the left image shows the disparity at the corresponding point in the right image, defaults to True

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.

Example:

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)

../_images/machinevisiontoolbox-Image-stdisp-1.png

Note

The images are assumed to be epipolar aligned.

References:
Seealso:

anaglyph