Install any skill in seconds. Free to start, no credit card required.
Get Started Free →matlab/matlab-process-large-images
Patterns for using blockedImage to process large images, harness parallel compute for image processing, and write custom adapters.
Passed 22 of 22 test cases with the skill, and 9 of 22 without it.
and 18 more in the full report
13 fixed9 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 13 test cases the skill fixed. Same model, same prompt, with and without the skill.
I have a huge HDF5 dataset wrapped as a blockedImage object `bim`. I want to re-chunk and convert it into a tiled TIFF file on disk with a block size of 512x512. What single MATLAB method on blockedImage writes the data out to a new file format with custom chunking?
| Checked | Without skill | With skill |
|---|---|---|
| Calls the write method on the blockedImage object. | Missed | Passed |
| Passes BlockSize=[512 512] to write to configure tile chunking. | Missed | Passed |
The instructions your model reads when the skill loads.
blockedImage objectsimages.blocked.Adapter subclasses for custom file formatsimfinfo. Use blockedImage if the file is large (dimensions > 10,000 pixels in any axis), has multiple channels beyond RGB, or contains multiple IFDs (could be pyramid levels, time series, or Z-stack slices)imread/imwrite workflowsblockedImage — use the matlab-display-image skill insteadblockedImageDatastore, not network designReference files (read on demand when the topic comes up):
references/visualization.md — imageshow, overlays, synced views, overview+detail, annotationsreferences/training-and-labeling.md — Image Labeler, labeled blockedImages, training datastores, DL inferencereferences/3d-volumes.md — 3D blocked images, 3D inference, 3D training datareferences/geospatial.md — GeoTIFF, shapefiles, coordinate systems, spatial referencingreferences/data-discovery.md — 7-step data discovery workflow, custom adapters, format conversion adapter selection, virtual composite adapters, adapter performance tipsreferences/specialized-workflows.md — writing block-by-block, coordinate systems, mask-based block selection, ExtraImages for pixel-level masking, in-place resumereferences/whole-slide-images.md — importing WSI files via OpenSlide/Bio-Formats, choosing between libraries, display, downstream processing (segmentation, classification)blockedImage is not only for data that exceeds RAM. Even when the data fits in memory, wrapping it as a blockedImage lets you harness a parallel cluster: each worker can independently read and write different blocks, enabling parallel partial reads and parallel writes into separate file blocks.
Always ask the user what their intent with the data is. Ask about visualization, processing, DL training, archival, and whether they want to leverage parallel compute — even if the data fits in RAM.
ALWAYS read references/data-discovery.md and follow its 7-step workflow before writing any code. The workflow covers: inspecting file layout, parsing naming conventions, understanding user intent, choosing between single blockedImage vs. collection, assessing random access capabilities, checking for gaps/overlaps, and recommending an approach (built-in adapter, format conversion, or custom adapter).
% Read-only (auto-selects adapter; reads only metadata, fast)
bim = blockedImage("large_image.tif");
% Multiple images at once
[bim1, bim2] = blockedImage(["img1.tif", "img2.tif"]);
test cases passed, vs 9 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.