imoverlay

Version 1.1.0.0 (341 KB) von Jing Lou
IMOVERLAY Create Label Matrix MAP based Image Overlay with specified Properties.
221 Downloads
Aktualisiert 27. Dez 2015

Lizenz anzeigen

%IMOVERLAY Create Label Matrix MAP based Image Overlay with specified Properties.
% RGB = IMOVERLAY(X,MAP) generates an output image RGB by overlaying a
% label matrix MAP onto the input image X with default parameter values.
%
% RGB = IMOVERLAY(X,MAP,PARAM1,VAL1,PARAM2,VAL2,___) overlays a label
% matrix MAP onto the input image X, specifying parameters and
% corresponding values that control various aspects of the output image
% RGB.
%
% Class Support
% -------------
% The input image X and label matrix MAP can be uint8, uint16, or double.
% The label matrix MAP must contain finite nonnegative integers.
% The output RGB is an M-by-N-by-3 array of class uint8.
%
% PROPERTIES can be a comma-separated list of strings
% 'ColorMap' - colormap (default 'jet')
% 'FaceAlpha' - MAP transparency (range [0,1], default 1 denotes opacity)
% if equals to -1, the following five properties will be ignored
% 'ZeroColor' - background color (uint8/double, default black)
% 'ZeroAlpha' - background transparency (range [0,1], default 1 denotes opacity)
% 'EdgeColor' - edge color (uint8/double, default white)
% 'EdgeAlpha' - edge transparency (range [0,1], default 1 denotes opacity)
% 'EdgeWidth' - edge width (default 1)
%
% Example 1
% ---------
% RGB = imoverlay(X,map);
%
% Example 2
% ---------
% RGB = imoverlay(X,map,'colormap',cmap,'facealpha',0.5,'zerocolor',[255 0 0],'zeroalpha',0.3,'edgewidth',5,'edgecolor',[1 1 0],'edgealpha',0.7);
%
% Example 3
% ---------
% RGB = imoverlay(X,map,'facealpha',-1,'colormap','jet');
%
%
% Reference ('FaceAlpha' equals to -1):
% --------------------------------------------
% http://www.vision.caltech.edu/~harel/share/gbvs.php
%
%
% 25/12/2015, ver 1.00
% 26/12/2015, ver 1.01, bug fix for custom ColorMap
%
% Jing Lou (楼竞), http://www.loujing.com
%

Zitieren als

Jing Lou (2026). imoverlay (https://de.mathworks.com/matlabcentral/fileexchange/54629-imoverlay), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2015b
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Modify Image Colors finden Sie in Help Center und MATLAB Answers
Version Veröffentlicht Versionshinweise
1.1.0.0

update screenshot
bug fix for custom ColorMap

1.0.0.0

add demo
add demo