matshow

by Pierre Sermanet (January 11th, 2011)



matshow can display any image type as well as .mat image files. It can also display weights contained in a network weights file (see '-conf' option). User can zoom, pan, show multiple images at once, display image informations and change display range (see controls section).

Calls

  • ./matshow <file(s)> [options]

  • Display all .mat images in current directory:
    ./matshow *.mat

  • Display all .jpg images in current directory:
    ./matshow *.jpg

  • Display all network weight in current directory which structure is defined in 'best.conf' configuration file, zooming on weights slices with a factor of 2.0, displaying them from the -1.5,1.5 range:
    ./matshow *.mat -conf best.conf -zoom 2.0 -range -1.5,1.5

Controls

  • pan: left-click and move mouse around to pan the image.
  • zoom: use mouse wheel to zoom in and out.
  • multiple images: multiple images can be shown at the same time using x or z keys to show more or less images horizontally, or y and t keys vertically.
  • previous/next: user can show images back and forth using left/right or backspace/space keys.
  • image information: display image informations such as size by pressing i.
  • help: key controls can be shown by pressing h.
  • autorange: enable/disable automatic input range by pressing a. Automatic range will map the minimum and maximum input range to the 0,255 display extrema.

Options

  • -conf <filename>
    Show a trained network's weights.
  • -zoom <factor>
    Zoom on weights by this factor.
  • -range <range, e.g.: -1,1>
    Input range to map to display range (0 - 255).
  • -video
    Display and save all input images in a video_<timestamp> directory, than can later be compile into a video.