imshow
Displays an image file in a figure.
Syntax
h = imshow(input)
h = imshow(input, property, value, ...)
h = imshow(parent, ...)
h = imshow(input)
Inputs
- input
- Path of the file that is displayed in a figure or matrix.
- property, value
-
- 'position'
- Position and size of h. Value is specified as a vector of the form: [left top width height].
- 'units'
- Specifies units of measurement. Valid values are 'pixels'(default) and 'normalized'.
- parent
- Handle of a container object, which could be a figure or uipanel.
Outputs
- h
- Handle of the image shown.
Examples
close all;
h = imshow('img1.PNG');