https://github.com/bertinetto/staple
Raw File
Tip revision: 7b6b5b579a7cd25acae6bcabe93f8dfb78040215 authored by Luca Bertinetto on 25 April 2017, 16:35:58 UTC
added cfnet link
Tip revision: 7b6b5b5
mySubplot.m
function mySubplot(figureHandle, subplotWidth, subplotHeight, subplotPos, img, imgTitle, newMap)
% MYSUBPLOT creates a matrix of subplots, each with a custom colormap    
    changeMap = sprintf('colormap %s', newMap);
    figure(figureHandle)	
    subplot(subplotWidth, subplotHeight, subplotPos)
	imagesc(img)
    eval(changeMap);
    freezeColors
	pbaspect([size(img,2),size(img,1),1]);
	title(imgTitle)
    axis off;
end
back to top