Rank: 744 based on 185 downloads (last 30 days) and 8 files submitted
photo

Prakash Manandhar

E-mail
Company/University
University of Massachusetts Dartmouth
Lat/Long
41.676945, -70.95917

Personal Profile:

PhD Student, Biomedical Engineering and Biotechnology (Electrical and Computer Engineering Based).

Web: http://p-manandhar.info


 

Watch this Author's files

 

Files Posted by Prakash Manandhar View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
02 Feb 2012 Screenshot Bezier Curve Function Vectorized function to calculate Bezier Curve Author: Prakash Manandhar mathematics, graphics, curve generation 20 3
  • 1.0
1.0 | 3 ratings
16 May 2011 Screenshot Simple demo program for color based tracking Simple script to read a video file and track a single red marker in 2D using hue and saturation. Author: Prakash Manandhar image processing, color based tracking 26 2
  • 5.0
5.0 | 2 ratings
07 Oct 2009 Screenshot Interpolation for missing data Interpolates using nearest neighbor, bilinear or bicubic formula for missing data points Author: Prakash Manandhar interpolation, nearest neighbor, 2d, nonuniform grid, image processing, missing data 16 1
  • 5.0
5.0 | 1 rating
15 Dec 2008 Screenshot Circular Hough Trasform in Polar Domain Detects center (xc, yc) and radius R of circle in an image in the polar domain. Author: Prakash Manandhar image processing, hough transform, circle detection, pattern recognition 9 0
04 Dec 2008 Screenshot Conditional Density Propagation Tracker (1 Dimenstional) Tracks parameter in clutter using Isard and Blake (1998)'s ConDensation Algorithm. Author: Prakash Manandhar image processing, signal processing, statistics, medical, tracking, particle filter 17 0
Comments and Ratings by Prakash Manandhar View all
Updated File Comments Rating
03 Feb 2012 Bezier Curve Plotter constructs a Bezier curve using a given set of control points Author: Sagar Aiya

Great, but code could be vectorized with huge improvment for data with large number of sampling points. I have posted the vectorized code here:

http://www.mathworks.com/matlabcentral/fileexchange/34902

31 Jan 2012 Mesh voxelisation Voxelise a triangular-polygon mesh. Author: Adam A

02 Jul 2011 Panel Like subplot, but easier, and WYSIWYG export to file. Also fixes dashed/dotted lines in export. Author: Ben Mitch

30 Dec 2010 raytrace A function to model acoustic refraction due to variations in sound speed. Author: Val Schmidt

Thanks, this is fantastic.

10 Feb 2009 N-Dimensional BSplines Construct coefficients of interpolating or smoothing BSplines from N-dimensional array, analytically Author: Nathan Cahill

Thanks... Could it be possible to add circular and mirror boundary conditions and non-uniform nodal points?

Prakash.

Comments and Ratings on Prakash Manandhar's Files View all
Updated File Comment by Comments Rating
14 Sep 2014 Polar To/From Rectangular Transform of Images converts rectangular image to polar and back Author: Prakash Manandhar Sophia

04 Jun 2014 Bezier Curve Function Vectorized function to calculate Bezier Curve Author: Prakash Manandhar Jason Kurtz

Here is modified code that works. Note that the function now returns two sets of variables.

function [x y] = BezierCurve(N, P)
% This function constructs a Bezier curve from given control points. P is a
% vector of control points. N is the number of points to calculate.
%
% Example:
%
% P = [0 0; 1 1; 2 5; 5 -1];
% y = BezierCurve(1000, P);
% plot(x, y, P(:, 1), P(:, 2), 'x-', 'LineWidth', 2); set(gca, 'FontSize', 16)
%
% Prakash Manandhar, pmanandhar@umassd.edu

Np = size(P, 1);
u = linspace(0, 1, N);
B = zeros(N, Np);
for i = 1:Np
B(:,i) = nchoosek(Np-1,i-1).*u.^(i-1).*(1-u).^(Np-i); %B is the Bernstein polynomial value
end
S = B*P;
x = S(:, 1);
y = S(:, 2);

18 May 2014 Polar To/From Rectangular Transform of Images converts rectangular image to polar and back Author: Prakash Manandhar Kristian Moesgaard

Here the code is to work with RGB image and independent on image format. Thought somebody might find it useful :)

function imP = FISHCOLOR2(imR)

rMin=0.1;
rMax=1;

reduced_dim = min(size(imR,1),size(imR,2));
imR = imresize(imR,[reduced_dim reduced_dim]);

M=size(imR,1);N=size(imR,2);

CenterX = (M+1)/2; % co-ordinates of the center of the image
CenterY = (N+1)/2;
ScaleX = (M-1)/2; % scale factors
ScaleY = (N-1)/2;

DeltaR = (rMax - rMin)/(M-1);
DeltaTheta = 2*pi/N;

R=rMin:DeltaR:rMin+(M-1)*DeltaR;
Theta=0:DeltaTheta:(N-1)*DeltaTheta;
[R,Theta]=meshgrid(R,Theta);

X=R*cos(Theta);
Y=R*sin(Theta);
LatX = X*ScaleX + CenterX;
LongY = Y*ScaleY + CenterY;

for k=1:3 % colors
imP(:,:,k) = interp2(imR(:,:,k), LatX, LongY); % add k channel
end

imP = imresize(imP,[size(imP,1), size(imP,2)/3]);

imP = imrotate(imP,270);

08 May 2014 Polar To/From Rectangular Transform of Images converts rectangular image to polar and back Author: Prakash Manandhar Peter Caday

@Kristian: If your RGB image comes from the imread function, it is an M x N x 3 array. You can then apply ImToPolar or PolarToIm (whichever you're interested in) 3 times, once for each plane (R,G,B) of the image. For instance:

polar = imread('.../myimage.jpg');
im(:,:,1) = PolarToIm(polar(:,:,1), rMin, rMax, Mr, Nr);
im(:,:,2) = PolarToIm(polar(:,:,2), rMin, rMax, Mr, Nr);
im(:,:,3) = PolarToIm(polar(:,:,3), rMin, rMax, Mr, Nr);

Hope this helps!

23 Apr 2014 Polar To/From Rectangular Transform of Images converts rectangular image to polar and back Author: Prakash Manandhar Kristian Moesgaard

Great and functional work.. Does anybody know a quick way of converting this code so that i can be used on a RGB image?

Contact us