Rank: 560 based on 147 downloads (last 30 days) and 5 files submitted
photo

Steven Michael

E-mail
Company/University
MIT Lincoln Laboratory

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Steven View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Apr 2008 KD Tree Nearest Neighbor and Range Search KD Tree range and nearest neighbor search. Author: Steven Michael kdtree, neighbor, nearest, range, mathematics 44 23
  • 4.11111
4.1 | 18 ratings
13 Nov 2007 Memory File (mfile) Near drop-in replacement for fopen/fread for parsing binary files. Files are completely into memory Author: Steven Michael data import, data export, file io memory 2 2
  • 4.0
4.0 | 2 ratings
25 Sep 2007 qrot3d -- Quaternion Rotation A written-in-C compiled MATLAB function to do fast quaternion rotation on large 3D data sets. Author: Steven Michael quaternion rotate 3d, image registration, geometric transformat... 5 2
  • 5.0
5.0 | 1 rating
19 Sep 2005 Screenshot read_dxf -- read in an ASCII dxf file read_dxf will load an ASCII dxf file into MATLAB. Author: Steven Michael dxf, import, graphics import, graphics export, cad, utilities 36 4
  • 3.66667
3.7 | 3 ratings
19 Sep 2005 Screenshot Model3d MATLAB class for reading, viewing 3D dxf and 3ds files. Author: Steven Michael 3d, 3ds, graphics import, model, studio, autocad 60 22
  • 3.27273
3.3 | 11 ratings
Comments and Ratings on Steven's Files View all
Updated File Comment by Comments Rating
11 Jul 2012 KD Tree Nearest Neighbor and Range Search KD Tree range and nearest neighbor search. Author: Steven Michael Amir

For one dimensional data I am searching, the range search gives some results which are outside the specified range by a tiny bit. e.g. 4-5 orders of magnitude relative to the search window size.

example for reproducing this : (takes a few minutes to complete run)

rng('default')
for i=1:1000
x=rand(100000,1);
tree=kdtree(x);
r=[0.3331 1/3];
idx=kdtree_range(tree,r);
found=x(idx);
if any(found<r(1))
disp(i)
disp(found(found<r(1))-r(1))
end
if any(found>r(2))
disp(i)
disp(found(found>r(2))-r(2))
end
end

27 Mar 2012 KD Tree Nearest Neighbor and Range Search KD Tree range and nearest neighbor search. Author: Steven Michael Sadek, Rida

I had some troubles compiling this on MacOSX Snow Leopard.
In order to compile correctly this package I just added the following line to the CXXFLAGS
" -undefined dynamic_lookup -bundle "
and also removed the other options specifically:
" -mtune=pentium4 -msse -msse2 -fPIC"
However, I doubt that keeping them would harm the compilation.

It is a very nice and well implemented package.
Many thanks for sharing it.

13 Mar 2012 Model3d MATLAB class for reading, viewing 3D dxf and 3ds files. Author: Steven Michael John

I downloaded the Model3d matlab functions, but had trouble getting it to work. It seems as if the model3d.m file is all comments without any coding in its contents.

I understand this may be a bad question, but I do not have much programming experience, so I was wondering if anyone could help me with a step my step procedure of what needs to be done to get this program working.

23 Feb 2012 KD Tree Nearest Neighbor and Range Search KD Tree range and nearest neighbor search. Author: Steven Michael Amir

I just managed to compile mex files for this submission on windows 64.
It wasn't that easy, and I wasted a few good hours on that, but it works now.
I also admit I know almost nothing about compiling and so forth so there might be better ways to do it, but anyway these were my steps:

1. Installed MS Visual Studio 2010 (warning: it's not free, but luckily my helpdesk had a licensed copy)

2. Opened Matlab, typed
>> mex -setup
and went through the setup process.

3. opened the options file:
C:\Users\apaster\AppData\Roaming\MathWorks\MATLAB\R2011b\mexopts.bat
(find the right location by typing

and added the folder P:\Documents\MATLAB\kdtree\src that contained the source files of kdtree to the options file (lines 25-26):

set PATH=P:\Documents\MATLAB\kdtree\src;%VCINSTALLDIR%\bin\amd64;%VCINSTALLDIR%\bin;%VCINSTALLDIR%\VCPackages;%VSINSTALLDIR%\Common7\IDE;%VSINSTALLDIR%\Common7\Tools;%LINKERDIR%\bin\x64;%LINKERDIR%\bin;%MATLAB_BIN%;%PATH%

set INCLUDE=P:\Documents\MATLAB\kdtree\src;%VCINSTALLDIR%\INCLUDE;%VCINSTALLDIR%\ATLMFC\INCLUDE;%LINKERDIR%\include;%INCLUDE%

seems like if we don't do that, the compiler won't be able to find the kdtree.h file

4. from Matlab, typed:
>> cd 'P:\Documents\MATLAB\kdtree\src'
>> mex kdtree.cpp kdtree_create.cpp
>> mex kdtree_range.cpp kdtree.cpp
>> mex kdtree_closestpoint.cpp kdtree.cpp

5. That's it ! Now just copied the .mexw64 files to \kdtree\@kdtree folder.

Hope this works for you...

03 Feb 2012 qrot3d -- Quaternion Rotation A written-in-C compiled MATLAB function to do fast quaternion rotation on large 3D data sets. Author: Steven Michael Tim

Nice, simple, fast.

Top Tags Applied by Steven
dxf, graphics export, graphics import, 3d, 3ds
Files Tagged by Steven View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
01 Apr 2008 KD Tree Nearest Neighbor and Range Search KD Tree range and nearest neighbor search. Author: Steven Michael kdtree, neighbor, nearest, range, mathematics 44 23
  • 4.11111
4.1 | 18 ratings
13 Nov 2007 Memory File (mfile) Near drop-in replacement for fopen/fread for parsing binary files. Files are completely into memory Author: Steven Michael data import, data export, file io memory 2 2
  • 4.0
4.0 | 2 ratings
25 Sep 2007 qrot3d -- Quaternion Rotation A written-in-C compiled MATLAB function to do fast quaternion rotation on large 3D data sets. Author: Steven Michael quaternion rotate 3d, image registration, geometric transformat... 5 2
  • 5.0
5.0 | 1 rating
19 Sep 2005 Screenshot read_dxf -- read in an ASCII dxf file read_dxf will load an ASCII dxf file into MATLAB. Author: Steven Michael dxf, import, graphics import, graphics export, cad, utilities 36 4
  • 3.66667
3.7 | 3 ratings
19 Sep 2005 Screenshot Model3d MATLAB class for reading, viewing 3D dxf and 3ds files. Author: Steven Michael 3d, 3ds, graphics import, model, studio, autocad 60 22
  • 3.27273
3.3 | 11 ratings

Contact us