public class Image
extends java.lang.Object
implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
protected boolean |
swigCMemOwn |
Modifier | Constructor and Description |
---|---|
|
Image() |
|
Image(Image image) |
protected |
Image(long cPtr,
boolean cMemoryOwn) |
|
Image(long width,
long height,
java.lang.String channels,
DataType data_type) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Image |
convert(java.lang.String channels,
DataType data_type) |
Image |
copy() |
void |
delete() |
protected void |
finalize() |
long |
getChannelCount()
Number of color channels.
|
java.lang.String |
getChannels() |
protected static long |
getCPtr(Image obj) |
DataType |
getDataType() |
long |
getHeight()
Image height.
|
long |
getWidth()
Image width.
|
boolean |
isNull() |
boolean |
load(java.lang.String path,
int layer,
DataType data_type,
java.lang.String channels) |
void |
resize(long width,
long height) |
boolean |
save(java.lang.String path) |
protected Image(long cPtr, boolean cMemoryOwn)
public Image()
public Image(Image image)
public Image(long width, long height, java.lang.String channels, DataType data_type)
protected static long getCPtr(Image obj)
protected void finalize()
finalize
in class java.lang.Object
public void delete()
public void close()
close
in interface java.lang.AutoCloseable
public boolean isNull()
public Image copy()
public long getWidth()
public long getHeight()
public long getChannelCount()
public java.lang.String getChannels()
public DataType getDataType()
public void resize(long width, long height)
public boolean save(java.lang.String path)
public boolean load(java.lang.String path, int layer, DataType data_type, java.lang.String channels)