AntoineCC / b-tk

Automatically exported from code.google.com/p/b-tk
0 stars 0 forks source link

Can't read c3d file on 2011 Matlab #44

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Added the paths to matlab 2011 32 and Matlab 2011 64,
2.checking help btk...it works
3.when trying to btkReadAcquisition('myced.c3d'), it won't give anything.
In 32bit Matla it says "??? Undefined function or method 'btkReadAcquisition' 
for input arguments of type 'char'.", while in 64but it says "Warning: 
btkC3DFileIO.cpp(553): 'example1_walking.c3d' - The number of blocks to
be read in the parameter section is different than the number of blocks read. 
The value kept is the number of blocks read. ".
P.S, my 32bit matlab does have have c3dsever and it works and i can open c3d 
files using c3dserver.

What version of the product are you using? On what operating system?
Matlab 2011 (32bit and 64bit), windows 7 Pro 64bit.

Thanks

Original issue reported on code.google.com by alaam2...@gmail.com on 4 Mar 2013 at 8:39

GoogleCodeExporter commented 8 years ago
Concerning the error with Matlab 2011 32-bit, I suspect you downloaded only the 
package for Matlab 64-bit. If most of the files in the folder 
<BTK>/share/btk-0.2/Wrapping/Matlab/btk have the extension "mexw64", then you 
have the version for Matlab 64-bit.

For the Matlab 64-bit, you don't have any error. This is only a warning which 
indicates that a minor problem exists in the structure of the C3D file. You can 
then use other functions such as btkGetPointFrameNumber or btkGetMarkers to 
extract data.

The warning can be removed by using the function warning(off 
btkReadAcquisition). 
http://b-tk.googlecode.com/svn/doc/Matlab/0.2/_warnings_i_d.html

Note: Please use the website to answer to this message. Replying by email is 
not supported by Google Code.

Original comment by arnaud.barre on 4 Mar 2013 at 9:03

GoogleCodeExporter commented 8 years ago
Thanks
Later I figured out the 32bit download and I installed it but still gives the 
same error. The 64bit works now after I installed the visual studio express 
2010 which removes the error. I was skeptical on the result cause it shows only 
a nimber of 1e-300 something and when I entered the struct result it was only 
this value. So I didn't tried the other commands because of the number.
It's a great software and was very happy when I saw the matlab connection 
online.
So I have two suggestions,
1- To include the downloads links for the requirements, like cmake and the 
compiler.
2- Indicate at the matlab tutorial that the result of the acq will be like this 
small number. I tried just first command so I got tsuch a result but if I tried 
all the cmmands once then I've got some results :).
Thanks for fast reply and the great work.

Original comment by alaam2...@gmail.com on 5 Mar 2013 at 1:36

GoogleCodeExporter commented 8 years ago
Thanks for your comments.
If you still have error with Matlab 32-bit you could verify the path given for 
BTK. Make sure this is the path where Matlab function have the extension MEXW32.

1- Regarding the need of Visual studio express and CMake, this is only needed 
when you compile the C++ source code to create the Matlab MEX functions. As you 
downloaded the binaries, these softwares products are not required.

2- Thanks for your suggestions, I will add more details in the tutorial about 
the output of the function btkReadAcquisition and on the handle used for all 
the functions. 

If you have other suggestions or questions, you can use the mailing-list "BTK 
Users" if you prefer: http://groups.google.com/group/btk-users

Original comment by arnaud.barre on 5 Mar 2013 at 6:00