Class for extracting spatio-temporal patches (cubes) from a video (batch mode). More...
#include <PatchBatchExtractor.hpp>
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. | |
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.
Definition at line 22 of file PatchBatchExtractor.hpp.
| 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.
| 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.
| void PatchBatchExtractor::dump | ( | ostream & | output | ) | const |
debugging: dump to output stream.
Definition at line 208 of file PatchBatchExtractor.cpp.
| ostream& operator<< | ( | ostream & | output, | |
| const PatchBatchExtractor & | cov | |||
| ) | [friend] |
debugging: dump to output stream.
| vector<int> PatchBatchExtractor::allx |
all x-locations on step grid.
Definition at line 29 of file PatchBatchExtractor.hpp.
| vector<int> PatchBatchExtractor::ally |
all y-locations on step grid.
Definition at line 30 of file PatchBatchExtractor.hpp.
| vector<int> PatchBatchExtractor::allz |
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.
| Point3i PatchBatchExtractor::coff |
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.
| vector<bool> PatchBatchExtractor::locall_mask |
mask for all patches.
Definition at line 39 of file PatchBatchExtractor.hpp.
| vector<Mat> PatchBatchExtractor::patches |
vector of all patches, corresponding to loc.
Definition at line 32 of file PatchBatchExtractor.hpp.
| vector<Mat> PatchBatchExtractor::patchesall |
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.
| Point3i PatchBatchExtractor::vidsize |
size of the video.
Definition at line 37 of file PatchBatchExtractor.hpp.
1.6.1