Package org.robwork.sdurw_simulation
Class FrameGrabber25D
- java.lang.Object
-
- org.robwork.sdurw_simulation.FrameGrabber25D
-
- Direct Known Subclasses:
GLFrameGrabber25D
public class FrameGrabber25D extends java.lang.Object
The FrameGrabber25D abstract interface, can be used to grab images from a
specialized source.
-
-
Constructor Summary
Constructors Constructor Description FrameGrabber25D(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(FrameGrabber25D obj)
double
getFieldOfViewY()
Returns the field of view measured around the y-axis.long
getHeight()
returns the height of the imagePointCloud
getImage()
returns the imagedouble
getMaxDepth()
maximum depth that this framegrabber can handledouble
getMinDepth()
minimum depth that this framegrabber can handlelong
getWidth()
returns the width of the imagevoid
grab(FramePtr frame, State state)
this function grabs a image from the specialized source and
copies it to the FrameGrabber25D image.void
resize(long width, long height)
resizes the image that this frameGrabber use.
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(FrameGrabber25D obj)
-
delete
public void delete()
-
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 imageheight
- [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
-
-