User`s guide
R2009a
13-4
getColor, getLabelVisible, and setLabelVisible Methods Added to
imdistline
imdistline now includes a getColor method that returns the color used to draw a
specific ROI object. Also, the new getLabelVisible and setLabelVisible methods
make it possible to control the visibility of the Distance tool text label.
Five Functions Moved to MATLAB
The following five functions moved from the Image Processing Toolbox to MATLAB:
cmpermute, cmunique, dither, imapprox, and rgb2ind. The behavior of some of the
functions has changed slightly, as described in the compatibility considerations listed
below.
Compatibility Considerations
• Functions dither and imapprox, when called without output arguments, no longer
display their output as an image via a call to imshow. Now, if you want to display
the resulting image, assign the output to one or more variables and call imshow. For
example, try the following:
[Y,newmap] = imapprox(X,map,n)
imshow(Y,newmap)
• Function rgb2ind errors when called with the syntax rgb2ind(RGB). You must
specify the number of colors, tolerance, or colormap. For example, you can use the
syntax rgb2ind(RGB,128), where 128 represents the number of colors.
• Function imapprox errors when called with the syntax imapprox(x,map). As with
rgb2ind, you must specify additional parameters.
Fan-Beam Functions Updated
Compatibility Considerations
Due to a bug fix, the fan-beam functions (fanbeam, ifanbeam, fan2para, para2fan)
now return different answers than in previous releases.