Class StructuredLightPattern

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected StructuredLightPattern​(long addr)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static StructuredLightPattern __fromPtr__​(long addr)  
      boolean decode​(java.util.List<java.util.List<Mat>> patternImages, Mat disparityMap)
      Decodes the structured light pattern, generating a disparity map
      boolean decode​(java.util.List<java.util.List<Mat>> patternImages, Mat disparityMap, java.util.List<Mat> blackImages)
      Decodes the structured light pattern, generating a disparity map
      boolean decode​(java.util.List<java.util.List<Mat>> patternImages, Mat disparityMap, java.util.List<Mat> blackImages, java.util.List<Mat> whiteImages)
      Decodes the structured light pattern, generating a disparity map
      boolean decode​(java.util.List<java.util.List<Mat>> patternImages, Mat disparityMap, java.util.List<Mat> blackImages, java.util.List<Mat> whiteImages, int flags)
      Decodes the structured light pattern, generating a disparity map
      protected void finalize()  
      boolean generate​(java.util.List<Mat> patternImages)
      Generates the structured light pattern to project.
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StructuredLightPattern

        protected StructuredLightPattern​(long addr)
    • Method Detail

      • generate

        public boolean generate​(java.util.List<Mat> patternImages)
        Generates the structured light pattern to project.
        Parameters:
        patternImages - The generated pattern: a vector<Mat>, in which each image is a CV_8U Mat at projector's resolution.
        Returns:
        automatically generated
      • decode

        public boolean decode​(java.util.List<java.util.List<Mat>> patternImages,
                              Mat disparityMap,
                              java.util.List<Mat> blackImages,
                              java.util.List<Mat> whiteImages,
                              int flags)
        Decodes the structured light pattern, generating a disparity map
        Parameters:
        patternImages - The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.
        disparityMap - The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.
        blackImages - The all-black images needed for shadowMasks computation.
        whiteImages - The all-white images needed for shadowMasks computation.
        flags - Flags setting decoding algorithms. Default: DECODE_3D_UNDERWORLD. Note: All the images must be at the same resolution.
        Returns:
        automatically generated
      • decode

        public boolean decode​(java.util.List<java.util.List<Mat>> patternImages,
                              Mat disparityMap,
                              java.util.List<Mat> blackImages,
                              java.util.List<Mat> whiteImages)
        Decodes the structured light pattern, generating a disparity map
        Parameters:
        patternImages - The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.
        disparityMap - The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.
        blackImages - The all-black images needed for shadowMasks computation.
        whiteImages - The all-white images needed for shadowMasks computation. Note: All the images must be at the same resolution.
        Returns:
        automatically generated
      • decode

        public boolean decode​(java.util.List<java.util.List<Mat>> patternImages,
                              Mat disparityMap,
                              java.util.List<Mat> blackImages)
        Decodes the structured light pattern, generating a disparity map
        Parameters:
        patternImages - The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.
        disparityMap - The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map.
        blackImages - The all-black images needed for shadowMasks computation. Note: All the images must be at the same resolution.
        Returns:
        automatically generated
      • decode

        public boolean decode​(java.util.List<java.util.List<Mat>> patternImages,
                              Mat disparityMap)
        Decodes the structured light pattern, generating a disparity map
        Parameters:
        patternImages - The acquired pattern images to decode (vector<vector<Mat>>), loaded as grayscale and previously rectified.
        disparityMap - The decoding result: a CV_64F Mat at image resolution, storing the computed disparity map. Note: All the images must be at the same resolution.
        Returns:
        automatically generated
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class Algorithm
        Throws:
        java.lang.Throwable