public class ImageWritable extends java.lang.Object implements Writable
Frame
to allow serialization within this framework.
Frame objects can be converted back and forth easily to and from classes
used by Android, Java 2D, OpenCV, FFmpeg, and others.Frame
,
FrameConverter
,
Serialized FormConstructor and Description |
---|
ImageWritable(org.bytedeco.javacv.Frame frame) |
Modifier and Type | Method and Description |
---|---|
org.bytedeco.javacv.Frame |
getFrame() |
void |
readFields(java.io.DataInput in)
Deserialize the fields of this object from
in . |
void |
setFrame(org.bytedeco.javacv.Frame frame) |
double |
toDouble()
Convert Writable to double.
|
float |
toFloat()
Convert Writable to float.
|
int |
toInt()
Convert Writable to int.
|
long |
toLong()
Convert Writable to long.
|
void |
write(java.io.DataOutput out)
Serialize the fields of this object to
out . |
public org.bytedeco.javacv.Frame getFrame()
public void setFrame(org.bytedeco.javacv.Frame frame)
public void write(java.io.DataOutput out) throws java.io.IOException
Writable
out
.public void readFields(java.io.DataInput in) throws java.io.IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.java.io.IOException
public double toDouble()
Writable
public float toFloat()
Writable
public int toInt()
Writable