Image model object from image object
imgmodel = getimagemodel(himage)
example
imgmodel = getimagemodel(himage) returns the image model object associated with image himage. If himage does not have an associated image model object, then getimagemodel creates one.
imgmodel
himage
getimagemodel
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
Target image, specified as a handle or array of handles to image objects.
imagemodel
Image model, returned as an imagemodel object. If himage is an array of handles to image objects, then imgmodel is an array of image models.
imagemodel | imattributes | imhandles
imattributes
imhandles
You have a modified version of this example. Do you want to open this example with your edits?