imshowcv

Displays an image in the current figure its ComputerVision cvhandle.

Syntax

plothandle = imshowcv(imagedata)

Inputs

imagedata
Handle of an image image generated by the ComputerVision library or a real 2D/3D/4D matrix.
Type: integer | matrix | matrix ND

Outputs

plothandle
Handle of the image shown.
Type: double

Examples

Display an image using an image handle:

cvhandle = imreadcv('image1.jpg');
plothandle = imshowcv(cvhandle);
Display only the red channel data in an image:

handle = imreadcv('image1.jpg');
m = getcv(handle);    % Gets the 3D matrix
m1 = m(:,:,1);        % Get the first slice - red
plothandle = imshowcv(m1);