function varargout = ind2rgb(a,cm)
%IND2RGB overloaded for codistributed arrays
%   IND2RGB Convert indexed image to RGB image.
%   
%   rgb = IND2RGB(X,MAP)
%   
%   See also ind2rgb, codistributed
%   


%   Copyright 2021-2022 The MathWorks, Inc.

nargoutchk(0,3);

% Output is based on CM so this must be codistributed
cm = codistributed(cm);

varargout = cell(1,max(1,nargout));
[varargout{:}] = parallel.internal.flowthrough.ind2rgb(a,cm);
