PatchBatchExtractor Class Reference

Class for extracting spatio-temporal patches (cubes) from a video (batch mode). More...

#include <PatchBatchExtractor.hpp>

Collaboration diagram for PatchBatchExtractor:
[legend]

List of all members.

Public Member Functions

 PatchBatchExtractor (const Mat &vid, const PatchOptions &patopt, const Range &box_z=Range::all(), const Range &box_y=Range::all(), const Range &box_x=Range::all())
 batch extract patches from a video.
void dump (ostream &output) const
 debugging: dump to output stream.
void dump_matlab (ostream &output) const
 debugging: dump to matlab-readable output stream (patb struct).
Mat segm_mask (std::vector< int > &oldclasses)

Public Attributes

PatchOptions patopt
 patch options.
vector< Point3i > loc
 coordinates of top-left of each patch.
Point3i coff
 offset to center of patch.
vector< int > allx
 all x-locations on step grid.
vector< int > ally
 all y-locations on step grid.
vector< int > allz
 all z-locations on step grid.
vector< Mat > patches
 vector of all patches, corresponding to loc.
vector< Mat > patchesall
 vector of all patches, corresponding to loc.
Range box_x
 bounding box (x) for patch locations (top-left corner).
Range box_y
 bounding box (y) for patch locations.
Range box_z
 bounding box (z) for patch locations.
Point3i vidsize
 size of the video.
vector< Point3i > locall
 coordinates of top-left of all patches.
vector< bool > locall_mask
 mask for all patches.

Friends

ostream & operator<< (ostream &output, const PatchBatchExtractor &cov)
 debugging: dump to output stream.

Detailed Description

Class for extracting spatio-temporal patches (cubes) from a video (batch mode).

This extractor works in "batch" mode, where all patches extracted from a video and stored. It is basically a wrapper around PatchExtractor, which stores all the obtained patches.

See also:
PatchExtractor, PatchOptions

Definition at line 22 of file PatchBatchExtractor.hpp.


Constructor & Destructor Documentation

PatchBatchExtractor::PatchBatchExtractor ( const Mat &  vid,
const PatchOptions &  patopt,
const Range &  box_z = Range::all(),
const Range &  box_y = Range::all(),
const Range &  box_x = Range::all() 
)

batch extract patches from a video.

Parameters:
vid the Mat video
patopt patch options
box_z bounding box (z) for extracting patches
box_y bounding box (y) for extracting patches
box_x bounding box (x) for extracting patches

Definition at line 36 of file PatchBatchExtractor.cpp.

Here is the call graph for this function:


Member Function Documentation

void PatchBatchExtractor::dump ( ostream &  output  )  const

debugging: dump to output stream.

Definition at line 208 of file PatchBatchExtractor.cpp.


Friends And Related Function Documentation

ostream& operator<< ( ostream &  output,
const PatchBatchExtractor &  cov 
) [friend]

debugging: dump to output stream.

See also:
dump

Member Data Documentation

all x-locations on step grid.

Definition at line 29 of file PatchBatchExtractor.hpp.

all y-locations on step grid.

Definition at line 30 of file PatchBatchExtractor.hpp.

all z-locations on step grid.

Definition at line 31 of file PatchBatchExtractor.hpp.

bounding box (x) for patch locations (top-left corner).

Definition at line 34 of file PatchBatchExtractor.hpp.

bounding box (y) for patch locations.

Definition at line 35 of file PatchBatchExtractor.hpp.

bounding box (z) for patch locations.

Definition at line 36 of file PatchBatchExtractor.hpp.

offset to center of patch.

Definition at line 28 of file PatchBatchExtractor.hpp.

vector<Point3i> PatchBatchExtractor::loc

coordinates of top-left of each patch.

Definition at line 27 of file PatchBatchExtractor.hpp.

vector<Point3i> PatchBatchExtractor::locall

coordinates of top-left of all patches.

Definition at line 38 of file PatchBatchExtractor.hpp.

mask for all patches.

Definition at line 39 of file PatchBatchExtractor.hpp.

vector of all patches, corresponding to loc.

Definition at line 32 of file PatchBatchExtractor.hpp.

vector of all patches, corresponding to loc.

Definition at line 33 of file PatchBatchExtractor.hpp.

patch options.

Definition at line 26 of file PatchBatchExtractor.hpp.

size of the video.

Definition at line 37 of file PatchBatchExtractor.hpp.


The documentation for this class was generated from the following files:

Generated on 18 Dec 2014 for libdt-OpenCV by  doxygen 1.6.1