
- •If your function has additional parameters, for example k in myfun:
- •If your function has additional parameters, for example k1,k2 in myfun:
- •Is collected along a path.
- •Vector y are drawn as bars in descending order. Each bar will
- •Vector the same length a X and y or a scalar. If s is a scalar,
- •X and y such that plot(XX,yy) is the stairstep graph.
- •Contour and 2-1/2 d graphs
- •X and y data must be consistently sorted in that if the first
- •2 Inches.
- •If your function has additional parameters, for example k in myfun:
- •If your function has additional parameters, for example k in myfun:
- •Specialized 3-d graphs
- •Inputs.
- •If your function has additional parameters, for example k in myfun:
- •If your function has additional parameters, for example k in myfun:
- •If your function has additional parameters, for example k in myfuntk:
- •If your function has additional parameters, for example k in myfun:
- •If your function has additional parameters, for example k in myfun:
- •Is drawn beneath the mesh.
- •Values in X are normalized via X/sum(X) to determine the area of
- •Volume array.
- •Vector data u,V. The arrays X,y define the coordinates for u,V and
- •Instead of an arrow on the tip. Use a marker of '.' to specify
- •Instead of an arrow on the tip. Use a marker of '.' to specify
- •Interpreted.
- •Instead of the current axes.
- •Imread Read image from graphics file.
- •In the structure returned from imfinfo function.
- •In order to create a cmyk tiff, the colorspace
- •In addition to these png parameters, you can use any
- •Images), 'rle' (run-length encoding of 1-bit
- •Image(f.Cdata);
- •In the movie. For example, if m has four frames then
- •Color related functions
- •Solid modeling
In addition to these png parameters, you can use any
parameter name that satisfies the PNG specification for
keywords: only printable characters, 80 characters or
fewer, and no leading or trailing spaces. The value
corresponding to these user-specified parameters must be a
string that contains no control characters except for
linefeed.
RAS - specific parameters
-----------------------
'Type' One of these strings: 'standard'
(uncompressed, b-g-r color order with
truecolor images), 'rgb' (like 'standard',
but uses r-g-b color order for truecolor
Images), 'rle' (run-length encoding of 1-bit
and 8-bit images)
'Alpha' A matrix specifying the transparency of each
pixel individually; the row and column
dimensions must be the same as the data
array; may be uint8, uint16, or double. May
only be used with truecolor images.
PBM, PGM, and PPM-specific parameters
------------------------
'Encoding' One of these strings: 'ASCII' for plain encoding
or 'rawbits' for binary encoding. Default is 'rawbits'.
'MaxValue' A scalar indicating the maximum gray or color
value. Available only for PGM and PPM files.
For PBM files, this value is always 1. Default
is 65535 if image array is 'uint16' and 255 otherwise.
Table: summary of supported image types
---------------------------------------
BMP 1-bit, 8-bit and 24-bit uncompressed images
GIF 8-bit images
HDF 8-bit raster image datasets, with or without associated
colormap; 24-bit raster image datasets; uncompressed or
with RLE or JPEG compression
JPEG 8-bit, 12-bit, and 16-bit Baseline JPEG images
JPEG2000 1-bit, 8-bit, and 16-bit JPEG2000 images
PBM Any 1-bit PBM image, ASCII (plain) or raw (binary) encoding.
PCX 8-bit images
PGM Any standard PGM image. ASCII (plain) encoded with
arbitrary color depth. Raw (binary) encoded with up
to 16 bits per gray value.
PNG 1-bit, 2-bit, 4-bit, 8-bit, and 16-bit grayscale
images; 8-bit and 16-bit grayscale images with alpha
channels; 1-bit, 2-bit, 4-bit, and 8-bit indexed
images; 24-bit and 48-bit truecolor images; 24-bit
and 48-bit truecolor images with alpha channels
PNM Any of PPM/PGM/PBM (see above) chosen automatically.
PPM Any standard PPM image. ASCII (plain) encoded with
arbitrary color depth. Raw (binary) encoded with up
to 16 bits per color component.
RAS Any RAS image, including 1-bit bitmap, 8-bit indexed,
24-bit truecolor and 32-bit truecolor with alpha.
TIFF Baseline TIFF images, including 1-bit, 8-bit, 16-bit,
and 24-bit uncompressed images, images with packbits
compression, images with LZW compression, and images
with Deflate compression; 8-bit and 24-bit images with
JPEG compression; 1-bit images with CCITT 1D, Group 3,
and Group 4 compression; CIELAB, ICCLAB, and CMYK images.
XWD 8-bit ZPixmaps
Please read the file libtiffcopyright.txt for more information.
See also imfinfo, imread, imformats, fwrite, getframe.
Reference page in Help browser
doc imwrite
<imfinfo> - Information about graphics file.
IMFINFO Information about graphics file.
INFO = IMFINFO(FILENAME,FMT) returns a structure whose
fields contain information about an image in a graphics
file. FILENAME is a string that specifies the name of the
graphics file, and FMT is a string that specifies the format
of the file. The file must be in the current directory or in
a directory on the MATLAB path. If IMFINFO cannot find a
file named FILENAME, it looks for a file named FILENAME.FMT.
The possible values for FMT are contained in the file format
registry, which is accessed via the IMFORMATS command.
If FILENAME is a TIFF, HDF, ICO, GIF, or CUR file containing more
than one image, INFO is a structure array with one element for
each image in the file. For example, INFO(3) would contain
information about the third image in the file.
INFO = IMFINFO(FILENAME) attempts to infer the format of the
file from its content.
INFO = IMFINFO(URL,...) reads the image from an Internet URL.
The URL must include the protocol type (e.g., "http://").
The set of fields in INFO depends on the individual file and
its format. However, the first nine fields are always the
same. These common fields are:
Filename A string containing the name of the file
FileModDate A string containing the modification date of
the file
FileSize An integer indicating the size of the file in
bytes
Format A string containing the file format, as
specified by FMT; for formats with more than one
possible extension (e.g., JPEG and TIFF files),
the first variant in the registry is returned
FormatVersion A string or number specifying the file format
version
Width An integer indicating the width of the image
in pixels
Height An integer indicating the height of the image
in pixels
BitDepth An integer indicating the number of bits per
pixel
ColorType A string indicating the type of image; this could
include, but is not limited to, 'truecolor' for a
truecolor (RGB) image, 'grayscale', for a grayscale
intensity image, or 'indexed' for an indexed image.
If FILENAME contains Exif tags (JPEG and TIFF only), then the INFO
struct may also contain 'DigitalCamera' or 'GPSInfo' (global
positioning system information) fields.
The value of the GIF format's 'DelayTime' field is given in hundredths
of seconds.
Example:
info = imfinfo('ngc6543a.jpg');
See also imread, imwrite, imformats.
Reference page in Help browser
doc imfinfo
<im2java> - Convert image to Java image.
IM2JAVA Convert image to Java image.
JIMAGE = IM2JAVA(I) converts the intensity image I to an instance of
the Java image class, java.awt.Image.
JIMAGE = IM2JAVA(X,MAP) converts the indexed image X with colormap
MAP to an instance of the Java image class, java.awt.Image.
JIMAGE = IM2JAVA(RGB) converts the RGB image RGB to an instance of
the Java image class, java.awt.Image.
Class Support
-------------
The input image can be of class uint8, uint16, or double.
Note
----
Java requires uint8 data to create an instance of java.awt.Image. If the
input image is of class uint8, JIMAGE contains the same uint8 data. If the
input image is of class double or uint16, im2java makes an equivalent
image of class uint8, rescaling or offsetting the data as necessary, and
then converts this uint8 representation to an instance of java.awt.Image.
Example
-------
This example reads an image into the MATLAB workspace and then uses
im2java to convert it into an instance of the Java image class.
I = imread('moon.tif');
javaImage = im2java(I);
icon = javax.swing.ImageIcon(javaImage);
label = javax.swing.JLabel(icon);
pSize = label.getPreferredSize;
f = figure('visible','off');
fPos = get(f,'Position');
fPos(3:4) = [pSize.width, pSize.height];
set(f,'Position',fPos);
hLabel= javacomponent(label,[0 0 fPos(3:4)], f);
figure(f)
Reference page in Help browser
doc im2java
Movies and animation
<getframe> - Get movie frame.
GETFRAME Get movie frame.
GETFRAME returns a movie frame. The frame is a snapshot
of the current axis. GETFRAME is usually used in a FOR loop
to assemble an array of movie frames for playback using MOVIE.
For example:
for j=1:n
plot_command
M(j) = getframe;
end
movie(M)
GETFRAME(H) gets a frame from object H, where H is a handle
to a figure or an axis.
GETFRAME(H,RECT) specifies the rectangle to copy the bitmap
from, in pixels, relative to the lower-left corner of object H.
F = GETFRAME(...) returns a movie frame which is a structure
having the fields "cdata" and "colormap" which contain the
the image data in a uint8 matrix and the colormap in a double
matrix. F.cdata will be Height-by-Width-by-3 and F.colormap
will be empty on systems that use TrueColor graphics.
For example:
f = getframe(gcf);
colormap(f.colormap);