Rank: 60604 based on 0 downloads (last 30 days) and 0 file submitted
photo

Nilimb

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Comments and Ratings by Nilimb View all
Updated File Comments Rating
07 Jun 2012 Making MATLAB Swing TabbedPanes, SplitPanes, SideBars, ScrollPanes etc for MATLAB Author: Malcolm Lidierth

using the code below...if i run it...i can click on the first 3 panels and change thier color on mouseclick but if i click on the 4th or 5th panel the callback is not generated

function Untitled
h=figure('Units', 'normalized', 'Position', [0.1 0.1 0.8 0.8], 'Name', 'Slidertest', 'Color', [0.9 0.9 0.9]);
gpanel=uipanel('Parent',h,'Position',[0 0.072 0.2 0.927],'BackgroundColor',...
[0.314 0.314 0.314]);
filters=3;
gscroll=GScroller(gpanel,'right',filters);
leftpanels=[];leftaxes=[];
for k=1:filters+2
p=gscroll.add();
set(p,'BackgroundColor',[0.314 0.314 0.314],'ButtonDownFcn',{@leftpanelaction,h});
leftpanels=[leftpanels,p];
if k>1
axes('Parent',p);
hIm=imshow([]);
set(hIm,'ButtonDownFcn',{@leftaxesaction,h});
leftaxes=[leftaxes,hIm];
axis('off');
title('\color{white}Filter')
else
axes('Parent',p);
hIm=imagesc([]);
set(hIm,'ButtonDownFcn',{@leftaxesaction,h});
leftaxes=[leftaxes,hIm];
axis('off');
title('\color{white}Result')
end
setappdata(h,'leftaxes',leftaxes);
setappdata(h,'leftpanels',leftpanels);
end

%
end
function leftpanelaction(varargin)
h=varargin{3};
panel=varargin{1};
p=getappdata(h,'leftpanels');
idx= p==panel;
set(p,'BackgroundColor',[0.314 0.314 0.314]);
set(p(idx),'BackgroundColor',[0.314 0.314 0.9]);
end
function leftaxesaction(varargin)
h=varargin{3};
hIm=varargin{1};
panel=get(get(hIm,'Parent'),'Parent');
p=getappdata(h,'leftpanels');
idx= p==panel;
set(p,'BackgroundColor',[0.314 0.314 0.314]);
set(p(idx),'BackgroundColor',[0.314 0.314 0.9]);
end

31 May 2012 Making MATLAB Swing TabbedPanes, SplitPanes, SideBars, ScrollPanes etc for MATLAB Author: Malcolm Lidierth

while using GScroller(panel,'left',4), if i add 10 images and assign a callback to each. when i click on a image which is visible, the callback gets executed. but if i scroll down to image no 5 onwards, their callbacks do not get executed...any workaround. excellent submission though!!

16 Jan 2012 fdep: a pedestrian function dependencies finder FDEP dissects ML files and iteratively looks for all user defined functions used during runtime Author: us

very helpful and fast.

16 Nov 2011 Skeletonization using voronoi An efficient skeletonization (thinning) which uses the Voronoi diagram. Author: Yohai

i have tried it with the 'fast' option. Still slower though for an image with many small objects. I guess its doing a lot of calcs in the .exe file.

15 Nov 2011 Skeletonization using voronoi An efficient skeletonization (thinning) which uses the Voronoi diagram. Author: Yohai

the results are pretty good. can you do something about the speed of execution though. its slower than the matlab's inbuilt (but the accuracy is better)

Contact us