Install any skill in seconds. Free to start, no credit card required.
Get Started Free →matlab/matlab-display-image
Display images and annotations for image processing, computer vision, and visual inspection.
Passed 21 of 22 test cases with the skill, and 4 of 22 without it.
and 23 more in the full report
17 fixed4 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 17 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write a MATLAB snippet to set up a 2D image display and programmatically zoom into the rectangular subregion with origin (250, 100) and dimensions 150x120 pixels.
| Checked | Without skill | With skill |
|---|---|---|
| Sets the visible subregion via CameraViewport on the viewer object. | Missed | Passed |
| Avoids using xlim or ylim functions on the viewer handle. | Missed | Passed |
The instructions your model reads when the skill loads.
Display images with imageshow rather than imshow for more performant, higher quality image display with more responsive interactions for images of all sizes.
imshow, but recommend imageshow for better performance)uiimage)Note: Do NOT use bigimageshow. It is a legacy function. Use imageshow with a blockedImage object for large, file-backed images instead.
| Do NOT use | Use instead | Why |
|---|---|---|
imshow | imageshow | Better performance, higher quality, responsive interactions |
uiaxes + imshow in apps | viewer2d + imageshow | Viewer handles zoom, pan, and interactions natively |
rectangle(), drawrectangle(), imrect(), or insertObjectAnnotation | uidraw with Position | Interactive, programmatic placement, built-in measurements |
montage | imtile + imageshow | Composable, works with viewer |
figure + getframe(fig) | viewer2d + getframe(viewer) | Viewer waits for rendering to complete before capture |
| Manual image blending for overlays | imageshow with OverlayData | Built-in transparency, colormap, and display range control |
Manual for loop calling uidraw per annotation | uidraw with Wait="multiple" | Single session, user controls when done |
| Manual alpha blending with pixel math | OverlayAlphamap property | Built-in per-pixel transparency mapping |
linkaxes or manual callback synchronization | linkviewers | Purpose-built for viewer2d, handles all camera properties |
roipoly, manual mask painting | uipaint | Interactive brush-based painting with overlay feedback |
bigimageshow | imageshow with blockedImage | imageshow handles blocked images directly, bigimageshow is legacy |
title("text") or title(gca,"text") | title(viewer,"text") | gca does not return the viewer; pass the viewer object directly |
xlim/ylim to zoom into a region | viewer.CameraViewport = [x y w h] | Viewer is not an axes; xlim/ylim error on viewer2d |
| Component | Constructor | Key callback |
|---|---|---|
| Viewer | viewer2d(parent) | CameraMovedFcn, ObjectClickedFcn |
test cases passed, vs 4 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.