vismatch.im_models.matchanything

Functions

pad_bottom_right(inp, pad_size[, ret_mask])

process_resize(w, h[, resize, df, ...])

resize(img[, resize, df, padding])

resize_image(image, size, interp)

Classes

MatchAnythingMatcher([device, variant, ...])

Wrapper around the MatchAnything checkpoints.

class vismatch.im_models.matchanything.MatchAnythingMatcher(device='cpu', variant='eloftr', match_threshold=0.2, img_resize=None, *args, **kwargs)[source][source]

Bases: BaseMatcher

Wrapper around the MatchAnything checkpoints.

Parameters:

device (str)

preprocess(img)[source][source]
vismatch.im_models.matchanything.resize(img, resize=None, df=8, padding=True)[source][source]
vismatch.im_models.matchanything.process_resize(w, h, resize=None, df=None, resize_no_larger_than=False)[source][source]
vismatch.im_models.matchanything.resize_image(image, size, interp)[source][source]
vismatch.im_models.matchanything.pad_bottom_right(inp, pad_size, ret_mask=False)[source][source]