Rank: 602 based on 148 downloads (last 30 days) and 3 files submitted
photo

Peter Corke

E-mail
Company/University
Queensland University of Technology
Lat/Long
-27.5, 153.0

Personal Profile:
Professional Interests:
robotics, computer vision

 

Watch this Author's files

 

Files Posted by Peter View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 Apr 2013 Screenshot MATLAB to Point Cloud Library matpcl is pure MATLAB code that allows interfacing with the Point Cloud Library (PCL) tools Author: Peter Corke data import, image processing, pcl, point cloud library 121 6
  • 4.0
4.0 | 3 ratings
03 Apr 2013 Joystick MEX file Portable joystick MEX file using SDL Author: Peter Corke joystick, mex 24 1
19 Feb 2013 Option parser A generalized option parser for Toolbox functions Author: Peter Corke command line, argument parsing 3 0
Comments and Ratings by Peter View all
Updated File Comments Rating
23 Mar 2013 MATLAB to Point Cloud Library matpcl is pure MATLAB code that allows interfacing with the Point Cloud Library (PCL) tools Author: Peter Corke

Thanks for the addition. regexp(... 'split') is a useful thing, I was looking for the equivalent of python's split() but didn't find this.

binary_compressed format next?

12 Mar 2013 MATLAB to Point Cloud Library matpcl is pure MATLAB code that allows interfacing with the Point Cloud Library (PCL) tools Author: Peter Corke

Thanks for pointing this out, I fixed the problem and uploaded a revised version of the code.

04 Nov 2012 FindJObj - find java handles of Matlab graphic objects Find java objects contained within a specified java container or Matlab GUI handle Author: Yair Altman

I've used this module successfully for many years, thanks.

With R2012b I've got problems:

jh = findjobj( slider, 'nomenu');
jh.AdjustmentValueChangedCallback = @(src,event)sliderCallbackFunc(src);

and the second line results in an error

Incorrect number of right hand side elements in dot name assignment. Missing [] around left hand side is a
likely cause.

Anybody else had related problems under R2012b.

31 May 2012 Fast Possion equation solver Solves the Poisson equation using Successive Overrelaxation (SOR) with Chebyshev acceleration. Author: Evan Ruzanski

Worked right out of the box! I used it to regenerate an image based on its Laplacian.

I also tried

http://www.mathworks.com.au/matlabcentral/fileexchange/21472-2d-fast-poisson-solver

but I found that its documentation was less clear, the API inconvenient (I had to edit a file to get my function in) and I got a dynamic load error on some fft module which hung MATLAB, though I think this is a MATLAB problem not the contributed codes.

Comments and Ratings on Peter's Files View all
Updated File Comment by Comments Rating
28 Apr 2013 MATLAB to Point Cloud Library matpcl is pure MATLAB code that allows interfacing with the Point Cloud Library (PCL) tools Author: Peter Corke Lauri

Hi,

lzfd.m (run by loadpcd.m) gives this error:

Index exceeds matrix dimensions.
Error in lzfd (line 59)
out(op:op+len-1) = out(ref:ref+len-1);

with this data (compressed binary): http://www.cs.tut.fi/~virtanel/skene2.pcd

Unfortunately I have no other datafiles to test nor time to debug lzfd myself.

19 Apr 2013 MATLAB to Point Cloud Library matpcl is pure MATLAB code that allows interfacing with the Point Cloud Library (PCL) tools Author: Peter Corke Wolf, Daniel

Thanks a lot for your helpful work!
I think I've found a small bug in the loadpcd function processing RGB values. When you split the 4th field into RGB or RGBA values, everytime you shift the field value in the wrong direction using bitshift. Instead of bitshift(rgb, 16) it should be bitshift(rgb, -16) for a right shift instead of a left shift.

01 Apr 2013 Joystick MEX file Portable joystick MEX file using SDL Author: Peter Corke harper, christie

Tried on Linux
1) need to replace // with /*
2) variable event not defined

23 Mar 2013 MATLAB to Point Cloud Library matpcl is pure MATLAB code that allows interfacing with the Point Cloud Library (PCL) tools Author: Peter Corke Corke, Peter

Thanks for the addition. regexp(... 'split') is a useful thing, I was looking for the equivalent of python's split() but didn't find this.

binary_compressed format next?

22 Mar 2013 MATLAB to Point Cloud Library matpcl is pure MATLAB code that allows interfacing with the Point Cloud Library (PCL) tools Author: Peter Corke Will

For the binary case, I've written some code to handle the rgb / rgba case. Please feel free to use / modify as needed. I hope this helps.

case 'binary'
startPos_fp = ftell(fp);
numFields = numel(siz);
typeTokens = regexp(type,'\s+','split');
fieldTokens = regexp(fields,'\s+','split');

% Just initialize the xyz portion for now
points = zeros(3, npoints);

for i=1:numFields
% map IUF -> int, uint, float
typeToken = typeTokens{i};
switch typeToken
case 'I'
fmt = 'int';
case 'U'
fmt = 'uint';
case 'F'
fmt = 'float';
end

format = ['*' fmt num2str(siz(i)*8)];
fseek(fp, startPos_fp + sum(siz(1:i-1)), 'bof');
data = fread(fp, [1 npoints], format, sum(siz)-siz(i));

fieldToken = fieldTokens{i};
switch fieldToken
case 'x'
points(1,:) = data;
case 'y'
points(2,:) = data;
case 'z'
points(3,:) = data;
case 'rgb'
rgb = typecast(data, 'uint32');
R = double(bitand(255, bitshift(rgb, 16))) /255;
G = double(bitand(255, bitshift(rgb, 8))) /255;
B = double(bitand(255, rgb)) /255;
points = [points(1:3,:); R; G; B];
case 'rgba'
rgb = typecast(data, 'uint32');
R = double(bitand(255, bitshift(rgb, 24))) /255;
G = double(bitand(255, bitshift(rgb, 16))) /255;
B = double(bitand(255, bitshift(rgb, 8))) /255;
A = double(bitand(255, rgb)) /255;
points = [points(1:3,:); R; G; B];
end
end

Top Tags Applied by Peter
argument parsing, command line, data import, image processing, joystick
Files Tagged by Peter View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 Apr 2013 Screenshot MATLAB to Point Cloud Library matpcl is pure MATLAB code that allows interfacing with the Point Cloud Library (PCL) tools Author: Peter Corke data import, image processing, pcl, point cloud library 121 6
  • 4.0
4.0 | 3 ratings
03 Apr 2013 Joystick MEX file Portable joystick MEX file using SDL Author: Peter Corke joystick, mex 24 1
19 Feb 2013 Option parser A generalized option parser for Toolbox functions Author: Peter Corke command line, argument parsing 3 0

Contact us