Skip to content
Snippets Groups Projects
Commit 2cc0abd6 authored by Eric Wait's avatar Eric Wait
Browse files

Used the colors in the metadata instead of deriving them from the path

parent 0bce5d2a
No related branches found
No related tags found
No related merge requests found
......@@ -2,6 +2,20 @@ function [ colors, stainNames ] = GetChannelColors( imageData, prompt )
%[ colors, stainNames ] = MicroscopeData.Colors.GetChannelColors( imageData, prompt )
% Detailed explanation goes here
colors = [];
stainNames = '';
if (isfield(imageData,'ChannelNames'))
stainNames = imageData.ChannelNames;
end
if (isfield(imageData,'ChannelColors'))
colors = imageData.ChannelColors;
end
if (~isempty(colors) && ~isempty(stainNames))
return
end
if (~exist('prompt','var') || isempty(prompt))
prompt = true;
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment