Rank: 3817 based on 33 downloads (last 30 days) and 1 file submitted
photo

Ruth Livingstone

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Ruth
Updated   File Tags Downloads
(last 30 days)
Comments Rating
29 Mar 2012 Screenshot Make Pretty (Publishable) Graphs Easily create publishable ready figures. Great used with export_fig or on its own. Author: Ruth Livingstone figure, edit, graph, publish, pretty, gui 33 2
  • 4.0
4.0 | 2 ratings
Comments and Ratings by Ruth View all
Updated File Comments Rating
26 Apr 2012 Make Pretty (Publishable) Graphs Easily create publishable ready figures. Great used with export_fig or on its own. Author: Ruth Livingstone

Thanks Baharuddin. I'm working on an update - watch this space :o)

26 Apr 2012 Mosaic generator Photo mosaic generator. Choose a tile image, and a directory with images, and see the magic. Author: Nikolay S.

Very cool! and fun as well :o)

27 Mar 2012 Polar To/From Rectangular Transform of Images converts rectangular image to polar and back Author: Prakash Manandhar

Sorry, That looks a little unclear. Here it is again

function imC = Polar2Im(imP,W,method)
%Polar2Im turns a polar image (imP) into a cartesian image (imC) of width W
%method can be: '*linear', '*cubic', '*spline', or '*nearest'.
imP(isnan(imP))=0;
w = round(W/2);
xy = (1:W-w);
[M N P]= size(imP);
[x y] = meshgrid(xy,xy);
n = round(N/4);
rr = linspace(1,w,M);
W1 = w:-1:1;
PM = [2 1 3;1 2 3;2 1 3;1 2 3];
W2 = w+1:2*w;
nn = [1:n; n+1:2*n; 2*n+1:3*n; 3*n+1:N;];
w1 = [W1;W2;W2;W1];
w2 = [W2;W2;W1;W1];
aa = linspace(0,90*pi/180,n);
r = sqrt(x.^2 + y.^2);
a = atan2(y,x);
imC= zeros(W,W,P);
for i=1:4 %turn each quarter into a cartesian image
imC(w1(i,:),w2(i,:),:)=permute(interp2(rr,aa,imP(:,nn(i,:))',r,a,method),PM(i,:));
end
imC(isnan(imC))=0;

27 Mar 2012 Polar To/From Rectangular Transform of Images converts rectangular image to polar and back Author: Prakash Manandhar

Hi

Thank you, this code is great, but takes a little too long for my application. After reading the thread I wrote similar code which works ~12 times faster for the PolarToIm section. It doesn't have quite the same functionality but I thought I would share it here in case others are having the same problem

function imC = Polar2Im(imP,W,method)
%Polar2Im turns a polar image (imP) into a cartesian image (imC) of width W
%method can be: '*linear', '*cubic', '*spline', or '*nearest'.
imP(isnan(imP))=0;
w = round(W/2); [M N P]= size(imP);
xy = (1:W-w); [x y] = meshgrid(xy,xy);
n = round(N/4); rr = linspace(1,w,M);
W1 = w:-1:1; PM = [2 1 3;1 2 3;2 1 3;1 2 3];
W2 = w+1:2*w; nn = [1:n; n+1:2*n; 2*n+1:3*n; 3*n+1:N;];
w1 = [W1;W2;W2;W1]; aa = linspace(0,90*pi/180,n);
w2 = [W2;W2;W1;W1]; r = sqrt(x.^2 + y.^2);
a = atan2(y,x); imC= zeros(W,W,P);
for i=1:4 %turn each quarter into a cartesian image
imC(w1(i,:),w2(i,:),:) = permute(interp2(rr,aa,imP(:,nn(i,:))',r,a,method),PM(i,:));
end
imC(isnan(imC))=0;

Comments and Ratings on Ruth's Files View all
Updated File Comment by Comments Rating
23 Jun 2014 Make Pretty (Publishable) Graphs Easily create publishable ready figures. Great used with export_fig or on its own. Author: Ruth Livingstone Bandara, Samuel

26 Apr 2012 Make Pretty (Publishable) Graphs Easily create publishable ready figures. Great used with export_fig or on its own. Author: Ruth Livingstone Livingstone, Ruth

Thanks Baharuddin. I'm working on an update - watch this space :o)

29 Mar 2012 Make Pretty (Publishable) Graphs Easily create publishable ready figures. Great used with export_fig or on its own. Author: Ruth Livingstone Ali, Baharuddin

Simple command with pretty results..good job, thanks. May can develop with just click copy & paste publisable preety results.

Contact us