Package gov.nih.mipav.model.algorithms
Class libdt.PatchExtractor
java.lang.Object
gov.nih.mipav.model.algorithms.libdt.PatchExtractor
- Enclosing class:
libdt
Class for extracting spatio-temporal patches (cubes) from a video (online
mode). The extractor works in an "online" mode, where frames are added
sequentially. When enough frames are added a true flag is returned, which
indicates that new patches have been formed. Normalization of patches is
handled efficiently, and access is given to the current video buffer. Also
included is a function for converting a set of labels corresponding to each
patche to an image.
The actual patches will be in different places, depending on the
normalization used: 1) norm_none --> patches are sub-videos of the buffer
(vbuf); 2) norm_zm --> patches are sub-videos of the buffer (vbuf_zm); 3)
norm_zmuv --> patches are local copies. Note that in some cases, the patches
are just references to a sub-videos of the video buffer. Hence, it is not
allowed to modify the patches.
\sa PatchOptions, PatchBatchExtractor
-
Field Summary
FieldsModifier and TypeFieldDescriptioninvalid input: '<' offset to center of patch.invalid input: '<' all x-locations on step grid.javax.vecmath.Point3iinvalid input: '<' value of curz that will form a new patch.intinvalid input: '<' current z location of the patches (z of the first frame of the patch).booleaninvalid input: '<' the set of patches.invalid input: '<' flag if vbuf_zm is used.invalid input: '<' center frame of the video buffer (reference to vbuf).Vector<javax.vecmath.Point2i> invalid input: '<' number of columns in the video frame.invalid input: '<' (y,x) coordinates of top-left of each patch.intinvalid input: '<' patch mask depending on pixel variance.intinvalid input: '<' z location for next frame added.invalid input: '<' video buffer w/o mean [vrows,vcols,patopt.win.z] type=OPT_MAT_TYPE.fill type for generating images from patch labels.invalid input: '<' all y-locations on step grid.invalid input: '<' video buffer to store current frames [vrows,vcols,patopt.win.z] type=OPT_MAT_TYPE.intinvalid input: '<' options for extracting patches.intinvalid input: '<' options for extracting patches. -
Constructor Summary
ConstructorsConstructorDescriptionPatchExtractor(libdt.PatchOptions patopt, int vrows, int vcols) invalid input: '<' center frames of the video buffer (reference to vbuf). -
Method Summary
-
Field Details
-
patopt
fill type for generating images from patch labels. \sa patchLabelsToImage -
vrows
public int vrowsinvalid input: '<' options for extracting patches. -
vcols
public int vcolsinvalid input: '<' options for extracting patches. -
locyx
invalid input: '<' number of columns in the video frame. -
locyx_mask
invalid input: '<' (y,x) coordinates of top-left of each patch. -
locz
public int loczinvalid input: '<' patch mask depending on pixel variance. -
curz
public int curzinvalid input: '<' current z location of the patches (z of the first frame of the patch). -
nextz
public int nextzinvalid input: '<' z location for next frame added. -
coff
public javax.vecmath.Point3i coffinvalid input: '<' value of curz that will form a new patch. -
allx
invalid input: '<' offset to center of patch. -
ally
invalid input: '<' all x-locations on step grid. -
vbuf
invalid input: '<' all y-locations on step grid. -
vbuf_zm
invalid input: '<' video buffer to store current frames [vrows,vcols,patopt.win.z] type=OPT_MAT_TYPE. -
patches
invalid input: '<' video buffer w/o mean [vrows,vcols,patopt.win.z] type=OPT_MAT_TYPE. -
flag_zm
public boolean flag_zminvalid input: '<' the set of patches. -
frame_center
invalid input: '<' flag if vbuf_zm is used. -
frame_patches
invalid input: '<' center frame of the video buffer (reference to vbuf).
-
-
Constructor Details
-
PatchExtractor
invalid input: '<' center frames of the video buffer (reference to vbuf).
-
-
Method Details
-
getLoc
void getLoc() -
reset
void reset()
-