Image model object from image object
imgmodel = getimagemodel(himage)
imgmodel = getimagemodel(himage) returns
the image model object associated with
be a handle to an image object or an array of handles to image objects.
The return value
imgmodel is an image model
himage is an array of handles to image
imgmodel is an array of image models.
himage does not have an associated image
getimagemodel creates one.
h = imshow('bag.png'); imgmodel = getimagemodel(h);