Skip to content
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.

Commit

Permalink
updates to ocpMatlab - colormap for visualization and bug fix for sem…
Browse files Browse the repository at this point in the history
…aphore (minor)
  • Loading branch information
Will Gray Roncal committed Mar 30, 2015
1 parent cc2f2fa commit 711f50e
Show file tree
Hide file tree
Showing 5 changed files with 507 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/matlab/ramon/basic_viewer/VolumeImageBox.m
Expand Up @@ -181,7 +181,7 @@
% inputs are annoSlice and img

%if length(unique(annoSlice)) > 5 %TODO
this.overlayColors = round(255*jet(this.nColors));% Array containing color info (id,r,g,b)
this.overlayColors = round(255*brewermap(this.nColors,'Spectral'));% Array containing color info (id,r,g,b)
% else
this.overlayColors(1:5,:) = 255*[1 1 0; 0 1 0; 0 0 1; 1 0 0; 1 1 0];
% end
Expand Down Expand Up @@ -221,7 +221,7 @@
end

% get color
this.overlayColors = jet(16);% Array containing color info (id,r,g,b)
this.overlayColors = brewermap(16,'Spectral');% Array containing color info (id,r,g,b)

colors = round(this.overlayColors(mod(ids(cc),15)+1,1:3)*255);

Expand Down

0 comments on commit 711f50e

Please sign in to comment.