VisionX V4VPATCHVisionX V4
NAME

vpatch − decompose an image into a set of overlapping patches

SYNOPSIS

vpatch [if=<inputfile>] [of=<outputfile>] [p=xs[,ys]] [l=xv[,yv]] [-f]

DESCRIPTION

Vpatch decomposes an image into a set of overlapping rectangular image regions. The default amount of overlap between patches is 50%, and the size of the default patch is 4 x 4. Patches do not overlap the edge of the image Therefore, an 8 x 8 image will be decomposed, by default, into 9 (4x4) patches contructed from 3 rows of 3 patches. Each pixel in the center region of an image will be covered by four patches. By default, the patches are created started from the bottom left corner of the image. If the patchs can not completely cover the image, any incomplete patches will be left out. For three dimensional images, each slice in the xy plane is pathced. The result from vpatch may be conveniently viewed with the tile command. If l=0 for vpatch then tile will exactly reconstruct the image.

OPTIONS

p=xs[,ys]

The p= option for vpatch specifies the patch size. If only one value is given then it is used for both of the patch dimensions.

l=xv[,yv]

The l= option for vpatch and vquilt specifies the overlap between adjacent patches. If only one value is given then it is used for both of the patch dimensions. For example, l=0 specifies that there will be no overlap between patches.

-f

Patches are created starting from the top left of the image.

AUTHOR

A. P. Reeves

SEE ALSO

tile(1)