Documentation Center

  • Trial Software
  • Product Updates

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

h = imshow('bag.png');
imgmodel = getimagemodel(h);

See Also

Was this topic helpful?