im2java
(To be removed) Convert image to Java image
im2java will be removed in a future release. There is no replacement
for this function.
Description
To work with a MATLAB® image in the Java® environment, you must convert the image from its MATLAB representation into an instance of the Java image class, sun.awt.image.ToolkitImage.
Input Arguments
Output Arguments
Tips
Java requires
uint8data to create an instance of the Java image class,sun.awt.image.ToolkitImage. If the input image is of classdoubleoruint16, thenim2javamakes an equivalent image of classuint8, rescaling or offsetting the data as necessary, and then converts thisuint8representation to an instance of the Java image class. For more information, see 8-Bit and 16-Bit Images.