Class FrameGrabberPtr

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

      • FrameGrabberPtr

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

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

        public FrameGrabberPtr​(FrameGrabber ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • delete

        public void delete()
      • deref

        public FrameGrabber deref()
        The pointer stored in the object.
      • __ref__

        public FrameGrabber __ref__()
        Dereferencing operator.
      • getDeref

        public FrameGrabber getDeref()
        Member access operator.
      • isShared

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

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

        public int getWidth()
        returns the width of the image
        the width of the image
      • getHeight

        public int getHeight()
        returns the height of the image
        the height of the image
      • resize

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

        public void resize​(int width,
                           int height,
                           Image.ColorCode colorCode)
        resizes the image that this frameGrabber use.
        width - [in] width of image.
        height - [in] height of image.
        colorCode - [in] Color encoding of the image.
      • getImage

        public Image getImage()
        returns the image
        the image
      • grab

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