Class FrameGrabber25DPtr


  • public class FrameGrabber25DPtr
    extends java.lang.Object
    Ptr stores a pointer and optionally takes ownership of the value.
    • Constructor Detail

      • FrameGrabber25DPtr

        public FrameGrabber25DPtr​(long cPtr,
                                  boolean cMemoryOwn)
      • FrameGrabber25DPtr

        public FrameGrabber25DPtr()
        Default constructor yielding a NULL-pointer.
      • FrameGrabber25DPtr

        public FrameGrabber25DPtr​(FrameGrabber25D ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • isShared

        public boolean isShared()
        check if this Ptr has shared ownership or none
        ownership
        Returns:
        true if Ptr has shared ownership, false if it has no ownership.
      • isNull

        public boolean isNull()
        checks if the pointer is null
        Returns:
        Returns true if the pointer is null
      • getWidth

        public long getWidth()
        returns the width of the image
        Returns:
        the height of the image
      • getHeight

        public long getHeight()
        returns the height of the image
        Returns:
        the height of the image
      • getFieldOfViewY

        public double getFieldOfViewY()
        Returns the field of view measured around the y-axis.
        Returns:
        Field of view measured around y-axis in radians
      • resize

        public void resize​(long width,
                           long height)
        resizes the image that this frameGrabber use. The colorcode will
        default to the one that FrameGrabber25D was initialized with.
        Parameters:
        width - [in] width of image
        height - [in] height of image
      • getImage

        public PointCloud getImage()
        returns the image
        Returns:
        the image
      • grab

        public void grab​(FramePtr frame,
                         State state)
        this function grabs a image from the specialized source and
        copies it to the FrameGrabber25D image.
      • getMaxDepth

        public double getMaxDepth()
        maximum depth that this framegrabber can handle
        Returns:
        maximum depth in meter
      • getMinDepth

        public double getMinDepth()
        minimum depth that this framegrabber can handle
        Returns:
        minimum depth in meter