Posts Tagged ‘Graphics’
Matlab Image Types
Indexed Images
An indexed image consists of a data matrix, X, and a colormap matrix, map. map is an m-by-3 array of class double containing floating-point values in the range [0, 1]. Each row of map specifies the red, green, and blue components of a single color. An indexed image uses “direct mapping” of pixel values to colormap values. The color of each image pixel is determined by using the corresponding value of X as an index into map. Values of X therefore must be integers. The value 1 points to the first row in map, the value 2 points to the second row, and so on. Display an indexed image with the statements Read More
Working with Images in MATLAB Graphics
What Is Image Data?
The basic MATLAB data structure is the array, an ordered set of real or complex elements. An array is naturally suited to the representation of images, real-valued, ordered sets of color or intensity data. (An array is suited for complex-valued images.) Read More
Displaying Graphics Images
Image Types and Display Methods
To display a graphics file image, use either image or imagesc. For example, assuming RGB is an image, Read More
Reading, Writing, and Querying Graphics Image Files
Working with Image Formats
In its native form, a graphics file format image is not stored as a MATLAB matrix, or even necessarily as a matrix. Most graphics files begin with a header containing format-specific information tags, and continue with bitmap data that can be read as a continuous stream. For this reason, you cannot use the standard MATLAB I/O commands load and save to read and write a graphics file format image. Read More
Matlab Annotation Objects and Example
Users typically create annotation objects from the Plot Edit toolbar or the Insert menu (select Plot Edit in the View menu to display the Plot Edit toolbar). However, you can also create annotation objects using the annotation function. Read More
Tags: annotation, Annotation arrow properties, Annotation doublearrow properties, Annotation ellipse properties, Annotation line properties, Annotation rectangle properties, Annotation textarrow properties, Annotation textbox properties, delete, Graphics, line, matlab, Position, Positioning Annotations in Data Space, rectangle, text, The Property Editor, TightInset
Matlab Plot Objects
A number of high-level plotting functions create plot objects. The properties of plot objects provide easy access to the important properties of the core graphics objects that the plot objects contain. Read More
Tags: area, areaseries, bar, barseries, contour, contourgroup, Core Graphics Objects, errorbar, errorbarseries, Graphics, graphs, hggroup, hgsave, hgtransform, lineseries, matlab, mesh, Objects That Can Contain Other Objects, patch, peaks, plot, Plot Objects, plot3, plotting, quiver, quiver3, quivergroup, scatter, scatter3, scattergroup, set, stairs, stairseries, stairstep, stem, stem3, stemseries, surf, surfaceplot
Matlab Core Graphics Objects
Core graphics objects include basic drawing primitives: Read More
Tags: annotation, axes, bar, camera commands, Children, contour3, Controlling Graphics Output, Core Graphics Objects, fill3, function, Graphics, gtext, image, light, line, loglog, matlab, mesh, NextPlot, patch, pcolor, plot, plot3, Position, rectangle, surf, surface, text, title, Units, view, xlabel, XLim, ylabel, YLim, zlabel, ZLim