Skip to contents

Cuts out the example regions of each sniglet and of each lead, stores them as PNGs in the key's features and meta, and points the leads at them so exportWizard() shows them. A "Has" lead shows the sniglet in the images that take that lead; a "Lacks" lead shows what its images have instead (see keyFromSniglets()). The glossary shows each sniglet's examples across all the images.

Usage

patchExemplars(model, key, images, pad = NULL, size = 96)

Arguments

model

A visionModel().

key

A key from keyFromSniglets().

images

The imageSet() the key was built from (for file paths).

pad

Pixels of context to show around the region. By default none for tiles, and half a patch's width for patch tokens.

size

The crop's output size, px.

Value

The key, modified in place and returned invisibly.