im2java2d() - Image Processing
jimage = im2java2d(I) converts
the image I to an instance of the Java image class java.awt.image.BufferedImage.
The image I can be an intensity (grayscale), RGB,
or binary image.jimage = im2java2d(X,MAP) converts
the indexed image X with colormap MAP to
an instance of the Java class java.awt.image.BufferedImage.Note
The im2java2d function works with the Java
2D API. The im2java function
works with the Java Abstract Windowing Toolkit (AWT).
Syntax
jimage = im2java2d(I)jimage = im2java2d(X,MAP)
Example
I = imread('moon.tif');
javaImage = im2java2d(I);
frame = javax.swing.JFrame;
icon = javax.swing.ImageIcon(javaImage);
label = javax.swing.JLabel(icon);
frame.getContentPane.add(label);
frame.pack
frame.show
Output / Return Value
Limitations
Alternatives / See Also
Reference