function [ varargout ] = afficheResult( varargin ) %UNTITLED Summary of this function goes here % Detailed explanation goes here % Les indices corresponde à : % narginchk(3,3); I = varargin{1}; n = varargin{2}; state = varargin{3};% ouvert ou fermer titre = ''; switch n case 1 % grayMorph titre ='Morpho denoise'; case 2 % gradMag titre ='Gradien Magnitude'; case 3% binMorph titre ='Morpho Bin'; case 4 % L titre ='Watershed'; case 5 % Lrgb titre ='RGB Region'; case 6 % squ , skelton issu de la morpho mat titre ='Skelton'; case 7 % SquMorpho, skelton issu du(des) points de selection(s) titre ='Skelton Extract'; case 8 % squ titre ='Skelton'; otherwise disp('no display for this input'); end if(n <= 8) afichestd(I, n,state ,titre); end end function afichestd(im , id,s, titre ) if s==true figure(id); clf; imshow(im,[]); title(titre); else close(figure(id)); end end