Class 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 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