This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Image model object from image object


imgmodel = getimagemodel(himage)


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.


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