Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

getimagemodel

Image model object from image object

Syntax

imgmodel = getimagemodel(himage)

Description

imgmodel = getimagemodel(himage) returns the image model object associated with himage. himage must be a handle to an image object or an array of handles to image objects.

The return value imgmodel is an image model object. If himage is an array of handles to image objects, imgmodel is an array of image models.

If himage does not have an associated image model object, getimagemodel creates one.

Examples

collapse all

Read an image into the workspace.

h = imshow('bag.png');

Retrieve the image model associated with this image.

imgmodel = getimagemodel(h)
 
imgmodel =
 
IMAGEMODEL object accessing an image with these properties:

       ClassType: 'uint8'
    DisplayRange: [0 255]
     ImageHeight: 250
       ImageType: 'intensity'
      ImageWidth: 189
    MinIntensity: 0
    MaxIntensity: 255

 

See Also

Introduced before R2006a

Was this topic helpful?