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.


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

See Also

Was this topic helpful?