Package gov.nih.mipav.model.algorithms
Class libdt.PatchExtractor
- java.lang.Object
-
- gov.nih.mipav.model.algorithms.libdt.PatchExtractor
-
- Enclosing class:
- libdt
class libdt.PatchExtractor extends java.lang.Object
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
Fields Modifier and Type Field Description java.util.Vector<java.lang.Integer>
allx
java.util.Vector<java.lang.Integer>
ally
javax.vecmath.Point3i
coff
int
curz
boolean
flag_zm
libdt.Mat
frame_center
libdt.Mat[]
frame_patches
java.util.Vector<javax.vecmath.Point2i>
locyx
java.util.Vector<java.lang.Boolean>
locyx_mask
int
locz
int
nextz
java.util.Vector<libdt.Mat[]>
patches
libdt.PatchOptions
patopt
fill type for generating images from patch labels.libdt.Mat[]
vbuf
libdt.Mat[]
vbuf_zm
int
vcols
int
vrows
-
Constructor Summary
Constructors Constructor Description PatchExtractor(libdt.PatchOptions patopt, int vrows, int vcols)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
getLoc()
(package private) void
reset()
-
-
-
Field Detail
-
patopt
public libdt.PatchOptions patopt
fill type for generating images from patch labels. \sa patchLabelsToImage
-
vrows
public int vrows
-
vcols
public int vcols
-
locyx
public java.util.Vector<javax.vecmath.Point2i> locyx
-
locyx_mask
public java.util.Vector<java.lang.Boolean> locyx_mask
-
locz
public int locz
-
curz
public int curz
-
nextz
public int nextz
-
coff
public javax.vecmath.Point3i coff
-
allx
public java.util.Vector<java.lang.Integer> allx
-
ally
public java.util.Vector<java.lang.Integer> ally
-
vbuf
public libdt.Mat[] vbuf
-
vbuf_zm
public libdt.Mat[] vbuf_zm
-
patches
public java.util.Vector<libdt.Mat[]> patches
-
flag_zm
public boolean flag_zm
-
frame_center
public libdt.Mat frame_center
-
frame_patches
public libdt.Mat[] frame_patches
-
Constructor Detail
-
PatchExtractor
public PatchExtractor(libdt.PatchOptions patopt, int vrows, int vcols)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-