public class Image extends Object
toBufferedImage() method.| Modifier and Type | Field and Description |
|---|---|
byte[] |
data |
String |
encoding |
Header |
header |
int |
height |
int |
is_bigendian |
int |
step |
int |
width |
| Constructor and Description |
|---|
Image() |
Image(Header header,
int height,
int width,
String encoding,
int is_bigendian,
int step,
byte[] data) |
| Modifier and Type | Method and Description |
|---|---|
BufferedImage |
toBufferedImage()
Constructs a
BufferedImage from this ROS Image, provided the encoding is either rgb8, bgr8, or mono8. |
protected BufferedImage |
toBufferedImageFromMono8()
Constructs a
BufferedImage from this ROS Image assuming the encoding is mono8 |
protected BufferedImage |
toBufferedImageFromRGB8()
Constructs a
BufferedImage representation from this ROS Image assuming the encoding is either rgb8 or bgr8. |
public Header header
public int height
public int width
public String encoding
public int is_bigendian
public int step
public byte[] data
public BufferedImage toBufferedImage()
BufferedImage from this ROS Image, provided the encoding is either rgb8, bgr8, or mono8.
If it is not one of those encodings, then a runtime exception will be thrown.BufferedImage representation of this image.protected BufferedImage toBufferedImageFromMono8()
BufferedImage from this ROS Image assuming the encoding is mono8BufferedImage representation of this image.protected BufferedImage toBufferedImageFromRGB8()
BufferedImage representation from this ROS Image assuming the encoding is either rgb8 or bgr8.BufferedImage representation of this image.Copyright © 2016. All rights reserved.