Class ImageUtilPtr


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

      • ImageUtilPtr

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

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

        public ImageUtilPtr​(ImageUtil ptr)
        Do not take ownership of ptr.

        ptr can be null.

        The constructor is implicit on purpose.
    • Method Detail

      • getCPtr

        public static long getCPtr​(ImageUtilPtr obj)
      • delete

        public void delete()
      • deref

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

        public ImageUtil __ref__()
        Dereferencing operator.
      • getDeref

        public ImageUtil getDeref()
        Member access operator.
      • equals

        public boolean equals​(ImageUtil p)
      • 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
      • RGB2GRAY

        public void RGB2GRAY​(Image src,
                             Image dst)
        converts an image of RGB type into an image of
        GRAY type.
      • reset

        public void reset​(Image img,
                          int color)
        sets the value of all channels of an image to
        color.
      • reset

        public void reset​(Image img)
        sets the value of all channels of an image to
        color.
      • flipX

        public void flipX​(Image img)
        flips the image around the x-axis (horizontal)
        Parameters:
        img -
      • flipY

        public void flipY​(Image img)
        flips the image around the y-axis (vertical)
        Parameters:
        img -
      • makeDepthImage

        public ImagePtr makeDepthImage​(PointCloud cloud)
        Conditional comment:

        End of conditional comment.

        convert pointcloud to a depth image. Colors are scaled to min and ax distance of
        points.
        Parameters:
        cloud - [in] cloud to convert to image
        Returns:
        image showing the pointcloud as a depth image
      • makeDepthImage

        public ImagePtr makeDepthImage​(PointCloud cloud,
                                       float min,
                                       float max)
        convert pointcloud to a depth image. Colors are scaled to min and max distance
        specified by user
        Parameters:
        cloud - [in] cloud to convert to image
        min - [in] the minimum distance corresponding to black
        max - [in] the maximum distance corresponding to white
        Returns:
        image showing the pointcloud as a depth image