PRTools Contents

PRTools User Guide

getwindows

GETWINDOWS

Get pixel feature vectors around given pixels in image dataset

     L = GETWINDOWS(A,INDEX,WSIZE,INCLUDE)
     L = GETWINDOWS(A,[ROW,COL],WSIZE,INCLUDE)

Input
 A Dataset containing feature images
 INDEX Index vector of target pixels in the images (Objects in A)
 ROW Column vector of row-coordinates of target pixels
 COL Column vector of column-coordinates of target pixels
 WSIZE Desired size of rectangular window around target pixels
 INCLUDE Flag (0/1), indicating whether target pixels should be included  (1,default), or not (0) in result.

Output
 L Index in A of window pixels

Description

This routine generates all objects in a dataset constructed by image  features that are in a window of size WSIZE around the target pixels  given by INDEX, or by [ROW,COL]. If WSIZE is omitted or empty ([],  default), just the 4 4-conntected neighbors of the target pixels are  returned. L points to the window pixels, such that A(L,:) is a dataset  of the corresponding objects.

See also

datasets, im2feat,

PRTools Contents

PRTools User Guide

This file has been automatically generated. If badly readable, use the help-command in Matlab.